diff options
| author | ruki <[email protected]> | 2023-04-30 21:25:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-04-30 21:25:31 +0800 |
| commit | b539ebd6b953e1a8a75a33dc31e399c53fd75f3e (patch) | |
| tree | 7733d2516ab583b2f312cc92df717606b9e060a8 | |
| parent | a2d57245289f89bc0473caa3cf9b0dad60cc6342 (diff) | |
add autogen test
| -rw-r--r-- | tests/projects/other/autogen_codedep/xmake.lua | 4 |
1 files changed, 0 insertions, 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)) |
