3 from waflib import Logs
14 dci_metadata_dialog.cc
21 gain_calculator_dialog.cc
38 args = '--cppflags --cxxflags'
39 if not conf.env.STATIC:
42 conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args=args,
43 uselib_store='WXWIDGETS', mandatory=True)
46 # wx-config returns its static libraries as full paths, without -l prefixes, which confuses
47 # check_cfg(), so just hard-code it all.
48 conf.env.STLIB_WXWIDGETS = ['wx_gtk2u_xrc-2.9', 'wx_gtk2u_qa-2.9', 'wx_baseu_net-2.9', 'wx_gtk2u_html-2.9',
49 'wx_gtk2u_adv-2.9', 'wx_gtk2u_core-2.9', 'wx_baseu_xml-2.9', 'wx_baseu-2.9']
50 conf.env.LIB_WXWIDGETS = ['tiff', 'SM', 'dl', 'jpeg', 'png', 'X11']
53 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip()
55 if wx_version != '2.9.4':
56 conf.fatal('wxwidgets version 2.9.4 is required; %s found' % wx_version)
60 obj = bld(features = 'cxx cxxstlib')
62 obj = bld(features = 'cxx cxxshlib')
64 obj.name = 'libdcpomatic-wx'
65 # obj.includes = [ '..' ]
66 obj.export_includes = ['..']
67 obj.uselib = 'WXWIDGETS'
68 if bld.env.TARGET_LINUX:
70 obj.use = 'libdcpomatic'
72 obj.target = 'dcpomatic-wx'
74 i18n.po_to_mo(os.path.join('src', 'wx'), 'libdcpomatic-wx', bld)
77 i18n.pot(os.path.join('src', 'wx'), sources, 'libdcpomatic-wx')
80 i18n.pot_merge(os.path.join('src', 'wx'), 'libdcpomatic-wx')