# Xmake

> Lua-based cross-platform build tool for C and C++ with a built-in package manager

Source: https://talira.ai/catalog/xmake-fq2v82qm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / build systems](https://talira.ai/categories/developer-tools/build/build-systems), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Licence: Apache-2.0[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Backed by: [xmake-io](https://talira.ai/orgs/xmake-io.md)

Xmake is a cross-platform build utility configured in Lua, mainly for C and C++ but supporting many other languages, including Objective-C, Swift, Rust, Go, Zig, Fortran and CUDA. It can build source code directly, as Make or Ninja do, or generate project files as CMake or Meson do, and it has a built-in package manager for C/C++ dependencies, backed by its official xmake-repo repository of 500+ packages. It handles cross-compilation and toolchain management, parallel and incremental builds, C++20 modules, remote and distributed compilation, and local and remote build caches, and can generate Visual Studio projects, Makefiles, CMake files and compile_commands.json.

## Links

- Website: https://xmake.io/
- GitHub: https://github.com/xmake-io/xmake
- Docs: https://xmake.io/guide/quick-start.html

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/xmake>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/xmake>[^2]

## Problems it solves

- build a C++ project on Windows, macOS and Linux without writing CMake
- pull C/C++ dependencies into my build without vendoring them
- cross-compile a C project for another platform with the right toolchain

## Features

- Builds directly or generates Visual Studio, Makefile, CMake and compile_commands.json projects
- Built-in package manager for C/C++ dependencies with an official repository of 500+ packages
- Cross-compilation with toolchain detection and management
- Parallel and incremental builds, including C++20 modules
- Remote and distributed compilation with local and remote build caches
- Lua configuration and plug-ins

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.82, momentum 0.59, community 1.00, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 253 commits in the last 90 days
- latest release v3.1.2 44 days ago
- 12.3k GitHub stars
- 315 contributors
- accepts sponsorship (Github, Custom)
- 149 Homebrew installs in 30 days
- backed by xmake-io

## Alternatives

- [CMake](https://talira.ai/catalog/cmake-k3qq1fry.md): A powerful software build system
- [Meson](https://talira.ai/catalog/meson-e9z6rstx.md): Fast, user-friendly open source build system with a readable, non-Turing-complete language
- [GNU Libtool](https://talira.ai/catalog/gnu-libtool-m3knkg7h.md): GNU's generic library support script for building shared and static libraries portably

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 28 Nov 2026)
[^3]: https://github.com/xmake-io/xmake/blob/dev/LICENSE.md (checked 28 Nov 2026)
