X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwscript;h=c06ca1bd4795d34fae0762910a6717d40e7ec4a1;hb=ac265d3d008328b9bdaf00c39ebcd86f263605c7;hp=5e0b8a0aeae9bc57f234fb0f8850093c672394a5;hpb=33ad83b730b1ffd38592085504e8b3b08a3bea6d;p=libdcp.git diff --git a/src/wscript b/src/wscript index 5e0b8a0a..c06ca1bd 100644 --- a/src/wscript +++ b/src/wscript @@ -1,70 +1,115 @@ +from waflib import TaskGen + def build(bld): if bld.env.STATIC: obj = bld(features = 'cxx cxxstlib') else: obj = bld(features = 'cxx cxxshlib') - obj.name = 'libdcp' - obj.target = 'dcp' + obj.name = 'libdcp%s' % bld.env.API_VERSION + obj.target = 'dcp%s' % bld.env.API_VERSION obj.export_includes = ['.'] obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1' - obj.use = 'libkumu-libdcp libasdcp-libdcp' + obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION) obj.source = """ argb_frame.cc asset.cc certificates.cc - crypt_chain.cc + colour_matrix.cc + content.cc cpl.cc dcp.cc dcp_time.cc + exceptions.cc + file.cc + font.cc gamma_lut.cc + image.cc kdm.cc + key.cc + load_font.cc metadata.cc - mxf_asset.cc - picture_asset.cc - picture_frame.cc - rec709_linearised_gamma_lut.cc + mono_picture_mxf.cc + mono_picture_mxf_writer.cc + mono_picture_frame.cc + mxf.cc + mxf_writer.cc + object.cc + picture_mxf.cc + picture_mxf_writer.cc reel.cc - sound_asset.cc + reel_asset.cc + reel_mono_picture_asset.cc + reel_picture_asset.cc + reel_sound_asset.cc + reel_stereo_picture_asset.cc + reel_subtitle_asset.cc + rgb_xyz.cc + signer.cc + signer_chain.cc + sound_mxf.cc + sound_mxf_writer.cc sound_frame.cc - srgb_linearised_gamma_lut.cc - subtitle_asset.cc + stereo_picture_mxf.cc + stereo_picture_mxf_writer.cc + stereo_picture_frame.cc + subtitle.cc + subtitle_content.cc + subtitle_string.cc + text.cc types.cc util.cc version.cc - parse/asset_map.cc - parse/cpl.cc - parse/pkl.cc - parse/subtitle.cc + xyz_frame.cc """ headers = """ asset.h certificates.h + colour_matrix.h cpl.h - crypt_chain.h + content.h dcp.h dcp_time.h exceptions.h gamma_lut.h + image.h kdm.h + key.h + lut_cache.h metadata.h - mxf_asset.h - picture_asset.h - picture_frame.h - rec709_linearised_gamma_lut.h + mono_picture_mxf.h + mono_picture_frame.h + mxf.h + mxf_writer.h + object.h + picture_mxf.h + picture_mxf_writer.h + rgb_xyz.h reel.h + reel_asset.h + reel_mono_picture_asset.h + reel_picture_asset.h + reel_sound_asset.h + reel_stereo_picture_asset.h + ref.h argb_frame.h - sound_asset.h + signer.h + signer_chain.h sound_frame.h - srgb_linearised_gamma_lut.h - subtitle_asset.h + sound_mxf.h + sound_mxf_writer.h + stereo_picture_mxf.h + stereo_picture_frame.h + subtitle.h + subtitle_content.h + subtitle_string.h types.h util.h version.h + xyz_frame.h """ - bld.install_files('${PREFIX}/include/libdcp', headers) + bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers) if bld.env.STATIC: - bld.install_files('${PREFIX}/lib', 'libdcp.a') - + bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)