summaryrefslogtreecommitdiff
path: root/tests/projects/swig/java_c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/swig/java_c')
-rw-r--r--tests/projects/swig/java_c/src/example.i4
-rw-r--r--tests/projects/swig/java_c/src/example2.i2
-rw-r--r--tests/projects/swig/java_c/xmake.lua1
3 files changed, 1 insertions, 6 deletions
diff --git a/tests/projects/swig/java_c/src/example.i b/tests/projects/swig/java_c/src/example.i
index 1228cb6a9..6bac9f7a3 100644
--- a/tests/projects/swig/java_c/src/example.i
+++ b/tests/projects/swig/java_c/src/example.i
@@ -4,8 +4,4 @@ extern int fact(int n);
%}
extern int fact(int n);
-
-
-
-
%include "example2.i"
diff --git a/tests/projects/swig/java_c/src/example2.i b/tests/projects/swig/java_c/src/example2.i
index a486c354a..794af702d 100644
--- a/tests/projects/swig/java_c/src/example2.i
+++ b/tests/projects/swig/java_c/src/example2.i
@@ -1,5 +1,3 @@
-
-
%inline %{
#include "test.h"
%}
diff --git a/tests/projects/swig/java_c/xmake.lua b/tests/projects/swig/java_c/xmake.lua
index c1dfccf0d..3108859a7 100644
--- a/tests/projects/swig/java_c/xmake.lua
+++ b/tests/projects/swig/java_c/xmake.lua
@@ -17,6 +17,7 @@ target("example")
"build/java/com/example/"
}})
add_files("src/example.c")
+ add_includedirs("src")
before_build(function()
-- ensure output path exists before running swig
os.mkdir("build/java/com/example/")