指示以动态库安装的依赖包在 build 后没有对应的 dll 文件出现在输出目录下 #7137
Answered
by
waruqi
NeuromancerLeo
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Dec 16, 2025
Replies: 1 comment
-
这种写法会自动 target_end 的,这个时候 target 配置域已经结束了,你后面的配置都是全局配置,不要两种写法混用,要么简写,要么展开写。 另外,只有 target 二进制实际调用了 包里面的接口,确认实际用到了里面的 dll,才会被安装,而且仅仅在 xmake build 构建阶段,没必要导出的, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NeuromancerLeo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

这种写法会自动 target_end 的,这个时候 target 配置域已经结束了,你后面的配置都是全局配置,不要两种写法混用,要么简写,要么展开写。
另外,只有 target 二进制实际调用了 包里面的接口,确认实际用到了里面的 dll,才会被安装,而且仅仅在
xmake install安装阶段才会去导出安装 包的 dllxmake build 构建阶段,没必要导出的,
xmake run加载运行时候,会自动关联加载这些 dll。