-
includes ("../projCompileOption.lua") add_rules("mode.debug", "mode.release") target ("HXQuoteApi")
target ("HXQuoteDemo")
我执行了xmake后,进行xmake install, 结果HXApi/bin/HXQuoteDemo_x64这个binary的size变成0了,xmake后我看到是正常的,但xmake install后就变成0了 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
target:installdir() 是 target 的安装目录,安装时候,拿安装目录作为源路径,空目录 copy 么? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
我是用了set_installdir(".") HXApi/lib是存放 fmt.so的位置(add_packages拷贝过去的),我想把他们拷贝到HXApi/bin下 |
Beta Was this translation helpful? Give feedback.
-
谢谢答复,请教下, add_packages("fmt")下载编译后后,放到~/.xmake/packagtes/xxxxx/libfmt.so目录下了,我如何在on_install里获取到这个libfmt.so的所在目录呢?因为目录结构里有一串随机变量 |
Beta Was this translation helpful? Give feedback.
多翻翻源码 https://github.com/xmake-io/xmake/blob/master/xmake/modules/target/action/install/unix.lua