Try to make windows installer work with wx 2.9.4.
[dcpomatic.git] / src / wx / wscript
1 def configure(conf):
2     if bld.env.TARGET_WINDOWS:
3         conf.check_cfg(package = '', atleast_version = '2.9.4', path = 'wx-config', args = '--cppflags --cxxflags --libs', uselib_store = 'WXWIDGETS', mandatory = True)
4     else:
5         conf.check_cfg(package = '', atleast_version = '2.8.12', path = 'wx-config', args = '--cppflags --cxxflags --libs', uselib_store = 'WXWIDGETS', mandatory = True)
6
7 def build(bld):
8     if bld.env.STATIC:
9         obj = bld(features = 'cxx cxxstlib')
10     else:
11         obj = bld(features = 'cxx cxxshlib')
12
13     obj.name   = 'libdvdomatic-wx'
14     obj.includes = [ '..' ]
15     obj.export_includes = ['.']
16     obj.uselib = 'WXWIDGETS'
17     obj.use = 'libdvdomatic'
18     obj.source = """
19                  config_dialog.cc
20                  dci_name_dialog.cc
21                  dir_picker_ctrl.cc
22                  film_editor.cc
23                  film_viewer.cc
24                  filter_dialog.cc
25                  filter_view.cc
26                  gain_calculator_dialog.cc
27                  job_manager_view.cc
28                  job_wrapper.cc
29                  new_film_dialog.cc
30                  properties_dialog.cc
31                  server_dialog.cc
32                  wx_util.cc
33                  wx_ui_signaller.cc
34                  """
35
36     obj.target = 'dvdomatic-wx'