Missing header installs.
[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                  interop_load_font.cc
33                  interop_subtitle_content.cc
34                  key.cc
35                  local_time.cc
36                  metadata.cc
37                  mono_picture_mxf.cc
38                  mono_picture_mxf_writer.cc
39                  mono_picture_frame.cc
40                  mxf.cc
41                  mxf_writer.cc
42                  object.cc
43                  picture_mxf.cc
44                  picture_mxf_writer.cc
45                  reel.cc
46                  reel_asset.cc
47                  reel_mono_picture_asset.cc
48                  reel_mxf_asset.cc
49                  reel_picture_asset.cc
50                  reel_sound_asset.cc
51                  reel_stereo_picture_asset.cc
52                  reel_subtitle_asset.cc
53                  rgb_xyz.cc
54                  signer.cc
55                  smpte_load_font.cc
56                  smpte_subtitle_content.cc
57                  sound_mxf.cc
58                  sound_mxf_writer.cc
59                  sound_frame.cc
60                  stereo_picture_mxf.cc
61                  stereo_picture_mxf_writer.cc
62                  stereo_picture_frame.cc
63                  subtitle.cc
64                  subtitle_content.cc
65                  subtitle_string.cc
66                  text.cc
67                  types.cc
68                  util.cc
69                  version.cc
70                  xyz_frame.cc
71                  """
72
73     headers = """
74               asset.h
75               certificate_chain.h
76               certificates.h
77               colour_matrix.h
78               cpl.h
79               content.h
80               dcp.h
81               dcp_time.h
82               decrypted_kdm.h
83               decrypted_kdm_key.h
84               encrypted_kdm.h
85               exceptions.h
86               gamma_lut.h
87               image.h
88               interop_subtitle_content.h
89               key.h
90               local_time.h
91               lut_cache.h
92               metadata.h
93               mono_picture_mxf.h
94               mono_picture_frame.h
95               mxf.h
96               mxf_writer.h
97               object.h
98               picture_mxf.h
99               picture_mxf_writer.h
100               raw_convert.h
101               rgb_xyz.h
102               reel.h
103               reel_asset.h
104               reel_mono_picture_asset.h
105               reel_mxf_asset.h
106               reel_picture_asset.h
107               reel_sound_asset.h
108               reel_stereo_picture_asset.h
109               reel_subtitle_asset.h
110               ref.h
111               argb_frame.h
112               signer.h
113               smpte_subtitle_content.h
114               sound_frame.h
115               sound_mxf.h
116               sound_mxf_writer.h
117               stereo_picture_mxf.h
118               stereo_picture_frame.h
119               subtitle.h
120               subtitle_content.h
121               subtitle_string.h
122               types.h
123               util.h
124               version.h
125               xyz_frame.h
126               """
127
128     bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
129     if bld.env.STATIC:
130         bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)