Replies: 2 comments 1 reply
-
makefile generator 目前没对 ln 做支持。会直接忽略。。
runv 也是,目前也没支持。。 你可以提 pr 过来改进 makefiler generator 。。或者直接执行 xmake 构建,xmake 的重点在直接 build ,对 generator 生成 不会支持的像构建那么完善,尤其是 makefile 这种,对于 xmake 来说,都是可选特性,不会做重点处理。。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
感谢回复,是否有能实现类似功能的语法呢?execv也不行是吗? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
以下lua脚本生成makefile后如下:
我是想实现cd ./bin子目录,然后执行ln -sf libprotobuf-lite.so.23 libprotobuf-lite.so
但以上makefile似乎没有执行到。
我改为ln也不行,也没执行。 不知是什么原因呢?
--- batchcmds:ln("libprotobuf-lite.so.23","libprotobuf-lite.so",{"-sf"})
includes ("../xmake.lua")
includes ("../Tools/LogManager/xmake.lua")
includes ("HXQuoteDemoFiles.lua")
add_rules("mode.debug", "mode.release")
rule("copylib")
after_buildcmd(function (target, batchcmds, opt)
batchcmds:cp("../ThirdParty/lib64_2022/libprotobuf-lite.so.23", target:targetdir())
batchcmds:cp("../ThirdParty/lib64_2022/libACE.so.6.5.9", target:targetdir())
target ("HXQuoteApi")
set_optimize("faster")
set_languages(cppVersion)
add_ldflags(linkOptions)
set_kind ("shared")
set_targetdir(tarDir)
add_ldflags("-Wl,-rpath="..tarDir)
target ("HXQuoteDemo")
set_kind ("binary")
set_languages(cppVersion)
add_ldflags(linkOptions)
set_targetdir(tarDir)
add_defines (DemoDefine)
盼复,非常感谢
batchcmds:cp是可以执行到的
Beta Was this translation helpful? Give feedback.
All reactions