We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
target:installdir安装目录的接口还没封装,等我这两天封好后,你再试试,目前是在外层处理的,可以看下 https://github.com/tboox/xmake/blob/master/xmake/actions/install/main.lua
pdb文件路径是有的,target:symbolfile()
Sorry, something went wrong.
你可以更新下dev代码试试,我增加了target:installdir()并且额外添加了一个api set_installdir用于设置每个target的安装目录
target:installdir()
set_installdir
target("test") set_installdir("/usr/local")
installdir的获取优先顺序:target.set_installdir > xmake install -o xxx > env(INSTALLDIR or DESTDIR) > platform.set_installdir
如果这些都没设置的话,这个target则忽略安装,当然也可以通过on_install对其重写安装过程
非常感謝,抓了最新dev 確認了 installdir 可以正常使用。 有個比較不方便的小問題回饋是,在windows或mingw的 shared 編譯後,dll 所對應的 .lib 和 .a 的路徑取得稍微麻煩了點。可以的話如果能內建API取得就更好了。
有個比較不方便的小問題回饋是,在windows或mingw的 shared 編譯後,dll 所對應的 .lib 和 .a 的路徑取得稍微麻煩了點。可以的話如果能內建API取得就更好了。
这个暂时只能用户来处理了,因为这个获取,是平台相关的,只有win需要这么获取,不好做内建Api,而且用户处理也不是特别繁琐:
path.basename(filepath) .. ".lib"
就行了
No branches or pull requests
The text was updated successfully, but these errors were encountered: