Change output gamma correction to be closer to EasyDCP behaviour.
[libdcp.git] / src / wscript
1 def build(bld):
2     if bld.env.STATIC_LIBDCP:
3         obj = bld(features = 'cxx cxxstlib')
4     else:
5         obj = bld(features = 'cxx cxxshlib')
6
7     obj.name = 'libdcp'
8     obj.target = 'dcp'
9     obj.export_includes = ['.']
10     obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 OPENSSL SIGC++ LIBXML++ OPENJPEG'
11     obj.use = 'libkumu-libdcp libasdcp-libdcp'
12     obj.source = """
13                  asset.cc
14                  asset_map.cc
15                  cpl_file.cc
16                  dcp.cc        
17                  dcp_time.cc
18                  gamma_lut.cc
19                  metadata.cc
20                  mxf_asset.cc
21                  picture_asset.cc
22                  picture_frame.cc
23                  pkl_file.cc
24                  reel.cc
25                  argb_frame.cc
26                  sound_asset.cc
27                  sound_frame.cc
28                  subtitle_asset.cc
29                  test_mode.cc
30                  types.cc
31                  util.cc
32                  version.cc
33                  xml.cc
34                  """
35
36     headers = """
37               asset.h
38               dcp.h
39               dcp_time.h
40               exceptions.h
41               metadata.h
42               mxf_asset.h
43               picture_asset.h
44               picture_frame.h
45               reel.h
46               argb_frame.h
47               sound_asset.h
48               sound_frame.h
49               subtitle_asset.h
50               test_mode.h
51               types.h
52               util.h
53               version.h
54               xml.h
55               """
56
57     bld.install_files('${PREFIX}/include/libdcp', headers)
58     if bld.env.STATIC_LIBDCP:
59         bld.install_files('${PREFIX}/lib', 'libdcp.a')