summaryrefslogtreecommitdiff
path: root/tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-12-04 22:33:44 +0800
committerruki <[email protected]>2024-12-04 22:33:44 +0800
commit34ee1cb9ceeec762cf986dc23a68d466e100e6e2 (patch)
tree22cb8fee5292c0cc2f5b18a763b621f9b51c4fa4 /tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua
parentb580caf8121ca38ef4413f428bd9b5cb0277695a (diff)
add package.sync_requires_to_deps policy
Diffstat (limited to 'tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua')
-rw-r--r--tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua b/tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua
new file mode 100644
index 000000000..2d3d0b029
--- /dev/null
+++ b/tests/projects/package/compatibility/sync_requires_to_deps/xmake.lua
@@ -0,0 +1,33 @@
+
+package("foo")
+ add_deps("zlib >=1.2.13")
+ set_policy("package.install_locally", true)
+ on_install(function () end)
+package_end()
+
+package("bar")
+ add_deps("zlib 1.2.x")
+ set_policy("package.install_locally", true)
+ on_install(function () end)
+package_end()
+
+package("zoo")
+ set_policy("package.install_locally", true)
+ on_install(function () end)
+package_end()
+
+package("test")
+ add_deps("foo", "bar", "zoo")
+ set_policy("package.install_locally", true)
+ on_install(function () end)
+package_end()
+
+set_policy("package.sync_requires_to_deps", true)
+
+add_requires("test")
+add_requires("zlib", {system = false, configs = {shared = true}})
+
+target("test")
+ set_kind("binary")
+ add_files("src/*.c")
+ add_packages("test")