Version 2.5.8 supports the construction of Swig modules. We provide swig.c and swig.cpp rules, which respectively support the generation of c/c++ module interface code, and cooperate with xmake's package management system to realize fully automated modules and dependent packages. Integration.
Related issues: #1622
Lua/C module
xmake.lua
Python/C module
xmake.lua
Python/C++ module
xmake.lua
Java/C module
xmake.lua
We can also configure buildjar = true to build jar file.
lua
add_rules("swig.c", {moduletype = "java", buildjar = true})