2025-03-14 21:59:59 -06:00
|
|
|
# xmake
|
|
|
|
|
|
|
|
|
|
> Una utilidad de compilación multiplataforma C & C++ basada en Lua.
|
|
|
|
|
> Más información: <https://xmake.io/#/getting_started>.
|
|
|
|
|
|
|
|
|
|
- Crea un proyecto Xmake C, consistente en un hello world y `xmake.lua`:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`xmake create {{[-l|--language]}} {{[c|clean]}} {{[-P|--project]}} {{nombre_del_proyecto}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Construye y ejecuta un proyecto Xmake:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`xmake {{[b|build]}} {{[r|run]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Ejecuta directamente un objetivo Xmake compilado:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`xmake {{[r|run]}} {{nombre_del_objetivo}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Configura los objetivos de compilación de un proyecto:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`xmake {{[f|config]}} {{[-p |--plat=]}}{{macosx|linux|iphoneos|...}} {{[-a |--arch=]}}{{x86_64|i386|arm64|...}} {{[-m |--mode=]}}{{debug|release}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Instala el objetivo compilado en un directorio:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`xmake {{[i|install]}} {{[-o |--installdir=]}}{{ruta/al/directorio}}`
|