- switch build system to cmake - unbundle miniz - update SPDX expression in License: field after review
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
diff -up ags-3.6.2.7/CMake/FindLocalOpenAL.cmake.orig ags-3.6.2.7/CMake/FindLocalOpenAL.cmake
|
|
--- ags-3.6.2.7/CMake/FindLocalOpenAL.cmake.orig 2025-02-11 16:28:57.000000000 +0100
|
|
+++ ags-3.6.2.7/CMake/FindLocalOpenAL.cmake 2025-02-27 14:44:12.560375876 +0100
|
|
@@ -1,6 +1,6 @@
|
|
# Grab system openAL or use embedded mojoAL
|
|
|
|
-if(WIN32 OR LINUX OR MACOS OR FREEBSD)
|
|
+if(WIN32 OR MACOS OR FREEBSD)
|
|
set(AGS_USE_MOJO_AL TRUE)
|
|
endif()
|
|
|
|
diff -up ags-3.6.2.7/CMakeLists.txt.orig ags-3.6.2.7/CMakeLists.txt
|
|
--- ags-3.6.2.7/CMakeLists.txt.orig 2025-02-11 16:28:57.000000000 +0100
|
|
+++ ags-3.6.2.7/CMakeLists.txt 2025-02-27 14:47:44.216770826 +0100
|
|
@@ -308,14 +308,31 @@ endif()
|
|
include(FindLocalOpenAL)
|
|
include(FindLocalAllegro)
|
|
|
|
+if (NOT AGS_USE_SYSTEM_GLM)
|
|
add_subdirectory(libsrc/glm EXCLUDE_FROM_ALL)
|
|
+else()
|
|
+ find_package(glm REQUIRED)
|
|
+endif()
|
|
+if (NOT AGS_USE_SYSTEM_TINYXML2)
|
|
add_subdirectory(libsrc/tinyxml2 EXCLUDE_FROM_ALL)
|
|
+else()
|
|
+ find_package(tinyxml2 REQUIRED)
|
|
+endif()
|
|
+if (NOT AGS_USE_SYSTEM_MINIZ)
|
|
add_subdirectory(libsrc/miniz EXCLUDE_FROM_ALL)
|
|
+else()
|
|
+ include(FindMiniz)
|
|
+endif()
|
|
|
|
add_subdirectory(Common/libsrc/aastr-0.1.1 EXCLUDE_FROM_ALL)
|
|
|
|
+if (NOT AGS_USE_SYSTEM_FREETYPE)
|
|
add_subdirectory(Common/libsrc/freetype-2.1.3 EXCLUDE_FROM_ALL)
|
|
set(FREETYPE_LIBRARIES FreeType::FreeType)
|
|
+else()
|
|
+ include(FindFreetype)
|
|
+ include_directories("${FREETYPE_INCLUDE_DIRS}")
|
|
+endif()
|
|
|
|
add_subdirectory(Common/libsrc/alfont-2.0.9 EXCLUDE_FROM_ALL)
|
|
add_subdirectory(Common)
|