swig.md 922 B

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

Python/C module

Python/C++ module

Java/C module

Example project

We can also configure buildjar = true to build jar file.

add_rules("swig.c", {moduletype = "java", buildjar = true})