3 from waflib import Logs
11 dci_metadata_dialog.cc
17 gain_calculator_dialog.cc
28 conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args='--cppflags --cxxflags --libs',
29 uselib_store='WXWIDGETS', mandatory=True)
32 # wx-config returns its static libraries as full paths, without -l prefixes, which confuses
33 # check_cfg(), so just hard-code it all.
34 conf.env.STLIB_WXWIDGETS = ['wx_gtk2u_xrc-2.9', 'wx_gtk2u_qa-2.9', 'wx_baseu_net-2.9', 'wx_gtk2u_html-2.9',
35 'wx_gtk2u_adv-2.9', 'wx_gtk2u_core-2.9', 'wx_baseu_xml-2.9', 'wx_baseu-2.9']
36 conf.env.LIB_WXWIDGETS = ['tiff', 'SM']
39 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip()
41 if wx_version != '2.9.4':
42 conf.fatal('wxwidgets version 2.9.4 is required; %s found' % wx_version)
46 obj = bld(features = 'cxx cxxstlib')
48 obj = bld(features = 'cxx cxxshlib')
50 obj.name = 'libdvdomatic-wx'
51 obj.includes = [ '..' ]
52 obj.export_includes = ['.']
53 obj.uselib = 'WXWIDGETS'
54 if bld.env.TARGET_LINUX:
56 obj.use = 'libdvdomatic'
58 obj.target = 'dvdomatic-wx'
60 i18n.po_to_mo(os.path.join('src', 'wx'), 'libdvdomatic-wx', bld)
63 i18n.pot(os.path.join('src', 'wx'), sources, 'libdvdomatic-wx')
66 i18n.pot_merge(os.path.join('src', 'wx'), 'libdvdomatic-wx')