2
0
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:
Thomas Nagy 2018-11-06 00:19:41 +01:00
parent 9923a2e22e
commit 314bd31e6a
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
3 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
print("hello")

View File

@ -6,3 +6,4 @@
%include "a.h"
%module test_swig_waf
%pythoncode "python/include.py"

View File

@ -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'