Skip to content
Discussion options

You must be logged in to vote

target("nativelib_windowing", {kind = "shared"})

这种写法会自动 target_end 的,这个时候 target 配置域已经结束了,你后面的配置都是全局配置,不要两种写法混用,要么简写,要么展开写。

另外,只有 target 二进制实际调用了 包里面的接口,确认实际用到了里面的 dll,才会被安装,而且仅仅在 xmake install 安装阶段才会去导出安装 包的 dll

xmake build 构建阶段,没必要导出的,xmake run 加载运行时候,会自动关联加载这些 dll。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NeuromancerLeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants