能否针对 target 设置 option #3388
Unanswered
MasterBalll
asked this question in
Q&A
Replies: 1 comment 5 replies
-
用法和思路不对,option 主要用于 选项配置,就是一个开关状态,尽可能打薄,你用反了。。 定义完基础 option 选项后,defines 这种条件配置,应该在 target 里面通过 也可以在 on_load 里面,或者定义 rule 来更灵活配置,而不是塞到 option 里面做。。
除了批量定义 target,也可以直接定义 task ,批量处理编译,只用一个 target
然后只需要
就行了,而且 xmake 有宏批量记录插件,之后配置记录下操作命令,批量回放编译就行了,task 都不需要。 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
xmake.lua 大概长这个样子。
Beta Was this translation helpful? Give feedback.
All reactions