Skip to content
Discussion options

You must be logged in to vote

不能,你必须 package 里面通过 add_configs 一一对应映射一遍。。

参考

https://github.com/xmake-io/xmake-repo/blob/9c5059214aabe8aaac38e77b200af63150517b94/packages/f/ffmpeg/xmake.lua#L31-L43

然后自己的项目,options 自己定义传入 add_requires 的 configs。。

如果你想省去重复的 options 定义,可以吧所有共用的 options 放到单独的 options.lua 里面去维护,子包和当前项目包 都去 includes 进来复用就行了。。

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@xqyjlj
Comment options

@waruqi
Comment options

@xqyjlj
Comment options

@waruqi
Comment options

Answer selected by xqyjlj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants