|
|
|
@ -289,20 +289,22 @@ endif()
|
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
|
|
# Download SDL release and extract into depends in the build dir
|
|
|
|
|
# all we need are the header files (including generated headers), so the same release package
|
|
|
|
|
# will work for all platforms
|
|
|
|
|
# (the above statement is untested for OSX)
|
|
|
|
|
set(SDL_VERSION 2.26.2)
|
|
|
|
|
set(SDL_ZIP_MD5 574daf26d48de753d0b1e19823c9d8bb)
|
|
|
|
|
set(SDL_ZIP_FILE SDL2-devel-${SDL_VERSION}-VC.zip)
|
|
|
|
|
set(SDL_ZIP_PATH ${dfhack_SOURCE_DIR}/depends/SDL2/)
|
|
|
|
|
download_file("https://github.com/libsdl-org/SDL/releases/download/release-${SDL_VERSION}/${SDL_ZIP_FILE}"
|
|
|
|
|
${SDL_ZIP_PATH}${SDL_ZIP_FILE}
|
|
|
|
|
${SDL_ZIP_MD5})
|
|
|
|
|
file(ARCHIVE_EXTRACT INPUT ${SDL_ZIP_PATH}${SDL_ZIP_FILE}
|
|
|
|
|
DESTINATION ${SDL_ZIP_PATH})
|
|
|
|
|
include_directories(${SDL_ZIP_PATH}/SDL2-${SDL_VERSION}/include)
|
|
|
|
|
if(BUILD_LIBRARY)
|
|
|
|
|
# Download SDL release and extract into depends in the build dir
|
|
|
|
|
# all we need are the header files (including generated headers), so the same release package
|
|
|
|
|
# will work for all platforms
|
|
|
|
|
# (the above statement is untested for OSX)
|
|
|
|
|
set(SDL_VERSION 2.26.2)
|
|
|
|
|
set(SDL_ZIP_MD5 574daf26d48de753d0b1e19823c9d8bb)
|
|
|
|
|
set(SDL_ZIP_FILE SDL2-devel-${SDL_VERSION}-VC.zip)
|
|
|
|
|
set(SDL_ZIP_PATH ${dfhack_SOURCE_DIR}/depends/SDL2/)
|
|
|
|
|
download_file("https://github.com/libsdl-org/SDL/releases/download/release-${SDL_VERSION}/${SDL_ZIP_FILE}"
|
|
|
|
|
${SDL_ZIP_PATH}${SDL_ZIP_FILE}
|
|
|
|
|
${SDL_ZIP_MD5})
|
|
|
|
|
file(ARCHIVE_EXTRACT INPUT ${SDL_ZIP_PATH}${SDL_ZIP_FILE}
|
|
|
|
|
DESTINATION ${SDL_ZIP_PATH})
|
|
|
|
|
include_directories(${SDL_ZIP_PATH}/SDL2-${SDL_VERSION}/include)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
|
# libstdc++ (GCC 4.8.5 for OS X 10.6)
|
|
|
|
|