summaryrefslogtreecommitdiff
path: root/tests/projects/swig/python_cpp/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-24 22:45:56 +0800
committerruki <[email protected]>2021-09-24 22:45:56 +0800
commitc3b4b1882e06d80e2a3d2a81e4be594803d56c39 (patch)
tree9c8a4f01c417ec60b0b57d118ce5369fcedfac79 /tests/projects/swig/python_cpp/xmake.lua
parentc2f3f280bcfd82618590e9872ddce19b56940ab0 (diff)
install swig scripts
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")