From c03a9d8b30de217c9a87a4139519eaf3157a21ad Mon Sep 17 00:00:00 2001 From: Rohan Seth <114779675+theKnightsOfRohan@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:14:05 -0700 Subject: [PATCH] xmake: add page (#13217) Co-authored-by: spageektti Co-authored-by: Juri Dispan Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/xmake.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/xmake.md diff --git a/pages/common/xmake.md b/pages/common/xmake.md new file mode 100644 index 000000000..fdc05dbb8 --- /dev/null +++ b/pages/common/xmake.md @@ -0,0 +1,24 @@ +# xmake + +> A cross-platform C & C++ build utility based on Lua. +> More information: . + +- Create an Xmake C project, consisting of a hello world and `xmake.lua`: + +`xmake create --language c -P {{project_name}}` + +- Build and run an Xmake project: + +`xmake build run` + +- Run a compiled Xmake target directly: + +`xmake run {{target_name}}` + +- Configure a project's build targets: + +`xmake config --plat={{macosx|linux|iphoneos|...}} --arch={{x86_64|i386|arm64|...}} --mode={{debug|release}}` + +- Install the compiled target to a directory: + +`xmake install -o {{path/to/directory}}`