summaryrefslogtreecommitdiff
path: root/xmake/rules/pascal/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-01-25 15:20:56 +0800
committerruki <[email protected]>2026-01-25 15:28:26 +0800
commit709b454524f08e7ba01f7872194fc29d3d448dec (patch)
treede7a01a1e426c669ab1f70d3197697e2fed4d3ed /xmake/rules/pascal/xmake.lua
parentf4af385406eec4868b776c1fc32d7468dc303cc4 (diff)
fix pascal apis
Diffstat (limited to 'xmake/rules/pascal/xmake.lua')
-rw-r--r--xmake/rules/pascal/xmake.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/rules/pascal/xmake.lua b/xmake/rules/pascal/xmake.lua
index 4b318702b..03b027e07 100644
--- a/xmake/rules/pascal/xmake.lua
+++ b/xmake/rules/pascal/xmake.lua
@@ -31,3 +31,17 @@ rule("pascal")
-- inherit links and linkdirs of all dependent targets by default
add_deps("utils.inherit.links")
+
+ -- support `add_files("src/*.o")` and `add_files("src/*.a")` to merge object and archive files to target
+ add_deps("utils.merge.object", "utils.merge.archive")
+
+ -- we attempt to extract symbols to the independent file and
+ -- strip self-target binary if `set_symbols("debug")` and `set_strip("all")` are enabled
+ add_deps("utils.symbols.extract")
+
+ -- add platform rules
+ add_deps("platform.wasm")
+ add_deps("platform.windows")
+
+ -- add linker rules
+ add_deps("linker")