mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
xmake: add page (#13217)
Co-authored-by: spageektti <git@spageektti.cc> Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
55d5243dd0
commit
c03a9d8b30
24
pages/common/xmake.md
Normal file
24
pages/common/xmake.md
Normal file
@ -0,0 +1,24 @@
|
||||
# xmake
|
||||
|
||||
> A cross-platform C & C++ build utility based on Lua.
|
||||
> More information: <https://xmake.io/#/getting_started>.
|
||||
|
||||
- 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}}`
|
Loading…
Reference in New Issue
Block a user