macOS
brew install xmakelocal Homebrew formula metadata
sudo port install xmakeMacPorts ports tree · devel/xmake/Portfile · 来源: api.github.com
安装
brew install xmakelocal Homebrew formula metadata
sudo port install xmakeMacPorts ports tree · devel/xmake/Portfile · 来源: api.github.com
sudo apk add xmakeAlpine Linux edge package indexes · xmake · 来源: dl-cdn.alpinelinux.org
sudo dnf install xmakeFedora Rawhide package metadata · xmake · 来源: dl.fedoraproject.org
nix profile install nixpkgs#xmakenixpkgs package indexes · pkgs/by-name/xm/xmake/package.nix · 来源: api.github.com
sudo pacman -S xmakeArch Linux sync databases · xmake · 来源: geo.mirror.pkgbuild.com
scoop install main/xmakeScoop official bucket manifest trees · bucket/xmake.json · 来源: api.github.com
winget install --id Xmake-io.Xmake -eWindows Package Manager source index · Xmake-io.Xmake · 来源: cdn.winget.microsoft.com
概览
Cross-platform build utility based on Lua
历史
Xmake is a Lua-based cross-platform build utility for C, C++, and other compiled-language projects. Its distinctive package-nerd angle is that it combines build backend, project generator, package manager, remote/distributed build support, and cache features behind one `xmake.lua` project file.
The GitHub repository was created on 2015-04-23. Xmake's own introduction describes it as a lightweight, cross-platform build utility based on Lua, driven by a dependency-free C core, with concise project configuration compared with Makefiles or CMake.
The project grew from a build tool into a combined build-and-dependency environment. The README frames Xmake as build backend plus project generator plus package manager, with analogies to Make/Ninja, CMake/Meson, Vcpkg/Conan, distcc, and ccache/sccache. That positioning explains why the `xmake` executable is paired with `xrepo` for package work.
The official xmake-repo package repository was created on 2017-04-09. The package guide says official package use was initially supported after version 2.2.2, with `add_requires()` naming third-party packages and `add_packages()` applying them to targets.
By the 3.0 series, Xmake had accumulated a broad platform and toolchain matrix. The README lists desktop, BSD, mobile, embedded, WebAssembly, and cross-compilation platforms, plus toolchains ranging from GCC, Clang, MSVC, Xcode, Android NDK, Zig, Rust, Swift, CUDA, Fortran, Verilator, WebAssembly, and vendor embedded compilers.
Xmake adoption has been community-led rather than standards-body driven. The official "Who is using Xmake?" page lists game modding, embedded, graphics, aerospace, data-structure, full-body tracking, real-time communication, and commercial/internal users, plus notable entries such as Epic Games Zen and Microsoft Research's CHERIoT RTOS.
For package users, adoption was helped by Xmake's dual role: installing the tool is enough to try simple builds, while the official package repository lets projects express third-party C/C++ package needs inside the same Lua build description.
A minimal project defines targets in `xmake.lua`, for example setting a target kind and adding source globs. Common commands are `xmake` to build, `xmake run` to execute a target, `xmake test` for tests, and `xmake f` or `xmake config` to set platform, architecture, and build mode.
Dependency use centers on `add_requires()` and `add_packages()`: Xmake can check system libraries, fetch matching source packages, build and install them into its own package area, then link them into the project. The package guide also documents semantic version constraints, optional packages, debug package builds, custom package configs, and private/project package repositories.
Xmake is especially practical for cross-platform C/C++ projects that want build logic, third-party package integration, IDE/project generation, and cross-compilation switches in one tool without writing separate CMake and shell glue layers.
Xmake is significant because it collapses several packaging-adjacent jobs into one executable: project description, build orchestration, dependency acquisition, toolchain selection, package repository rules, and generated project files. That makes it a useful comparison point against CMake plus vcpkg/conan or Meson plus external dependency managers.
Its package repository is also a distribution model in miniature: recipes are versioned in a central GitHub repo, selected semantically by project files, and built per platform/architecture into an isolated install area. For package nerds, that is the interesting part, not just the Lua syntax.
安全态势
没有找到 xmake 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
xmake.luaxmake.lua可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
xmake | cli | 全局可执行文件 | |
xrepo | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/xmake-io/xmake
安装元数据
| 软件包键 | brew:xmake |
|---|---|
| 版本 | 3.0.9 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/xmake |
| 主页 | https://xmake.io/ |
| 仓库 | https://github.com/xmake-io/xmake |
| 上游文档 | https://xmake.io/ |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/xmake-io/xmake/releases/download/v3.0.9/xmake-v3.0.9.tar.gz |
| 最后更新 | 2026-05-19T04:49:58Z |
| Pulse | updated |
| macOS 提供的库 | ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | xmake |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
xmake 2.9.9+ds-1
cross-platform build utility based on Lua
sudo apt install xmakexmake-data 2.9.9+ds-1
Data for xmake
sudo apt install xmake-dataxmake
nix profile install nixpkgs#xmakexmake 2.8.7+ds-1build2
cross-platform build utility based on Lua
sudo apt install xmakexmake-data 2.8.7+ds-1build2
Data for xmake
sudo apt install xmake-dataxmake 3.0.9-r0
A cross-platform build utility based on Lua
sudo apk add xmakexmake-bash-completion 3.0.9-r0
Bash completions for xmake
sudo apk add xmake-bash-completionxmake-doc 3.0.9-r0
A cross-platform build utility based on Lua (documentation)
sudo apk add xmake-docxmake-fish-completion 3.0.9-r0
Fish completions for xmake
sudo apk add xmake-fish-completionxmake-zsh-completion 3.0.9-r0
Zsh completions for xmake
sudo apk add xmake-zsh-completionxmake 3.0.9-2.fc45
A cross-platform build utility based on Lua
sudo dnf install xmakexmake-data 3.0.9-2.fc45
Common data-files for xmake
sudo dnf install xmake-dataxmake 3.0.9-1
A cross-platform build utility based on Lua
https://github.com/xmake-io/xmake
sudo pacman -S xmakexmake
sudo port install xmakemain/xmake
scoop install main/xmakeXmake-io.Xmake
winget install --id Xmake-io.Xmake -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.