LinuxCommandLibrary

xmake

A cross-platform C & C++ build utility based on Lua.

TLDR

Create an Xmake C project, consisting of a hello world and xmake.lua

$ xmake create --language c -P [project_name]
copy


Build and run an Xmake project
$ xmake build run
copy


Run a compiled Xmake target directly
$ xmake run [target_name]
copy


Configure a project's build targets
$ xmake config --plat=[macosx|linux|iphoneos|...] --arch=[x86_64|i386|arm64|...] --mode=[debug|release]
copy


Install the compiled target to a directory
$ xmake install -o [path/to/directory]
copy

Copied to clipboard