blob: 2eee53268a4685847f8783a52c48b6590b751709 (
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
|
from waflib import TaskGen
def build(bld):
if bld.env.STATIC:
obj = bld(features='cxx cxxstlib')
else:
obj = bld(features='cxx cxxshlib')
obj.name = 'libsub%s' % bld.env.API_VERSION
obj.target = 'sub%s' % bld.env.API_VERSION
obj.uselib = 'CXML BOOST_FILESYSTEM BOOST_LOCALE BOOST_REGEX FMT'
obj.export_includes = ['.']
obj.source = """
colour.cc
effect.cc
exceptions.cc
font_size.cc
horizontal_position.cc
iso6937.cc
iso6937_tables.cc
locale_convert.cc
rational.cc
raw_convert.cc
raw_subtitle.cc
reader.cc
reader_factory.cc
ssa_reader.cc
stl_binary_reader.cc
stl_binary_tables.cc
stl_binary_writer.cc
stl_text_reader.cc
stl_util.cc
sub_time.cc
subrip_reader.cc
subrip_writer.cc
subtitle.cc
util.cc
vertical_reference.cc
vertical_position.cc
web_vtt_reader.cc
"""
headers = """
collect.h
colour.h
effect.h
exceptions.h
font_size.h
horizontal_position.h
horizontal_reference.h
rational.h
raw_subtitle.h
reader.h
reader_factory.h
ssa_reader.h
stl_binary_tables.h
stl_binary_reader.h
stl_binary_writer.h
stl_text_reader.h
sub_time.h
subrip_reader.h
subrip_writer.h
subtitle.h
vertical_position.h
vertical_reference.h
web_vtt_reader.h
"""
bld.install_files('${PREFIX}/include/libsub%s/sub' % bld.env.API_VERSION, headers)
if bld.env.STATIC:
bld.install_files('${PREFIX}/lib', 'libsub%s.a' % bld.env.API_VERSION)
|