3 from waflib import Logs
14 colour_conversion_editor.cc
16 content_colour_conversion_dialog.cc
18 dci_metadata_dialog.cc
25 gain_calculator_dialog.cc
31 preset_colour_conversion_dialog.cc
36 servers_list_dialog.cc
50 args = '--cppflags --cxxflags'
51 if not conf.env.BUILD_STATIC:
52 args += ' --libs std,richtext'
54 conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args=args,
55 uselib_store='WXWIDGETS', mandatory=True)
57 if conf.env.BUILD_STATIC:
58 # wx-config returns its static libraries as full paths, without -l prefixes, which confuses
59 # check_cfg(), so just hard-code it all.
60 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',
61 'wx_gtk2u_adv-3.0', 'wx_gtk2u_core-3.0', 'wx_baseu_xml-3.0', 'wx_baseu-3.0']
62 conf.env.LIB_WXWIDGETS = ['tiff', 'SM', 'dl', 'jpeg', 'png', 'X11', 'expat']
65 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip()
67 if wx_version != '3.0.0':
68 conf.fatal('wxwidgets version 3.0.0 is required; %s found' % wx_version)
71 if bld.env.BUILD_STATIC:
72 obj = bld(features = 'cxx cxxstlib')
74 obj = bld(features = 'cxx cxxshlib')
76 obj.name = 'libdcpomatic-wx'
77 obj.export_includes = ['..']
78 obj.uselib = 'WXWIDGETS DCP'
79 if bld.env.TARGET_LINUX:
81 obj.use = 'libdcpomatic'
83 obj.target = 'dcpomatic-wx'
85 i18n.po_to_mo(os.path.join('src', 'wx'), 'libdcpomatic-wx', bld)
88 i18n.pot(os.path.join('src', 'wx'), sources + " editable_list.h", 'libdcpomatic-wx')
91 i18n.pot_merge(os.path.join('src', 'wx'), 'libdcpomatic-wx')