blob: 3960f2b0c54e8ccaba4830294e185d0210337a1f (
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
|
def build(bld):
if bld.env.STATIC_LIBDCP:
obj = bld(features = 'cxx cxxstlib')
else:
obj = bld(features = 'cxx cxxshlib')
obj.name = 'libdcp'
obj.target = 'dcp'
obj.export_includes = ['.']
obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 OPENSSL SIGC++ LIBXML++ OPENJPEG'
obj.use = 'libkumu-libdcp libasdcp-libdcp'
obj.source = """
asset.cc
asset_map.cc
cpl_file.cc
dcp.cc
dcp_time.cc
gamma_lut.cc
metadata.cc
mxf_asset.cc
picture_asset.cc
picture_frame.cc
pkl_file.cc
reel.cc
argb_frame.cc
sound_asset.cc
sound_frame.cc
subtitle_asset.cc
test_mode.cc
types.cc
util.cc
version.cc
xml.cc
"""
headers = """
asset.h
dcp.h
dcp_time.h
exceptions.h
metadata.h
mxf_asset.h
picture_asset.h
picture_frame.h
reel.h
argb_frame.h
sound_asset.h
sound_frame.h
subtitle_asset.h
test_mode.h
types.h
util.h
version.h
xml.h
"""
bld.install_files('${PREFIX}/include/libdcp', headers)
if bld.env.STATIC_LIBDCP:
bld.install_files('${PREFIX}/lib', 'libdcp.a')
|