如何使用 config动态include #4312
Replies: 2 comments 1 reply
-
我觉得用 has_config + set_enabled 更好 |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://github.com/tboox/tbox/blob/6d19e51563d005660d3789bf218d9e376fc84b06/src/xmake.lua#L139 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如何使用 config动态include呢?比如如下目录:

我希望 xmake f --demo=test1 时候脚本include(test1) , xmake f --demo=test2 时候脚本include(test2) , 甚至xmake f --demo=xxx 时候脚本include(xxx)目录 ,但是 xmake执行顺序是on_load -> after_load -> on_config -> before_build -> on_build -> after_build的,只能on_load才能动态add deps,on_config 时候已经固定了,这就没法使用这种方法了,请问还有什么方法实现?
Beta Was this translation helpful? Give feedback.
All reactions