summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-02 23:08:07 +0800
committerruki <[email protected]>2022-03-02 23:08:07 +0800
commit97fc3a089b3aacbb96c36de154f0f024da1e8070 (patch)
tree02688455dfdbae3fd1eda369739a3c6a71a13a1d /tests/projects
parent952611bf9f388d1f706f44daf557b580a1140c35 (diff)
add export list file
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/c/shared_library_export_list/src/foo.export.txt2
-rw-r--r--tests/projects/c/shared_library_export_list/xmake.lua6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/projects/c/shared_library_export_list/src/foo.export.txt b/tests/projects/c/shared_library_export_list/src/foo.export.txt
new file mode 100644
index 000000000..f8c70f59e
--- /dev/null
+++ b/tests/projects/c/shared_library_export_list/src/foo.export.txt
@@ -0,0 +1,2 @@
+add
+sub
diff --git a/tests/projects/c/shared_library_export_list/xmake.lua b/tests/projects/c/shared_library_export_list/xmake.lua
index 7e856130f..b48e131c2 100644
--- a/tests/projects/c/shared_library_export_list/xmake.lua
+++ b/tests/projects/c/shared_library_export_list/xmake.lua
@@ -7,6 +7,12 @@ target("foo")
"add",
"sub"}})
+target("foo2")
+ set_kind("shared")
+ add_files("src/foo.c")
+ add_files("src/foo.export.txt")
+ add_rules("utils.symbols.export_list")
+
target("test")
set_kind("binary")
add_deps("foo")