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