3b23443c940770e93df0f2c45605c5648eb82140
[libdcp.git] / src / wscript
1 def build(bld):
2     if bld.env.STATIC:
3         obj = bld(features = 'cxx cxxstlib')
4     else:
5         obj = bld(features = 'cxx cxxshlib')
6
7     obj.name = 'libdcp'
8     obj.target = 'dcp'
9     obj.export_includes = ['.']
10     obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
11     obj.use = 'libkumu-libdcp libasdcp-libdcp'
12     obj.source = """
13                  argb_frame.cc
14                  asset.cc
15                  certificates.cc
16                  crypt_chain.cc
17                  cpl.cc
18                  dcp.cc        
19                  dcp_time.cc
20                  gamma_lut.cc
21                  kdm.cc
22                  metadata.cc
23                  mxf_asset.cc
24                  picture_asset.cc
25                  picture_frame.cc
26                  rec709_linearised_gamma_lut.cc
27                  reel.cc
28                  rgb_xyz.cc
29                  sound_asset.cc
30                  sound_frame.cc
31                  srgb_linearised_gamma_lut.cc
32                  subtitle_asset.cc
33                  types.cc
34                  util.cc
35                  version.cc
36                  xyz_frame.cc
37                  parse/asset_map.cc
38                  parse/cpl.cc
39                  parse/pkl.cc
40                  parse/subtitle.cc
41                  """
42
43     headers = """
44               asset.h
45               certificates.h
46               cpl.h
47               crypt_chain.h
48               dcp.h
49               dcp_time.h
50               exceptions.h
51               gamma_lut.h
52               kdm.h
53               metadata.h
54               mxf_asset.h
55               picture_asset.h
56               picture_frame.h
57               rgb_xyz.h
58               rec709_linearised_gamma_lut.h
59               reel.h
60               argb_frame.h
61               sound_asset.h
62               sound_frame.h
63               srgb_linearised_gamma_lut.h
64               subtitle_asset.h
65               types.h
66               util.h
67               version.h
68               xyz_frame.h
69               """
70
71     bld.install_files('${PREFIX}/include/libdcp', headers)
72     if bld.env.STATIC:
73         bld.install_files('${PREFIX}/lib', 'libdcp.a')
74