一个target包含多个解析性target,出现多次config #6724
Replies: 1 comment 1 reply
-
涉及 c++modules 的就不要瞎搞了,安安分分走 xmake.lua 配置编译,原本 c++modules 处理起来就比较特殊,要构建前提前扫源码分析依赖,做各种预处理,你还涉及了 stl headerunit ,就更复杂了,还要做 stl headerunit 的预编译处理。 对各阶段的执行顺序和依赖处理都是很复杂了,你还去这么乱搞,肯定得趟坑。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
xmake v3.0.1+HEAD.3350cc5ab
MSCV
我是个xmake 新手。
我想在打 target 包前读取json文件,把这部分打包成 lib和dll:
.json
xmake.lua:
然后再通过引擎的 target 把这些链接起来
输出:
我尝试吧 on_config 改成 on_prepare
但是会出现这个错误:
error: cstdlib
c:\program files\microsoft visual studio\2022\preview\vc\tools\msvc\14.44.35207\include\cstdlib(92): error C3474: 无法打开 输出文件“build.gens\MainEngine\windows\x64\release\rules\bmi\cache\headerunits\f63a9715\cstdlib.ifc”
我去查找了一下没有看到 headerunits 目录..
问题:
我应该在哪里开始解析编译模块json配置项,再去编译 Engine 把 编译好的 lib和dll链接,才能防止多次config?
lua文件:
xmake.txt
Beta Was this translation helpful? Give feedback.
All reactions