From 99bcdf969aa6ad79034f4689a5cf715a960658ca Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Jul 2026 00:34:25 +0800 Subject: add transform lua file support --- tests/projects/other/bin2obj/xmake.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/projects/other/bin2obj/xmake.lua') diff --git a/tests/projects/other/bin2obj/xmake.lua b/tests/projects/other/bin2obj/xmake.lua index 0cf4fb4fc..d383bb1bb 100644 --- a/tests/projects/other/bin2obj/xmake.lua +++ b/tests/projects/other/bin2obj/xmake.lua @@ -12,3 +12,5 @@ target("test") local data = io.readfile(inputfile, {encoding = "binary"}) io.writefile(outputfile, data:reverse(), {encoding = "binary"}) end}) + -- transform can also be a lua script file (supported by the project generators) + add_files("src/asset2.bin", {zeroend = true, transform = path.join(os.projectdir(), "transform.lua")}) -- cgit v1.3.1