summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorririyeye <[email protected]>2024-09-02 14:55:06 +0800
committerririyeye <[email protected]>2024-09-02 14:55:06 +0800
commit5b6a3a3d52ac17ddb01840c8d1d9c7da7d73c2a5 (patch)
tree3617e776856669253c91dec9b1f2115aeb77f6e4 /xmake
parent6cad7300ea2de380863c1f46e896a372b74d84a7 (diff)
swig fix include err , fix par err
Diffstat (limited to 'xmake')
-rw-r--r--xmake/rules/swig/build_module_file.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/xmake/rules/swig/build_module_file.lua b/xmake/rules/swig/build_module_file.lua
index 451e65d40..ae48e1350 100644
--- a/xmake/rules/swig/build_module_file.lua
+++ b/xmake/rules/swig/build_module_file.lua
@@ -119,7 +119,13 @@ function swig_par(target, sourcefile, opt)
end
table.insert(argv, sourcefile)
- return { argv = argv , objectfile = objectfile , swig = swig , sourcefile_cx = sourcefile_cx}
+ return { argv = argv
+ , objectfile = objectfile
+ , swig = swig
+ , sourcefile_cx = sourcefile_cx
+ , moduletype = moduletype
+ , fileconfig = fileconfig
+ }
end
function swig_build_cmd(target, batchcmds, sourcefile, opt, pars)
@@ -129,6 +135,8 @@ function swig_build_cmd(target, batchcmds, sourcefile, opt, pars)
local argv = par.argv
local swig = par.swig
local sourcefile_cx = par.sourcefile_cx
+ local moduletype = par.moduletype
+ local fileconfig = par.fileconfig
batchcmds:show_progress(opt.progress, "${color.build.object}compiling.swig.%s %s", moduletype, sourcefile)
batchcmds:mkdir(path.directory(sourcefile_cx))
@@ -149,6 +157,8 @@ function swig_build_file(target, sourcefile, opt, par)
local argv = par.argv
local swig = par.swig
local sourcefile_cx = par.sourcefile_cx
+ local moduletype = par.moduletype
+ local fileconfig = par.fileconfig
local dependfile = target:dependfile(objectfile)
local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile) or {})