From b539ebd6b953e1a8a75a33dc31e399c53fd75f3e Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 30 Apr 2023 21:25:31 +0800 Subject: add autogen test --- tests/projects/other/autogen_codedep/xmake.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/projects/other/autogen_codedep/xmake.lua b/tests/projects/other/autogen_codedep/xmake.lua index 98f695f78..087c4f4d8 100644 --- a/tests/projects/other/autogen_codedep/xmake.lua +++ b/tests/projects/other/autogen_codedep/xmake.lua @@ -4,19 +4,15 @@ set_policy("build.across_targets_in_parallel", false) rule("autogen") set_extensions(".in") before_buildcmd_file(function (target, batchcmds, sourcefile, opt) - - -- add objectfile local sourcefile_cx = path.join(target:autogendir(), "rules", "autogen", path.basename(sourcefile) .. ".cpp") local objectfile = target:objectfile(sourcefile_cx) table.insert(target:objectfiles(), objectfile) - -- add commands batchcmds:show_progress(opt.progress, "${color.build.object}compiling.autogen %s", sourcefile) batchcmds:mkdir(path.directory(sourcefile_cx)) batchcmds:vrunv(target:dep("autogen"):targetfile(), {sourcefile, sourcefile_cx}) batchcmds:compile(sourcefile_cx, objectfile) - -- add deps batchcmds:add_depfiles(sourcefile) batchcmds:set_depmtime(os.mtime(objectfile)) batchcmds:set_depcache(target:dependfile(objectfile)) -- cgit v1.3.1