* Feature: Initial testing with module (file) searches.

This commit is contained in:
Robert MacGregor 2022-05-17 18:04:19 -04:00
parent c3540acf94
commit 9901fa76b4
21 changed files with 142 additions and 1215 deletions

View file

@ -1,5 +1,6 @@
# Ask CMake to perform builds in a temporary directory for all of these.
# We also use EXCLUDE_FROM_ALL to ensure we only build and install what we want
set(BUILD_SHARED_LIBS off CACHE STRING "")
add_subdirectory(assimp ${CMAKE_BINARY_DIR}/temp/assimp EXCLUDE_FROM_ALL)
set(BUILD_CPU_DEMOS off CACHE STRING "")
@ -9,13 +10,18 @@ add_subdirectory(sdl ${CMAKE_BINARY_DIR}/temp/sdl2 EXCLUDE_FROM_ALL)
# FIXME: For now we force-on Neon
set(PNG_ARM_NEON on CACHE STRING "")
set(PNG_STATIC on CACHE STRING "")
add_subdirectory(lpng ${CMAKE_BINARY_DIR}/temp/lpng EXCLUDE_FROM_ALL)
add_subdirectory(ljpeg ${CMAKE_BINARY_DIR}/temp/ljpeg EXCLUDE_FROM_ALL)
add_subdirectory(tinyxml ${CMAKE_BINARY_DIR}/temp/tinyxml EXCLUDE_FROM_ALL)
add_subdirectory(opcode ${CMAKE_BINARY_DIR}/temp/opcode EXCLUDE_FROM_ALL)
set(ALSOFT_EXAMPLES off CACHE STRING "")
set(ALSOFT_UPDATE_BUILD_VERSION off CACHE STRING "")
add_subdirectory(openal-soft ${CMAKE_BINARY_DIR}/temp/openal-soft EXCLUDE_FROM_ALL)
add_subdirectory(zlib ${CMAKE_BINARY_DIR}/temp/zlib EXCLUDE_FROM_ALL)
add_subdirectory(pcre ${CMAKE_BINARY_DIR}/temp/pcre EXCLUDE_FROM_ALL)
add_subdirectory(convexDecomp ${CMAKE_BINARY_DIR}/temp/convexDecomp EXCLUDE_FROM_ALL)

View file

@ -1,3 +1,3 @@
file(GLOB CONVEX_DECOMP_SOURCES "*.cpp")
add_library(convexDecomp ${CONVEX_DECOMP_SOURCES})
add_library(convexDecomp STATIC ${CONVEX_DECOMP_SOURCES})
target_include_directories(convexDecomp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View file

@ -1,2 +1,2 @@
file(GLOB LJPEG_SOURCES "*.c")
add_library(ljpeg ${LJPEG_SOURCES})
add_library(ljpeg STATIC ${LJPEG_SOURCES})

View file

@ -1,5 +1,5 @@
file(GLOB OPCODE_SOURCES "*.cpp" "Ice/*.cpp")
add_library(opcode ${OPCODE_SOURCES})
add_library(opcode STATIC ${OPCODE_SOURCES})
target_compile_definitions(opcode PUBLIC ICE_NO_DLL TORQUE_OPCODE)
target_include_directories(opcode PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View file

@ -1,4 +1,4 @@
file(GLOB SQUISH_SOURCES "*.cpp")
add_library(squish ${SQUISH_SOURCES})
add_library(squish STATIC ${SQUISH_SOURCES})
target_include_directories(squish PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View file

@ -1,4 +1,4 @@
add_library(tinyxml "tinyxml2.cpp")
add_library(tinyxml STATIC "tinyxml2.cpp")
# NOTE: Some stuff include tinyxml by tinyxml/tinyxml2.h instead of just tinyxml2.h
target_include_directories(tinyxml PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../)