Replies: 4 comments 8 replies
-
脚本域添加 files 要自己拼完整路径,不会像 add_files 根据当前目录自动处理 可以自己 path.join 追加对应根目录,比如 os.scriptdir(), os.projectdir(), autogendir 路径自己对上 |
Beta Was this translation helpful? Give feedback.
5 replies
-
rule("r_a)
on_load(function()print("@@@@@@@@@@@@@@@@@on_load")end)
on_config(function()print("@@@@@@@@@@@@@@@@@on_config")end)
on_build(function()print("on_build")end)
on_build_file(function()print("on_build_file")end)
on_build_files(function()print("on_build_files")end)
on_buildcmd_file(function()print("on_buildcmd_file")end)
on_buildcmd_files(function()print("on_buildcmd_files")end)
on_link(function()print("on_link")end)
before_build(function()print("before_build")end)
before_build_file(function()print("before_build_file")end)
before_build_files(function()print("before_build_files")end)
before_buildcmd_file(function()print("before_buildcmd_file")end)
before_buildcmd_files(function()print("before_buildcmd_files")end)
before_link(function()print("before_link")end)
after_build(function()print("after_build")end)
after_build_file(function()print("after_build_file")end)
after_build_files(function()print("after_build_files")end)
after_buildcmd_file(function()print("after_buildcmd_file")end)
after_buildcmd_files(function()print("after_buildcmd_files")end)
after_link(function()print("after_link")end)
rule_end() 只有
|
Beta Was this translation helpful? Give feedback.
2 replies
-
@waruqi on_load / on_config 不执行。我无法在正确的时间生成文件,交给 xmake |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在 before_build 中向 files 增加一条记录。
我将目标文件存放在 target:autogendir() 目录下,该文件不参与编译
Beta Was this translation helpful? Give feedback.
All reactions