summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/bindings/python/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/bindings/python/wscript')
-rw-r--r--WebKit/wx/bindings/python/wscript19
1 files changed, 14 insertions, 5 deletions
diff --git a/WebKit/wx/bindings/python/wscript b/WebKit/wx/bindings/python/wscript
index f9d73c3..41e5d41 100644
--- a/WebKit/wx/bindings/python/wscript
+++ b/WebKit/wx/bindings/python/wscript
@@ -55,13 +55,18 @@ def set_options(opt):
common_set_options(opt)
def configure(conf):
- common_configure(conf)
- conf.check_tool('swig', tooldir='.')
- conf.check_swig_version('1.3.29')
+ if Options.options.wxpython:
+ common_configure(conf)
+ conf.check_tool('swig', tooldir='.')
+ conf.check_swig_version('1.3.29')
def build(bld):
if Options.options.wxpython:
- wx_swig_args = ['-DSWIG_TYPE_TABLE=_wxPython_table', '-DWXP_USE_THREAD=1', '-DSWIG_PYTHON_OUTPUT_TUPLE']
+ defines = ['SWIG_TYPE_TABLE=_wxPython_table', 'WXP_USE_THREAD=1', 'SWIG_PYTHON_OUTPUT_TUPLE']
+ wx_swig_args = []
+ for define in defines:
+ wx_swig_args.append('-D%s' % define)
+
try:
import wx.build.config
wx_swig_args += wx.build.config.swig_args
@@ -76,13 +81,17 @@ def build(bld):
Logs.warn("Cannot find location of wxPython .i files, wxPython extension will not be built.")
return
+ for inc_path in include_paths:
+ wx_swig_args.append('-I' + inc_path)
+
obj = bld.new_task_gen(
features = 'cxx cshlib pyext',
includes = ' '.join(include_paths),
source = 'webview.i',
swig_flags = ' '.join(wx_swig_args),
+ defines = defines,
target = '_webview',
- uselib = 'WX CURL ICU XSLT XML SQLITE3 WXWEBKIT ' + waf_configname,
+ uselib = 'WX CURL ICU XSLT XML SQLITE3 WXWEBKIT ' + get_config(),
libpath = [output_dir],
uselib_local = '',