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

xmake q --export能否递归导出所有依赖包? #931

Closed
compilelife opened this issue Aug 29, 2020 · 4 comments
Closed

xmake q --export能否递归导出所有依赖包? #931

compilelife opened this issue Aug 29, 2020 · 4 comments

Comments

@compilelife
Copy link
Contributor

你在什么场景下需要该功能?

我希望通过xmake q --export来导出仓库里的某个模块,及其依赖的其他模块,这样导出后是完整的”包“,不必强制其他人使用相同的构建工具(xmake)

复现方法:

add_requires("gettext")

target("phony")
    set_kind("phony")

所有依赖:

The package dependencies of project:
    require(libiconv): 1.15
      -> links: iconv charset
      -> linkdirs: /home/compilelife/.xmake/packages/l/libiconv/1.15/76b7c3070d364167afbd2190b4d3d703/lib
      -> version: 1.15
      -> includedirs: /home/compilelife/.xmake/packages/l/libiconv/1.15/76b7c3070d364167afbd2190b4d3d703/include
    require(gettext): 0.19.8-1
      -> dep(libiconv): 1.15
      -> links: asprintf gettextpo
      -> linkdirs: /home/compilelife/.xmake/packages/g/gettext/0.19.8-1/76b7c3070d364167afbd2190b4d3d703/lib
      -> version: 0.19.8-1
      -> includedirs: /home/compilelife/.xmake/packages/g/gettext/0.19.8-1/76b7c3070d364167afbd2190b4d3d703/include

希望能同时导出iconv和gettext

但是只导出了gettext

packages
└── gettext_0.19.8-1_76b7c3070d364167afbd2190b4d3d703

描述可能的解决方案

xmake q --export时是否可以提高递归选项?

描述你认为的候选方案

当然,也可以用脚本解析xmake q -l的输出,然后递归拷贝文件出来,不过xmake能支持自然是最好的

@waruqi
Copy link
Member

waruqi commented Aug 29, 2020

可以考虑加上 不过具体得看这边实际排期

@compilelife
Copy link
Contributor Author

🤝多谢

@waruqi waruqi added this to the v2.3.7 milestone Aug 29, 2020
@waruqi
Copy link
Member

waruqi commented Aug 29, 2020

这个我支持上了,你 xmake update -s dev 更新下脚本,重新试试

@compilelife
Copy link
Contributor Author

这个我支持上了,你 xmake update -s dev 更新下脚本,重新试试

神速!我这边测试也可以了。多谢

@waruqi waruqi closed this as completed Aug 29, 2020
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