summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcompilelife <[email protected]>2023-03-14 12:32:25 +0800
committercompilelife <[email protected]>2023-03-14 12:32:25 +0800
commit0489d50d1d07c9db3afbf223f0897e76b0f1fe56 (patch)
tree71dfd39daea384e87b941b95857d845a6618b762
parent7ce8680f4288e3c1fa7c51c4a23ca78d6a4853f6 (diff)
add swig java support
-rw-r--r--xmake/rules/swig/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/swig/xmake.lua b/xmake/rules/swig/xmake.lua
index c0387a940..a76e51ba1 100644
--- a/xmake/rules/swig/xmake.lua
+++ b/xmake/rules/swig/xmake.lua
@@ -46,7 +46,7 @@ rule("swig.base")
target:set("extension", ".pyd")
end
end
- elseif moduletype == "lua" then
+ elseif moduletype == "lua" or moduletype == "java" then
target:set("prefixname", "")
if not target:is_plat("windows") then
target:set("extension", ".so")
@@ -68,6 +68,8 @@ rule("swig.base")
scriptfile = scriptfile .. ".py"
elseif moduletype == "lua" then
scriptfile = scriptfile .. ".lua"
+ elseif moduletype == "java" then
+ scriptfile = scriptfile .. ".java"
end
table.insert(scriptfiles, scriptfile)
if scriptdir then