Replies: 2 comments 10 replies
-
参考一下,fastbuild的Exec函数是可以做到的,它的ExecExecutable参数可以指定另一个目标,不用指定路径,这个目标也会先编译。我只需要把app依赖于这个Exec目标就可以了,希望xmake也可以实现类似的 |
Beta Was this translation helpful? Give feedback.
2 replies
-
具体是这样的,我有很多xml文件,builder的源码,还有多个app,我需要先编译出来builder,然后builder根据这些xml生成各个app需要的源码,再编译各个app,builder只需要运行一次,而且只要builder源码不变或者xml内容不变,都不需要再次运行。 |
Beta Was this translation helpful? Give feedback.
8 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.
-
我有一个target叫app,一个target叫builder,app需要builder运行生成一些源文件才能编译,该怎么写xmake.lua呢?我想在app的xmake.lua里面用
add_deps("builder")
增加依赖,然后在before_build
里面用os.execv来调用builder,但是这里面我只能获取当前target的属性,否则我就只能硬编码builder的路径。另外,现在before_build是先执行的,这个时候builder还没生成,也会失败。Beta Was this translation helpful? Give feedback.
All reactions