blob: ef1d1c083f225fc20ba442c09a062cbd03ac2c43 (
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
|
import os
sources = """
config_dialog.cc
dci_metadata_dialog.cc
dir_picker_ctrl.cc
film_editor.cc
film_viewer.cc
filter_dialog.cc
filter_view.cc
gain_calculator_dialog.cc
job_manager_view.cc
job_wrapper.cc
new_film_dialog.cc
properties_dialog.cc
server_dialog.cc
wx_util.cc
wx_ui_signaller.cc
"""
def configure(conf):
conf.check_cfg(package = '', path = conf.options.wx_config, args = '--cppflags --cxxflags --libs', uselib_store = 'WXWIDGETS', mandatory = True)
def build(bld):
if bld.env.STATIC:
obj = bld(features = 'cxx cxxstlib')
else:
obj = bld(features = 'cxx cxxshlib')
obj.name = 'libdvdomatic-wx'
obj.includes = [ '..' ]
obj.export_includes = ['.']
obj.uselib = 'WXWIDGETS'
obj.use = 'libdvdomatic'
obj.source = sources
obj.target = 'dvdomatic-wx'
def pot(bld):
s = ""
for f in sources.split('\n'):
t = f.strip()
if len(t) > 0:
s += (os.path.join('src', 'wx', t)) + " "
os.system('xgettext -d libdvdomatic -s --keyword=_ -p build/src/wx -o libdvdomatic-wx.pot %s' % s)
|