Skip to content

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

@compilelife

Description

@compilelife

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

我希望通过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能支持自然是最好的

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions