From c2f3f280bcfd82618590e9872ddce19b56940ab0 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 24 Sep 2021 22:41:45 +0800 Subject: add swig.c and swig.cpp rules --- tests/projects/swig/python_c/xmake.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/projects/swig/python_c/xmake.lua (limited to 'tests/projects/swig/python_c/xmake.lua') diff --git a/tests/projects/swig/python_c/xmake.lua b/tests/projects/swig/python_c/xmake.lua new file mode 100644 index 000000000..2b30079b6 --- /dev/null +++ b/tests/projects/swig/python_c/xmake.lua @@ -0,0 +1,8 @@ +add_rules("mode.release", "mode.debug") +add_requires("python 3.x") + +target("example") + add_rules("swig.c") + add_files("src/example.i", {moduletype = "python"}) + add_files("src/example.c") + add_packages("python") -- cgit v1.3.1