commands.sh

xmake

all

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

More info →

Options (11)

-l, --languageboolean

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

Example: xmake create {{[-l|--language]}} {{[c|clean]}} {{[-P|--project]}} {{project_name}}
boolean

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

Example: xmake create {{[-l|--language]}} {{[c|clean]}} {{[-P|--project]}} {{project_name}}
-P, --projectboolean

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

Example: xmake create {{[-l|--language]}} {{[c|clean]}} {{[-P|--project]}} {{project_name}}
boolean

Build and run an Xmake project

Example: xmake {{[b|build]}} {{[r|run]}}
boolean

Build and run an Xmake project

Example: xmake {{[b|build]}} {{[r|run]}}
boolean

Configure a project's build targets

Example: xmake {{[f|config]}} {{[-p |--plat=]}}{{macosx|linux|iphoneos|...}} {{[-a |--arch=]}}{{x86_64|i386|arm64|...}} {{[-m |--mode=]}}{{debug|release}}
-pboolean

Configure a project's build targets

Example: xmake {{[f|config]}} {{[-p |--plat=]}}{{macosx|linux|iphoneos|...}} {{[-a |--arch=]}}{{x86_64|i386|arm64|...}} {{[-m |--mode=]}}{{debug|release}}
-aboolean

Configure a project's build targets

Example: xmake {{[f|config]}} {{[-p |--plat=]}}{{macosx|linux|iphoneos|...}} {{[-a |--arch=]}}{{x86_64|i386|arm64|...}} {{[-m |--mode=]}}{{debug|release}}
-mboolean

Configure a project's build targets

Example: xmake {{[f|config]}} {{[-p |--plat=]}}{{macosx|linux|iphoneos|...}} {{[-a |--arch=]}}{{x86_64|i386|arm64|...}} {{[-m |--mode=]}}{{debug|release}}
boolean

Install the compiled target to a directory

Example: xmake {{[i|install]}} {{[-o |--installdir=]}}{{path/to/directory}}
-oboolean

Install the compiled target to a directory

Example: xmake {{[i|install]}} {{[-o |--installdir=]}}{{path/to/directory}}

Examples (5)

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

xmake create [-l|--language] [c|clean] [-P|--project] project_name

Build and run an Xmake project

xmake [b|build] [r|run]

Run a compiled Xmake target directly

xmake [r|run] target_name

Configure a project's build targets

xmake [f|config] [-p |--plat=]macosx|linux|iphoneos|... [-a |--arch=]x86_64|i386|arm64|... [-m |--mode=]debug|release

Install the compiled target to a directory

xmake [i|install] [-o |--installdir=]path/to/directory
made by @shridhargupta | data from tldr-pages