mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Find more Swig dependencies - Issue 2206
This commit is contained in:
parent
9923a2e22e
commit
314bd31e6a
1
playground/swig/extend/python/include.py
Normal file
1
playground/swig/extend/python/include.py
Normal file
@ -0,0 +1 @@
|
||||
print("hello")
|
@ -6,3 +6,4 @@
|
||||
%include "a.h"
|
||||
|
||||
%module test_swig_waf
|
||||
%pythoncode "python/include.py"
|
||||
|
@ -20,7 +20,7 @@ SWIG_EXTS = ['.swig', '.i']
|
||||
re_module = re.compile('%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('[#%](?:include|import(?:\(module=".*"\))+|python(?:begin|code)) [<"](.*)[">]', re.M)
|
||||
|
||||
class swig(Task.Task):
|
||||
color = 'BLUE'
|
||||
|
Loading…
Reference in New Issue
Block a user