mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Install extlibs on iOS if needed
This commit is contained in:
parent
806813e937
commit
66369645b5
@ -488,10 +488,8 @@ elseif(SFML_OS_MACOSX)
|
|||||||
|
|
||||||
elseif(SFML_OS_IOS)
|
elseif(SFML_OS_IOS)
|
||||||
|
|
||||||
# fix CMake install rules broken for iOS (see https://public.kitware.com/Bug/view.php?id=12506)
|
# fix CMake install rules broken for iOS (see http://public.kitware.com/Bug/view.php?id=12506)
|
||||||
if(SFML_OS_IOS)
|
install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/\$ENV{CONFIGURATION}/" DESTINATION lib${LIB_SUFFIX})
|
||||||
install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/\$ENV{CONFIGURATION}/" DESTINATION lib${LIB_SUFFIX})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT SFML_USE_SYSTEM_DEPS)
|
if(NOT SFML_USE_SYSTEM_DEPS)
|
||||||
# since the iOS libraries are built as static, we must install the SFML dependencies
|
# since the iOS libraries are built as static, we must install the SFML dependencies
|
||||||
@ -499,6 +497,13 @@ elseif(SFML_OS_IOS)
|
|||||||
if(SFML_BUILD_GRAPHICS)
|
if(SFML_BUILD_GRAPHICS)
|
||||||
install(FILES extlibs/libs-ios/libfreetype.a DESTINATION lib)
|
install(FILES extlibs/libs-ios/libfreetype.a DESTINATION lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(SFML_BUILD_AUDIO)
|
||||||
|
install(FILES extlibs/libs-ios/libflac.a
|
||||||
|
extlibs/libs-ios/libvorbis.a
|
||||||
|
extlibs/libs-ios/libogg.a
|
||||||
|
DESTINATION lib)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
elseif(SFML_OS_ANDROID)
|
elseif(SFML_OS_ANDROID)
|
||||||
|
Loading…
Reference in New Issue
Block a user