2022-10-01 16:24:52 +08:00
|
|
|
# The axmol CMake options
|
2022-02-24 20:50:58 +08:00
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
## The options for axmol engine
|
2022-02-24 20:50:58 +08:00
|
|
|
- AX_BUILD_TESTS: whether build test porojects: cpp-tests, lua-tests, fairygui-tests, default: `TRUE`
|
|
|
|
- AX_ENABLE_XXX for core feature:
|
|
|
|
- AX_ENABLE_MSEDGE_WEBVIEW2: whether enable msedge webview2, default: `TRUE`
|
|
|
|
- AX_ENABLE_MFMEDIA: whether enable microsoft media foundation for windows video player support, default: `TRUE`
|
2023-06-13 20:44:20 +08:00
|
|
|
- AX_ENABLE_VLC_MEDIA: whether enable libvlc media, default: `TRUE on Linux`, `FALSE on Windows`, not support other platforms
|
2024-02-06 22:19:03 +08:00
|
|
|
- AX_ENABLE_HTTP: whether enable http client, default: `TRUE`
|
|
|
|
- AX_ENABLE_WEBSOCKET: whether enable websockets client, default: `TRUE`
|
2024-03-28 10:45:20 +08:00
|
|
|
- AX_ENABLE_3D: whether to enable 3D support, default: `TRUE`
|
2024-03-30 08:56:32 +08:00
|
|
|
- AX_ENABLE_3D_PHYSICS: whether to enable 3D physics support, default: `TRUE`
|
2024-03-28 10:45:20 +08:00
|
|
|
- AX_ENABLE_NAVMESH: whether to enable NavMesh support default: `TRUE`
|
|
|
|
- AX_ENABLE_MEDIA: whether to enable media support, default: `TRUE`
|
|
|
|
- AX_ENABLE_AUDIO: whether to enable audio support, default: `TRUE`
|
2024-04-05 14:25:22 +08:00
|
|
|
- AX_ENABLE_CONSOLE: whether to enable debug tool console support, default: `TRUE`
|
2022-02-24 20:50:58 +08:00
|
|
|
- AX_USE_XXX:
|
|
|
|
- AX_USE_ALSOFT: whether use openal-soft for all platforms
|
|
|
|
- Apple platform: Use openal-soft instead system deprecated: `OpenAL.framework`
|
|
|
|
- Other platforms: Always use openal-soft even this option not enabled
|
|
|
|
- AX_USE_LUAJIT: whether use luajit, default: `FALSE`, use plainlua
|
|
|
|
- AX_ENABLE_EXT_XXX for extensions
|
|
|
|
- AX_ENABLE_EXT_GUI: the traditional GUI extension, default: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_ASSETMANAGER: the assetmanager extension, default: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_PARTICLE3D: the particle3d extension, default: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_PHYSICS_NODE: the physics_node extension, default: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_SPINE: the spine extension, default: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_DRAGONBONES: the dragonbones extension: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_COCOSTUDIO: the cocosstudio extension for load .csb: `TRUE`
|
|
|
|
- AX_ENABLE_EXT_FAIRYGUI: the fairygui extension, default: `TRUE`
|
2022-10-30 22:56:32 +08:00
|
|
|
- AX_ENABLE_EXT_IMGUI: the imgui extension, support macos,win,linux,android, default: `TRUE`
|
2023-09-12 01:06:28 +08:00
|
|
|
- AX_ENABLE_EXT_INSPECTOR: the imgui inspector extension, support macos,win,linux,android, default: `TRUE`
|
2023-12-30 11:07:50 +08:00
|
|
|
- AX_ENABLE_EXT_SDFGEN: the SDF atlas generator, default: `TRUE`
|
2022-10-30 22:56:32 +08:00
|
|
|
- AX_ENABLE_EXT_LIVE2D: the live2d extension, default: `FALSE`
|
|
|
|
- AX_ENABLE_EXT_EFFEKSEER: the effekseer extension, default: `FALSE`
|
2023-12-30 11:07:50 +08:00
|
|
|
- AX_ENABLE_EXT_JSONDEFAULT: the UserDefault based on json, default: `FALSE`
|
|
|
|
- AX_ENABLE_EXT_LUA: the lua extension, default: `TRUE`
|
2022-02-24 20:50:58 +08:00
|
|
|
- AX_WITH_XXX: usually user don't need care it
|
2023-09-18 15:16:19 +08:00
|
|
|
- AX_USE_COMPAT_GL: whether use compat gl as renderer backend, default: win32: `TRUE`, others: `FALSE`
|
2023-09-02 19:56:50 +08:00
|
|
|
- win32: whether use ANGLE GLES backend
|
|
|
|
- osx: whether use OpenGL instead Metal backend
|
|
|
|
- ios/tvos: whether use GLES instead Metal backend
|
2024-09-13 02:17:35 +08:00
|
|
|
- AX_CORE_PROFILE: whether strip deprecated features, default `FALSE`
|
2023-10-09 01:13:28 +08:00
|
|
|
- AX_ISA_LEVEL: specifiy SIMD Instructions Acceleration Level: 0~4, 0: disabled, 1: SSE2, 2: SSE4.1/NEON, 3: SSE4.2, 4: AVX2, default: 2
|
2023-12-30 11:07:50 +08:00
|
|
|
- AX_GLES_PROFILE: specify GLES profile version for GLES backend, valid value `200`, `300`
|
2023-09-06 19:15:05 +08:00
|
|
|
- AX_WASM_THREADS: specify wasm thread count, valid value: number: `>=0` , string: must be: `auto` or `navigator.hardwareConcurrency`(default),
|
2023-09-06 09:52:39 +08:00
|
|
|
- number: explicit set thread count, `0` means disable wasm thread support
|
|
|
|
- string:
|
|
|
|
- `navigator.hardwareConcurrency`: will be emitted in the JS code which will use the number of cores the browser reports
|
|
|
|
- `auto`: Use cmake to detect host processor count
|
|
|
|
default is: `navigator.hardwareConcurrency`
|
2023-09-07 21:09:36 +08:00
|
|
|
- AX_WASM_SHELL_FILE: specify the wasm shell file, by default use `${_AX_ROOT}/core/platform/wasm/shell_minimal.html`
|
2023-09-18 19:03:47 +08:00
|
|
|
- AX_WASM_ENABLE_DEVTOOLS: whether enable web devtools aka `pause`, `resume`, `step` buttons in webpage, default: `TRUE`
|
2024-06-12 23:13:49 +08:00
|
|
|
- AX_WASM_INITIAL_MEMORY: set the wasm initial memory size, default `1024MB`
|
2024-08-04 09:46:36 +08:00
|
|
|
- AX_WASM_ISA_SIMD: specify the wasm simd intrinsics type, default `none`, supports `sse`, `neon`, note the `wasm-simd` not support by axmol yet
|
2022-02-24 20:50:58 +08:00
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
## The options for axmol apps
|
2022-02-24 20:50:58 +08:00
|
|
|
|
2023-09-07 21:09:36 +08:00
|
|
|
- AX_PREBUILT_DIR: specify the prebuilt dir (relative to `AX_ROOT`), it's very useful for fast linking apps with prebuilt engine libs
|