Considerable re-work of KDM class to express the difference between encrypted and...
[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                  certificates.cc
18                  colour_matrix.cc
19                  content.cc
20                  cpl.cc
21                  dcp.cc        
22                  dcp_time.cc
23                  decrypted_kdm.cc
24                  decrypted_kdm_key.cc
25                  encrypted_kdm.cc
26                  exceptions.cc
27                  file.cc
28                  font.cc
29                  gamma_lut.cc
30                  image.cc
31                  key.cc
32                  load_font.cc
33                  local_time.cc
34                  metadata.cc
35                  mono_picture_mxf.cc
36                  mono_picture_mxf_writer.cc
37                  mono_picture_frame.cc
38                  mxf.cc
39                  mxf_writer.cc
40                  object.cc
41                  picture_mxf.cc
42                  picture_mxf_writer.cc
43                  reel.cc
44                  reel_asset.cc
45                  reel_mono_picture_asset.cc
46                  reel_picture_asset.cc
47                  reel_sound_asset.cc
48                  reel_stereo_picture_asset.cc
49                  reel_subtitle_asset.cc
50                  rgb_xyz.cc
51                  signer.cc
52                  signer_chain.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               certificates.h
72               colour_matrix.h
73               cpl.h
74               content.h
75               dcp.h
76               dcp_time.h
77               decrypted_kdm.h
78               encrypted_kdm.h
79               exceptions.h
80               gamma_lut.h
81               image.h
82               key.h
83               lut_cache.h
84               metadata.h
85               mono_picture_mxf.h
86               mono_picture_frame.h
87               mxf.h
88               mxf_writer.h
89               object.h
90               picture_mxf.h
91               picture_mxf_writer.h
92               rgb_xyz.h
93               reel.h
94               reel_asset.h
95               reel_mono_picture_asset.h
96               reel_picture_asset.h
97               reel_sound_asset.h
98               reel_stereo_picture_asset.h
99               ref.h
100               argb_frame.h
101               signer.h
102               signer_chain.h
103               sound_frame.h
104               sound_mxf.h
105               sound_mxf_writer.h
106               stereo_picture_mxf.h
107               stereo_picture_frame.h
108               subtitle.h
109               subtitle_content.h
110               subtitle_string.h
111               types.h
112               util.h
113               version.h
114               xyz_frame.h
115               """
116
117     bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
118     if bld.env.STATIC:
119         bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)