summaryrefslogtreecommitdiffstats
path: root/waflib/extras/swig.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 18:19:41 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:22:35 +0100
commite552da4b126600039339751343e9da6349972c1d (patch)
tree9945784581c196c6d95fd059a0df44dddf630649 /waflib/extras/swig.py
parentebd7013d42a1deec8f4cd10cae94e38d8e7cd424 (diff)
parente8b536a79e87e46ac662230ff7370d2162c837ae (diff)
downloaddrobillad-e552da4b126600039339751343e9da6349972c1d.tar.gz
drobillad-e552da4b126600039339751343e9da6349972c1d.tar.bz2
drobillad-e552da4b126600039339751343e9da6349972c1d.zip
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/extras/swig.py')
-rw-r--r--waflib/extras/swig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/waflib/extras/swig.py b/waflib/extras/swig.py
index fd3d6d2..740ab46 100644
--- a/waflib/extras/swig.py
+++ b/waflib/extras/swig.py
@@ -17,10 +17,10 @@ tasks have to be added dynamically:
SWIG_EXTS = ['.swig', '.i']
-re_module = re.compile('%module(?:\s*\(.*\))?\s+(.+)', re.M)
+re_module = re.compile(r'%module(?:\s*\(.*\))?\s+(.+)', re.M)
re_1 = re.compile(r'^%module.*?\s+([\w]+)\s*?$', re.M)
-re_2 = re.compile('[#%]include [<"](.*)[">]', re.M)
+re_2 = re.compile(r'[#%](?:include|import(?:\(module=".*"\))+|python(?:begin|code)) [<"](.*)[">]', re.M)
class swig(Task.Task):
color = 'BLUE'