Some new files.
[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                  sound_asset.cc
29                  sound_frame.cc
30                  srgb_linearised_gamma_lut.cc
31                  subtitle_asset.cc
32                  types.cc
33                  util.cc
34                  version.cc
35                  parse/asset_map.cc
36                  parse/cpl.cc
37                  parse/pkl.cc
38                  parse/subtitle.cc
39                  """
40
41     headers = """
42               asset.h
43               certificates.h
44               cpl.h
45               crypt_chain.h
46               dcp.h
47               dcp_time.h
48               exceptions.h
49               gamma_lut.h
50               kdm.h
51               metadata.h
52               mxf_asset.h
53               picture_asset.h
54               picture_frame.h
55               rec709_linearised_gamma_lut.h
56               reel.h
57               argb_frame.h
58               sound_asset.h
59               sound_frame.h
60               srgb_linearised_gamma_lut.h
61               subtitle_asset.h
62               types.h
63               util.h
64               version.h
65               """
66
67     bld.install_files('${PREFIX}/include/libdcp', headers)
68     if bld.env.STATIC:
69         bld.install_files('${PREFIX}/lib', 'libdcp.a')
70