Skip to content
New issue

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

Add bindirs for package #5384

Closed
waruqi opened this issue Jul 24, 2024 · 2 comments
Closed

Add bindirs for package #5384

waruqi opened this issue Jul 24, 2024 · 2 comments

Comments

@waruqi
Copy link
Member

waruqi commented Jul 24, 2024

          > 因为这个包 win 下,dll 是默认安装在 `x64\vc17\bin` 的。。但是 libfiles 的提取,目前只能从 bin 下找。。

是否考虑给package的fetch信息加一个bindirs?目前都是通过 package:addenv("PATH", xxx) 的形式添加exe路径,但这种形式不适用于从系统fetch的包,并且假设package B 用到package A的exe,目前没有有效的方法确定exe的路径,因为A有可能是从系统发etch到的。如果加入bindirs,其一方便了libfiles的提取,其二对系统包可以在on_fetch里返回exe路径,调用时自动加入PATH中、且可以用find_program严格定位exe路径。

Originally posted by @xq114 in #5325 (comment)

@waruqi
Copy link
Member Author

waruqi commented Jul 25, 2024

@xq114 加上了,目前暂时仅用于自动配置 path 和 libfiles 查找

@waruqi waruqi added this to the v2.9.4 milestone Jul 25, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@xq114 added, currently only used for automatic configuration path and libfiles search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants