xmake如何实现vs的项目依赖且依赖并不参与编译呢? #2666
Answered
by
waruqi
augustheart
asked this question in
Q&A
-
目前xmake添加到add_deps的项目会强制参与编译,也就是最后会使用-l将依赖添加到链接目录。 举例说:比如项目a.exe,它有一个组件b.dll,而b.dll在项目中是通过动态加载被a调用的,b本身没有导出函数(比如它就是一个纯资源dll) ,我编译a的时候,也希望它会同时编译b,但是由于b.dll无导出函数,在目前的情况下,最终会由于没有b.lib而出现编译错误。 |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Aug 9, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
augustheart
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add_deps("xxx", {inherit = false})
文档有说明