aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2026-01-21 03:57:14 +0100
committerfschildt <florian.schildt@protonmail.com>2026-01-21 03:57:14 +0100
commitbf4c67c35daa9fa65da7787aa40f25b2865493a2 (patch)
treedcbe9e08937c2ff48fa4a45456768a2e8492be75
parent930c477f3781a25b19037569e9927000d6c82b06 (diff)
stb_truetype: build it from external/
-rw-r--r--cmake/CMakeLists.txt11
-rw-r--r--external/stb/stb_truetype.c (renamed from src/common/stb_truetype.cpp)0
2 files changed, 2 insertions, 9 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 8463386..85e8dcb 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -71,15 +71,8 @@ target_include_directories(glad PUBLIC ${GLAD_INC_DIR})
# stb
-add_library(stb_truetype STATIC ${FSARCADE_SRC_DIR}/common/stb_truetype.cpp)
-if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
- target_compile_options(stb_truetype PRIVATE -w) # -w suppresses all warnings
-elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
- target_compile_options(stb_truetype PRIVATE /W0) # /W0 suppresses all warnings
-endif()
-target_include_directories(stb_truetype PUBLIC
- ${FSARCADE_ROOT_DIR}/external/stb
-)
+add_library(stb_truetype STATIC ${FSARCADE_ROOT_DIR}/external/stb/stb_truetype.c)
+target_include_directories(stb_truetype PUBLIC ${FSARCADE_ROOT_DIR}/external/stb)
target_link_libraries(fsarcade SDL3::SDL3 GL glad dl imgui stb_truetype)
diff --git a/src/common/stb_truetype.cpp b/external/stb/stb_truetype.c
index cc11b20..cc11b20 100644
--- a/src/common/stb_truetype.cpp
+++ b/external/stb/stb_truetype.c