X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwscript;h=cc303f5e801d0b4011cd41f9ed02a507e87350f5;hb=2bde54c29e6b36c75948ca1d3efcda0535d148d7;hp=258e4df8729dbd3dc319ea8ee9cc940dc460ce91;hpb=a650e785467a9d7784d2ece4a477acd8cfa9181a;p=dcpomatic.git diff --git a/src/wx/wscript b/src/wx/wscript index 258e4df87..cc303f5e8 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -1,32 +1,46 @@ +import os +import glob +from waflib import Logs +import i18n + +sources = """ + audio_dialog.cc + audio_plot.cc + config_dialog.cc + dci_metadata_dialog.cc + dir_picker_ctrl.cc + film_editor.cc + film_viewer.cc + filter_dialog.cc + filter_view.cc + gain_calculator_dialog.cc + job_manager_view.cc + job_wrapper.cc + new_film_dialog.cc + properties_dialog.cc + server_dialog.cc + wx_util.cc + wx_ui_signaller.cc + """ + def configure(conf): - conf.check_cfg(package = '', path = 'wx-config', args = '--cppflags --cxxflags --libs', uselib_store = 'WXWIDGETS', mandatory = True) + conf.check_cfg(package = '', path = conf.options.wx_config, args = '--cppflags --cxxflags --libs', uselib_store = 'WXWIDGETS', mandatory = True) def build(bld): - obj = bld(features = 'cxx cxxshlib') + if bld.env.STATIC: + obj = bld(features = 'cxx cxxstlib') + else: + obj = bld(features = 'cxx cxxshlib') + obj.name = 'libdvdomatic-wx' obj.includes = [ '..' ] obj.export_includes = ['.'] obj.uselib = 'WXWIDGETS' obj.use = 'libdvdomatic' - obj.source = """ - film_editor.cc - wx_util.cc - film_viewer.cc - job_manager_view.cc - job_wrapper.cc - config_dialog.cc - filter_dialog.cc - filter_view.cc - dcp_range_dialog.cc - server_dialog.cc - new_film_dialog.cc - """ - -# alignment.cc -# film_list.cc -# dvd_title_dialog.cc + obj.source = sources + obj.target = 'dvdomatic-wx' - if not bld.env.DISABLE_PLAYER: - obj.source += " film_player.cc" + i18n.po_to_mo(os.path.join('src', 'wx'), 'libdvdomatic-wx', bld) - obj.target = 'dvdomatic-wx' +def pot(bld): + i18n.pot(os.path.join('src', 'wx'), sources, 'libdvdomatic-wx')