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
30 preset_colour_conversion_dialog.cc
35 servers_list_dialog.cc
47 args = '--cppflags --cxxflags'
48 if not conf.env.STATIC:
49 args += ' --libs std,richtext'
51 conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args=args,
52 uselib_store='WXWIDGETS', mandatory=True)
55 # wx-config returns its static libraries as full paths, without -l prefixes, which confuses
56 # check_cfg(), so just hard-code it all.
57 conf.env.STLIB_WXWIDGETS = ['wx_gtk2u_richtext-3.0', 'wx_gtk2u_xrc-3.0', 'wx_gtk2u_qa-3.0', 'wx_baseu_net-3.0', 'wx_gtk2u_html-3.0',
58 'wx_gtk2u_adv-3.0', 'wx_gtk2u_core-3.0', 'wx_baseu_xml-3.0', 'wx_baseu-3.0']
59 conf.env.LIB_WXWIDGETS = ['tiff', 'SM', 'dl', 'jpeg', 'png', 'X11', 'expat']
62 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip()
64 if wx_version != '3.0.0':
65 conf.fatal('wxwidgets version 3.0.0 is required; %s found' % wx_version)
69 obj = bld(features = 'cxx cxxstlib')
71 obj = bld(features = 'cxx cxxshlib')
73 obj.name = 'libdcpomatic-wx'
74 obj.export_includes = ['..']
75 obj.uselib = 'WXWIDGETS'
76 if bld.env.TARGET_LINUX:
78 obj.use = 'libdcpomatic'
80 obj.target = 'dcpomatic-wx'
82 i18n.po_to_mo(os.path.join('src', 'wx'), 'libdcpomatic-wx', bld)
85 i18n.pot(os.path.join('src', 'wx'), sources + " editable_list.h", 'libdcpomatic-wx')
88 i18n.pot_merge(os.path.join('src', 'wx'), 'libdcpomatic-wx')