3 from waflib import Logs
11 dci_metadata_dialog.cc
17 gain_calculator_dialog.cc
28 wx_args = '--cppflags --cxxflags --libs'
30 wx_args += ' --static'
32 conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args=wx_args
33 uselib_store='WXWIDGETS', mandatory=True)
36 # wx-config returns its static libraries as full paths, without -l prefixes, which I think confuses
37 # check_cfg(), so it ends up putting these libraries before even the .cc file when linking.
38 # This hack works around that.
39 conf.env.STLIB_WXWIDGETS = ['wx_gtk2u_xrc-2.9', 'wx_gtk2u_qa-2.9', 'wx_baseu_net-2.9', 'wx_gtk2u_html-2.9',
40 'wx_gtk2u_adv-2.9', 'wx_gtk2u_core-2.9', 'wx_baseu_xml-2.9', 'wx_baseu-2.9']
43 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip()
45 if wx_version != '2.9.4':
46 conf.fatal('wxwidgets version 2.9.4 is required; %s found' % wx_version)
50 obj = bld(features = 'cxx cxxstlib')
52 obj = bld(features = 'cxx cxxshlib')
54 obj.name = 'libdvdomatic-wx'
55 obj.includes = [ '..' ]
56 obj.export_includes = ['.']
57 obj.uselib = 'WXWIDGETS'
58 if bld.env.TARGET_LINUX:
60 obj.use = 'libdvdomatic'
62 obj.target = 'dvdomatic-wx'
64 i18n.po_to_mo(os.path.join('src', 'wx'), 'libdvdomatic-wx', bld)
67 i18n.pot(os.path.join('src', 'wx'), sources, 'libdvdomatic-wx')
70 i18n.pot_merge(os.path.join('src', 'wx'), 'libdvdomatic-wx')