Quite large reworking of signer/cert handling.
[libdcp.git] / src / wscript
1 from waflib import TaskGen
2
3 def build(bld):
4     if bld.env.STATIC:
5         obj = bld(features = 'cxx cxxstlib')
6     else:
7         obj = bld(features = 'cxx cxxshlib')
8
9     obj.name = 'libdcp%s' % bld.env.API_VERSION
10     obj.target = 'dcp%s' % bld.env.API_VERSION
11     obj.export_includes = ['.']
12     obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
13     obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
14     obj.source = """
15                  argb_frame.cc
16                  asset.cc
17                  certificate_chain.cc
18                  certificates.cc
19                  colour_matrix.cc
20                  content.cc
21                  cpl.cc
22                  dcp.cc        
23                  dcp_time.cc
24                  decrypted_kdm.cc
25                  decrypted_kdm_key.cc
26                  encrypted_kdm.cc
27                  exceptions.cc
28                  file.cc
29                  font.cc
30                  gamma_lut.cc
31                  image.cc
32                  key.cc
33                  load_font.cc
34                  local_time.cc
35                  metadata.cc
36                  mono_picture_mxf.cc
37                  mono_picture_mxf_writer.cc
38                  mono_picture_frame.cc
39                  mxf.cc
40                  mxf_writer.cc
41                  object.cc
42                  picture_mxf.cc
43                  picture_mxf_writer.cc
44                  reel.cc
45                  reel_asset.cc
46                  reel_mono_picture_asset.cc
47                  reel_picture_asset.cc
48                  reel_sound_asset.cc
49                  reel_stereo_picture_asset.cc
50                  reel_subtitle_asset.cc
51                  rgb_xyz.cc
52                  signer.cc
53                  sound_mxf.cc
54                  sound_mxf_writer.cc
55                  sound_frame.cc
56                  stereo_picture_mxf.cc
57                  stereo_picture_mxf_writer.cc
58                  stereo_picture_frame.cc
59                  subtitle.cc
60                  subtitle_content.cc
61                  subtitle_string.cc
62                  text.cc
63                  types.cc
64                  util.cc
65                  version.cc
66                  xyz_frame.cc
67                  """
68
69     headers = """
70               asset.h
71               certificate_chain.h
72               certificates.h
73               colour_matrix.h
74               cpl.h
75               content.h
76               dcp.h
77               dcp_time.h
78               decrypted_kdm.h
79               decrypted_kdm_key.h
80               encrypted_kdm.h
81               exceptions.h
82               gamma_lut.h
83               image.h
84               key.h
85               local_time.h
86               lut_cache.h
87               metadata.h
88               mono_picture_mxf.h
89               mono_picture_frame.h
90               mxf.h
91               mxf_writer.h
92               object.h
93               picture_mxf.h
94               picture_mxf_writer.h
95               raw_convert.h
96               rgb_xyz.h
97               reel.h
98               reel_asset.h
99               reel_mono_picture_asset.h
100               reel_picture_asset.h
101               reel_sound_asset.h
102               reel_stereo_picture_asset.h
103               reel_subtitle_asset.h
104               ref.h
105               argb_frame.h
106               signer.h
107               sound_frame.h
108               sound_mxf.h
109               sound_mxf_writer.h
110               stereo_picture_mxf.h
111               stereo_picture_frame.h
112               subtitle.h
113               subtitle_content.h
114               subtitle_string.h
115               types.h
116               util.h
117               version.h
118               xyz_frame.h
119               """
120
121     bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
122     if bld.env.STATIC:
123         bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)