Rename Encryption -> Signer; move some methods into it.
[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                  colour_matrix.cc
17                  crypt_chain.cc
18                  cpl.cc
19                  dcp.cc        
20                  dcp_time.cc
21                  gamma_lut.cc
22                  image.cc
23                  kdm.cc
24                  metadata.cc
25                  mxf_asset.cc
26                  picture_asset.cc
27                  picture_asset_writer.cc
28                  picture_frame.cc
29                  rec709_linearised_gamma_lut.cc
30                  reel.cc
31                  rgb_xyz.cc
32                  signer.cc
33                  sound_asset.cc
34                  sound_frame.cc
35                  srgb_linearised_gamma_lut.cc
36                  subtitle_asset.cc
37                  types.cc
38                  util.cc
39                  version.cc
40                  xyz_frame.cc
41                  parse/asset_map.cc
42                  parse/cpl.cc
43                  parse/pkl.cc
44                  parse/subtitle.cc
45                  """
46
47     headers = """
48               asset.h
49               certificates.h
50               colour_matrix.h
51               cpl.h
52               crypt_chain.h
53               dcp.h
54               dcp_time.h
55               exceptions.h
56               gamma_lut.h
57               image.h
58               kdm.h
59               lut.h
60               lut_cache.h
61               metadata.h
62               mxf_asset.h
63               picture_asset.h
64               picture_asset_writer.h
65               picture_frame.h
66               rgb_xyz.h
67               rec709_linearised_gamma_lut.h
68               reel.h
69               argb_frame.h
70               sound_asset.h
71               sound_frame.h
72               srgb_linearised_gamma_lut.h
73               subtitle_asset.h
74               types.h
75               util.h
76               version.h
77               xyz_frame.h
78               """
79
80     bld.install_files('${PREFIX}/include/libdcp', headers)
81     if bld.env.STATIC:
82         bld.install_files('${PREFIX}/lib', 'libdcp.a')
83