Vendor raylib-esp32 v1.0.3 (63db94b) under lib/ — raylib 6.x core with the rlsw software renderer plus the ESP32-S3 port layer (SPI display drivers, async double-buffered flush). raylib/examples, projects, tools and logo are trimmed (~80 MB of content nothing here compiles); see lib/raylib-esp32/VENDOR.md for provenance. New floorplan3d-demo (emulator-template base) renders the NetDeck demo map (nd_demomap.h) as a 3D floor plan — bulkhead walls, blast door, cover crates, airlock pad, terminal — through the real on-device 3D stack on the desktop: - rcore_emu.c: desktop PLATFORM_CUSTOM layer mirroring rcore_esp32.c, flushing the RGB565 sw-renderer buffer into emuGfx::fb instead of SPI - raylib_emu_config.h: same module/limit defines as the device build - HUD via 3x5 bitmap font into fb: rlsw's 2D textured-quad path (DrawText/DrawRectangle) misplaces/flips quads and samples wrong atlas texels in this build; the 3D path is pixel-accurate Verified: dual build (make netdeck) green, demo smoke test clean at ~59 FPS, 600-frame stability run OK.
40 lines
1.9 KiB
Plaintext
40 lines
1.9 KiB
Plaintext
# ## Config options ###
|
|
include(CMakeDependentOption)
|
|
include(EnumOption)
|
|
|
|
if(EMSCRIPTEN)
|
|
# When configuring web builds with "emcmake cmake -B build -S .", set PLATFORM to Web by default
|
|
SET(PLATFORM Web CACHE STRING "Platform to build for.")
|
|
endif()
|
|
enum_option(PLATFORM "Desktop;Web;WebRGFW;Android;Raspberry Pi;DRM;SDL;RGFW" "Platform to build for.")
|
|
|
|
enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0;Software" "Force a specific OpenGL Version?")
|
|
|
|
# Configuration options
|
|
option(BUILD_EXAMPLES "Build the examples." ${PROJECT_IS_TOP_LEVEL})
|
|
option(CUSTOMIZE_BUILD "Show options for customizing your Raylib library build." OFF)
|
|
option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF)
|
|
option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF)
|
|
option(ENABLE_MSAN "Enable MemorySanitizer (MSan) for debugging (not recommended to run with ASAN)" OFF)
|
|
|
|
# Shared library is always PIC. Static library should be PIC too if linked into a shared library
|
|
option(WITH_PIC "Compile static library as position-independent code" OFF)
|
|
option(BUILD_SHARED_LIBS "Build raylib as a shared library" OFF)
|
|
cmake_dependent_option(USE_AUDIO "Build raylib with audio module" ON CUSTOMIZE_BUILD ON)
|
|
|
|
enum_option(USE_EXTERNAL_GLFW "OFF;IF_POSSIBLE;ON" "Link raylib against system GLFW instead of embedded one")
|
|
|
|
# GLFW build options
|
|
option(GLFW_BUILD_WAYLAND "Build the bundled GLFW with Wayland support" OFF)
|
|
option(GLFW_BUILD_X11 "Build the bundled GLFW with X11 support" ON)
|
|
|
|
option(INCLUDE_EVERYTHING "Include everything disabled by default (for CI usage)" OFF)
|
|
set(OFF ${INCLUDE_EVERYTHING} CACHE INTERNAL "Replace any OFF by default with \${OFF} to have it covered by this option")
|
|
|
|
include(ParseConfigHeader)
|
|
|
|
foreach(FLAG IN LISTS CONFIG_HEADER_FLAGS)
|
|
string(REGEX MATCH "([^=]+)=(.+)" _ ${FLAG})
|
|
cmake_dependent_option(${CMAKE_MATCH_1} "" ${CMAKE_MATCH_2} CUSTOMIZE_BUILD ${CMAKE_MATCH_2})
|
|
endforeach()
|