summaryrefslogtreecommitdiff
path: root/tests/projects/swig/python_cpp/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-24 12:50:52 +0800
committerGitHub <[email protected]>2021-09-24 12:50:52 +0800
commit024183f9c98dd03f22384203238ba661a5714640 (patch)
tree9913cdd96df86f6f289a3afd57c63d5105201e0d /tests/projects/swig/python_cpp/xmake.lua
parentfbccc2375dba05f227ff8e6ec0b61c9357ca449d (diff)
parent4a8694d08d48ebc4101cc1b35e88b3fffe56de59 (diff)
Merge pull request #1703 from xmake-io/swig
Support Swig
Diffstat (limited to 'tests/projects/swig/python_cpp/xmake.lua')
-rw-r--r--tests/projects/swig/python_cpp/xmake.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/projects/swig/python_cpp/xmake.lua b/tests/projects/swig/python_cpp/xmake.lua
new file mode 100644
index 000000000..f0c322310
--- /dev/null
+++ b/tests/projects/swig/python_cpp/xmake.lua
@@ -0,0 +1,8 @@
+add_rules("mode.release", "mode.debug")
+add_requires("python 3.x")
+
+target("example")
+ add_rules("swig.cpp")
+ add_files("src/example.i", {moduletype = "python", scriptdir = "share"})
+ add_files("src/example.cpp")
+ add_packages("python")