如何按需引入依赖
#223
Replies: 1 comment 2 replies
-
这个跟 xmake-vscode 没关系,提到 xmake 里面去 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
问题0: 想问一下 lua中这里的缩进是有语义的(如python)还是只是为了好看?
问题1:假设我有两个target,每个依赖不同的第三方库,add_requires好像只能放在最前面,下面这么,就会报错
add_requires("aa")
target( a)
set_kind("binary")
add_files("src/a/*.cpp")
add_packages("aa")
add_requires("bb") -- 这里会报错, 只能放到最前面
target( b)
set_kind("binary")
add_files("src/b/*.cpp")
add_package("bb")
我是想按照target 按需引入 依赖,不知道一般推荐的写法是啥?谢谢
Beta Was this translation helpful? Give feedback.
All reactions