summaryrefslogtreecommitdiff
path: root/src/wscript
blob: 6145a5cdb292dff2ea4ac9db4ddd186b9501c259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
from waflib import TaskGen

def build(bld):
    if bld.env.STATIC:
        obj = bld(features = 'cxx cxxstlib')
    else:
        obj = bld(features = 'cxx cxxshlib')

    obj.name = 'libdcp%s' % bld.env.API_VERSION
    obj.target = 'dcp%s' % bld.env.API_VERSION
    obj.export_includes = ['.']
    obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1'
    obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
    obj.source = """
                 argb_frame.cc
                 asset.cc
                 certificate_chain.cc
                 certificates.cc
                 colour_matrix.cc
                 content.cc
                 cpl.cc
                 dcp.cc        
                 dcp_time.cc
                 decrypted_kdm.cc
                 decrypted_kdm_key.cc
                 encrypted_kdm.cc
                 exceptions.cc
                 file.cc
                 font.cc
                 gamma_lut.cc
                 image.cc
                 key.cc
                 load_font.cc
                 local_time.cc
                 metadata.cc
                 mono_picture_mxf.cc
                 mono_picture_mxf_writer.cc
                 mono_picture_frame.cc
                 mxf.cc
                 mxf_writer.cc
                 object.cc
                 picture_mxf.cc
                 picture_mxf_writer.cc
                 reel.cc
                 reel_asset.cc
                 reel_mono_picture_asset.cc
                 reel_mxf_asset.cc
                 reel_picture_asset.cc
                 reel_sound_asset.cc
                 reel_stereo_picture_asset.cc
                 reel_subtitle_asset.cc
                 rgb_xyz.cc
                 signer.cc
                 sound_mxf.cc
                 sound_mxf_writer.cc
                 sound_frame.cc
                 stereo_picture_mxf.cc
                 stereo_picture_mxf_writer.cc
                 stereo_picture_frame.cc
                 subtitle.cc
                 subtitle_content.cc
                 subtitle_string.cc
                 text.cc
                 types.cc
                 util.cc
                 version.cc
                 xyz_frame.cc
                 """

    headers = """
              asset.h
              certificate_chain.h
              certificates.h
              colour_matrix.h
              cpl.h
              content.h
              dcp.h
              dcp_time.h
              decrypted_kdm.h
              decrypted_kdm_key.h
              encrypted_kdm.h
              exceptions.h
              gamma_lut.h
              image.h
              key.h
              local_time.h
              lut_cache.h
              metadata.h
              mono_picture_mxf.h
              mono_picture_frame.h
              mxf.h
              mxf_writer.h
              object.h
              picture_mxf.h
              picture_mxf_writer.h
              raw_convert.h
              rgb_xyz.h
              reel.h
              reel_asset.h
              reel_mono_picture_asset.h
              reel_mxf_asset.h
              reel_picture_asset.h
              reel_sound_asset.h
              reel_stereo_picture_asset.h
              reel_subtitle_asset.h
              ref.h
              argb_frame.h
              signer.h
              sound_frame.h
              sound_mxf.h
              sound_mxf_writer.h
              stereo_picture_mxf.h
              stereo_picture_frame.h
              subtitle.h
              subtitle_content.h
              subtitle_string.h
              types.h
              util.h
              version.h
              xyz_frame.h
              """

    bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
    if bld.env.STATIC:
        bld.install_files('${PREFIX}/lib', 'libdcp%s.a' % bld.env.API_VERSION)