diff options
| author | ruki <[email protected]> | 2026-01-13 22:36:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-13 22:36:44 +0800 |
| commit | e8ad981e1326c6fa47242c10ff64b4b794bcf215 (patch) | |
| tree | 6fc9ab324c65f92fcca79c698545c4d4d1968542 /tests/projects/package/requires_lock/xmake.lua | |
| parent | 0569f75900e97a721cc7acbff3e9738095743d8c (diff) | |
add requires lock test
Diffstat (limited to 'tests/projects/package/requires_lock/xmake.lua')
| -rw-r--r-- | tests/projects/package/requires_lock/xmake.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/projects/package/requires_lock/xmake.lua b/tests/projects/package/requires_lock/xmake.lua new file mode 100644 index 000000000..ddd56ab78 --- /dev/null +++ b/tests/projects/package/requires_lock/xmake.lua @@ -0,0 +1,15 @@ +-- test requires lock functionality with zlib package +set_policy("package.requires_lock", true) + +add_requires("zlib >=1.2.11", {system = false}) +add_requires("zlib", {system = false, configs = {shared = true}, alias = "zlib_shared"}) + +target("test_static") + set_kind("binary") + add_files("src/*.c") + add_packages("zlib") + +target("test_shared") + set_kind("binary") + add_files("src/*.c") + add_packages("zlib_shared") |
