3 from waflib import Logs
13 colour_conversion_editor.cc
15 content_colour_conversion_dialog.cc
17 dci_metadata_dialog.cc
24 gain_calculator_dialog.cc
29 preset_colour_conversion_dialog.cc
34 servers_list_dialog.cc
46 args = '--cppflags --cxxflags'
47 if not conf.env.STATIC:
50 conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args=args,
51 uselib_store='WXWIDGETS', mandatory=True)
54 # wx-config returns its static libraries as full paths, without -l prefixes, which confuses
55 # check_cfg(), so just hard-code it all.
56 conf.env.STLIB_WXWIDGETS = ['wx_gtk2u_xrc-2.9', 'wx_gtk2u_qa-2.9', 'wx_baseu_net-2.9', 'wx_gtk2u_html-2.9',
57 'wx_gtk2u_adv-2.9', 'wx_gtk2u_core-2.9', 'wx_baseu_xml-2.9', 'wx_baseu-2.9']
58 conf.env.LIB_WXWIDGETS = ['tiff', 'SM', 'dl', 'jpeg', 'png', 'X11']
61 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip()
63 if wx_version != '2.9.4' and wx_version != '2.9.5':
64 conf.fatal('wxwidgets version 2.9.4 or 2.9.5 is required; %s found' % wx_version)
68 obj = bld(features = 'cxx cxxstlib')
70 obj = bld(features = 'cxx cxxshlib')
72 obj.name = 'libdcpomatic-wx'
73 obj.export_includes = ['..']
74 obj.uselib = 'WXWIDGETS'
75 if bld.env.TARGET_LINUX:
77 obj.use = 'libdcpomatic'
79 obj.target = 'dcpomatic-wx'
81 i18n.po_to_mo(os.path.join('src', 'wx'), 'libdcpomatic-wx', bld)
84 i18n.pot(os.path.join('src', 'wx'), sources, 'libdcpomatic-wx')
87 i18n.pot_merge(os.path.join('src', 'wx'), 'libdcpomatic-wx')