Remove Image and ARGBImage and just dump RGB data into
[libdcp.git] / src / wscript
1 from waflib import TaskGen
2
3 def build(bld):
4     source = """
5              asset.cc
6              certificate_chain.cc
7              certificates.cc
8              colour_conversion.cc
9              colour_matrix.cc
10              content.cc
11              cpl.cc
12              dcp.cc        
13              dcp_time.cc
14              decrypted_kdm.cc
15              decrypted_kdm_key.cc
16              encrypted_kdm.cc
17              exceptions.cc
18              file.cc
19              font.cc
20              gamma_transfer_function.cc
21              interop_load_font.cc
22              interop_subtitle_content.cc
23              key.cc
24              local_time.cc
25              metadata.cc
26              modified_gamma_transfer_function.cc
27              mono_picture_mxf.cc
28              mono_picture_mxf_writer.cc
29              mono_picture_frame.cc
30              mxf.cc
31              mxf_writer.cc
32              object.cc
33              picture_mxf.cc
34              picture_mxf_writer.cc
35              reel.cc
36              reel_asset.cc
37              reel_mono_picture_asset.cc
38              reel_mxf_asset.cc
39              reel_picture_asset.cc
40              reel_sound_asset.cc
41              reel_stereo_picture_asset.cc
42              reel_subtitle_asset.cc
43              rgb_xyz.cc
44              signer.cc
45              smpte_load_font.cc
46              smpte_subtitle_content.cc
47              sound_mxf.cc
48              sound_mxf_writer.cc
49              sound_frame.cc
50              stereo_picture_mxf.cc
51              stereo_picture_mxf_writer.cc
52              stereo_picture_frame.cc
53              subtitle.cc
54              subtitle_content.cc
55              subtitle_string.cc
56              text.cc
57              transfer_function.cc
58              types.cc
59              util.cc
60              version.cc
61              xyz_image.cc
62              """
63
64     headers = """
65               asset.h
66               certificate_chain.h
67               certificates.h
68               colour_conversion.h
69               colour_matrix.h
70               cpl.h
71               content.h
72               dcp.h
73               dcp_time.h
74               decrypted_kdm.h
75               decrypted_kdm_key.h
76               encrypted_kdm.h
77               exceptions.h
78               gamma_transfer_function.h
79               interop_load_font.h
80               interop_subtitle_content.h
81               key.h
82               load_font.h
83               local_time.h
84               metadata.h
85               mono_picture_mxf.h
86               mono_picture_frame.h
87               modified_gamma_transfer_function.h
88               mxf.h
89               mxf_writer.h
90               object.h
91               picture_mxf.h
92               picture_mxf_writer.h
93               raw_convert.h
94               rgb_xyz.h
95               reel.h
96               reel_asset.h
97               reel_mono_picture_asset.h
98               reel_mxf_asset.h
99               reel_picture_asset.h
100               reel_sound_asset.h
101               reel_stereo_picture_asset.h
102               reel_subtitle_asset.h
103               ref.h
104               signer.h
105               smpte_load_font.h
106               smpte_subtitle_content.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               transfer_function.h
116               types.h
117               util.h
118               version.h
119               xyz_image.h
120               """
121
122     # Main library
123     if bld.env.STATIC:
124         obj = bld(features='cxx cxxstlib')
125     else:
126         obj = bld(features='cxx cxxshlib')
127     obj.name = 'libdcp%s' % bld.env.API_VERSION
128     obj.target = 'dcp%s' % bld.env.API_VERSION
129     obj.export_includes = ['.']
130     obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
131     obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
132     obj.source = source
133
134     # Library for gcov
135     if bld.is_defined('HAVE_GCOV'):
136         obj = bld(features='cxx cxxstlib')
137         obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
138         obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
139         obj.export_includes = ['.']
140         obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
141         obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
142         obj.source = source
143         obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
144
145     bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
146     if bld.env.STATIC:
147         bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)