Add FFmpeg content dialog; moving ffmpeg-specific things out of the film editor.
[dcpomatic.git] / src / wx / wscript
1 import os
2 import glob
3 from waflib import Logs
4 import i18n
5
6 sources = """
7           audio_dialog.cc
8           audio_mapping_view.cc
9           audio_plot.cc
10           config_dialog.cc
11           dci_metadata_dialog.cc
12           dir_picker_ctrl.cc
13           ffmpeg_content_dialog.cc
14           film_editor.cc
15           film_viewer.cc
16           filter_dialog.cc
17           filter_view.cc
18           gain_calculator_dialog.cc
19           imagemagick_content_dialog.cc
20           job_manager_view.cc
21           job_wrapper.cc
22           new_film_dialog.cc
23           properties_dialog.cc
24           server_dialog.cc
25           wx_util.cc
26           wx_ui_signaller.cc
27           """
28
29 def configure(conf):
30     conf.check_cfg(package = '', path = conf.options.wx_config, args = '--cppflags --cxxflags --libs', uselib_store = 'WXWIDGETS', mandatory = True)
31
32 def build(bld):
33     if bld.env.STATIC:
34         obj = bld(features = 'cxx cxxstlib')
35     else:
36         obj = bld(features = 'cxx cxxshlib')
37
38     obj.name   = 'libdcpomatic-wx'
39     obj.includes = [ '..' ]
40     obj.export_includes = ['.']
41     obj.uselib = 'WXWIDGETS'
42     obj.use = 'libdcpomatic'
43     obj.source = sources
44     obj.target = 'dcpomatic-wx'
45
46     i18n.po_to_mo(os.path.join('src', 'wx'), 'libdcpomatic-wx', bld)
47
48 def pot(bld):
49     i18n.pot(os.path.join('src', 'wx'), sources, 'libdcpomatic-wx')
50
51 def pot_merge(bld):
52     i18n.pot_merge(os.path.join('src', 'wx'), 'libdcpomatic-wx')