mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-08 23:23:38 +00:00
6060dc12b1
- Add config folder that contains tup config files. There is a default config added to source control, but everything else in that folder is gitignored so you can add your own custom configurations. - Remove and gitignore tup.config. - This results in the following setup: - You can now create a tup.config symlink that points at the config you want to use. - Or, you can use the `tup variant` command to manage multiple build configurations at the same time (e.g. debug, release, wasm).
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
## LÖVR config
|
|
# y is 'yes' and n is 'no'
|
|
# Equal signs should not have spaces around them
|
|
|
|
## Options
|
|
# CC: The "C Compiler" to use. Some common compilers are clang and gcc.
|
|
# STRICT: Fail the build if there are any warnings.
|
|
# DEBUG: Include debug symbols in the build, increasing file size.
|
|
# OPTIMIZE: Make the executable faster and smaller, but compile slower.
|
|
# SANITIZE: Add extra runtime checks to detect memory leaks and undefined behavior (adds overhead).
|
|
# CMAKE_DEPS: Assume libraries were built by CMake in the `build` folder.
|
|
# EXTRA_CFLAGS: Additional compiler flags (e.g. libraries, warnings).
|
|
# EXTRA_LDFLAGS: Additional linker flags.
|
|
# PLATFORM: The platform to compile for (win32, macos, linux, android, web, or blank to autodetect).
|
|
CONFIG_CC=clang
|
|
CONFIG_STRICT=y
|
|
CONFIG_DEBUG=y
|
|
CONFIG_OPTIMIZE=n
|
|
CONFIG_SANITIZE=n
|
|
CONFIG_CMAKE_DEPS=y
|
|
CONFIG_EXTRA_CFLAGS=
|
|
CONFIG_EXTRA_LDFLAGS=
|
|
CONFIG_PLATFORM=
|
|
|
|
## Modules
|
|
# The set of enabled Lua modules.
|
|
# Disabling unneeded modules will reduce executable size and improve compile times.
|
|
CONFIG_AUDIO=y
|
|
CONFIG_DATA=y
|
|
CONFIG_EVENT=y
|
|
CONFIG_FILESYSTEM=y
|
|
CONFIG_GRAPHICS=y
|
|
CONFIG_HEADSET=y
|
|
CONFIG_MATH=y
|
|
CONFIG_PHYSICS=y
|
|
CONFIG_THREAD=y
|
|
CONFIG_TIMER=y
|
|
CONFIG_JSON=y
|
|
CONFIG_ENET=y
|
|
|
|
## Headset backends
|
|
# Enabling headset backends adds support for more types of VR SDKs and hardware.
|
|
# Some proprietary SDKs cannot be included in LÖVR, so the path to the SDK must be provided.
|
|
CONFIG_SIMULATOR=y
|
|
CONFIG_OPENVR=y
|
|
CONFIG_OPENXR=n
|
|
CONFIG_OCULUS=n
|
|
CONFIG_VRAPI=n
|
|
CONFIG_WEBVR=n
|
|
CONFIG_LEAP=n
|
|
CONFIG_OCULUS_PATH=
|
|
CONFIG_LEAP_PATH=
|
|
|
|
## OpenGL flavor
|
|
# Can be GL, GLES, or WEBGL. Ideally this should be autodetected though.
|
|
CONFIG_GL=GL
|