Tweaks to LocalTime; build/install fixes.
[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               decrypted_kdm_key.h
79               encrypted_kdm.h
80               exceptions.h
81               gamma_lut.h
82               image.h
83               key.h
84               local_time.h
85               lut_cache.h
86               metadata.h
87               mono_picture_mxf.h
88               mono_picture_frame.h
89               mxf.h
90               mxf_writer.h
91               object.h
92               picture_mxf.h
93               picture_mxf_writer.h
94               rgb_xyz.h
95               reel.h
96               reel_asset.h
97               reel_mono_picture_asset.h
98               reel_picture_asset.h
99               reel_sound_asset.h
100               reel_stereo_picture_asset.h
101               ref.h
102               argb_frame.h
103               signer.h
104               signer_chain.h
105               sound_frame.h
106               sound_mxf.h
107               sound_mxf_writer.h
108               stereo_picture_mxf.h
109               stereo_picture_frame.h
110               subtitle.h
111               subtitle_content.h
112               subtitle_string.h
113               types.h
114               util.h
115               version.h
116               xyz_frame.h
117               """
118
119     bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
120     if bld.env.STATIC:
121         bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)