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支持 #410

Open
lona-cn opened this issue Jan 15, 2025 · 0 comments
Open

xmake支持 #410

lona-cn opened this issue Jan 15, 2025 · 0 comments

Comments

@lona-cn
Copy link
Contributor

lona-cn commented Jan 15, 2025

xmake使用原则

为了能够在项目中顺利集成xmake,现在主要目标是将cmake配置翻译并适配到xmake构建系统中,原则上确保以下几点:

  1. 宏定义与构建参数的传递
    需要在xmake中能够正确传递和配置 cmake 中的宏定义与构建参数(如编译选项、链接选项等)。这包括但不限于:

    • 自定义宏定义(#define
    • 编译器标志(如 -std=c++17
    • 链接器标志与优化参数等。
  2. 依赖库的处理方式
    需要xmake能够正确处理与cmake相同的依赖库管理方式,尤其是外部依赖的链接、查找及导入过程。这包括:

    • 本地与外部库的路径配置
    • 动态与静态库的链接
    • 库的版本控制与兼容性
  3. gtest的集成与支持

    • 构建与运行测试的配置

带来的改动

  1. xmake使用的文件/目录

    • /xmake.lua:项目脚本
    • ${target_dir}/xmake.lua:各个target脚本
    • /.xmake:依赖包缓存
    • /xmake:xmake各种脚本,包括rulemodulespluginsrepo
  2. CI

    • 沿用已有的CI添加xmake相关job
    • 交叉编译:提供linux/arm64linux/riscv64交叉编译相关job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant