Allow for shared libs on iOS
This commit is contained in:
parent
71162395d7
commit
1811951b4a
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -40,12 +40,6 @@ jobs:
|
|||||||
- { name: Release }
|
- { name: Release }
|
||||||
- { name: Debug, flags: -DCMAKE_BUILD_TYPE=Debug -DSFML_ENABLE_COVERAGE=TRUE }
|
- { name: Debug, flags: -DCMAKE_BUILD_TYPE=Debug -DSFML_ENABLE_COVERAGE=TRUE }
|
||||||
|
|
||||||
exclude:
|
|
||||||
- platform: { name: iOS }
|
|
||||||
config: { name: Shared }
|
|
||||||
- platform: { name: iOS Xcode }
|
|
||||||
config: { name: Shared }
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- platform: { name: Windows VS2022, os: windows-2022 }
|
- platform: { name: Windows VS2022, os: windows-2022 }
|
||||||
config: { name: Unity, flags: -DSFML_USE_MESA3D=TRUE -DBUILD_SHARED_LIBS=TRUE -DCMAKE_UNITY_BUILD=ON }
|
config: { name: Unity, flags: -DSFML_USE_MESA3D=TRUE -DBUILD_SHARED_LIBS=TRUE -DCMAKE_UNITY_BUILD=ON }
|
||||||
|
@ -60,10 +60,6 @@ if(SFML_OS_MACOS OR SFML_OS_IOS)
|
|||||||
# add an option to build frameworks instead of dylibs (release only)
|
# add an option to build frameworks instead of dylibs (release only)
|
||||||
sfml_set_option(SFML_BUILD_FRAMEWORKS FALSE BOOL "TRUE to build SFML as frameworks libraries (release only), FALSE to build according to BUILD_SHARED_LIBS")
|
sfml_set_option(SFML_BUILD_FRAMEWORKS FALSE BOOL "TRUE to build SFML as frameworks libraries (release only), FALSE to build according to BUILD_SHARED_LIBS")
|
||||||
|
|
||||||
if (SFML_OS_IOS AND NOT SFML_BUILD_FRAMEWORKS AND BUILD_SHARED_LIBS)
|
|
||||||
message(FATAL_ERROR "Naked dynamic libs not supported for iOS, build static or frameworks instead")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# add an option to automatically install Xcode templates
|
# add an option to automatically install Xcode templates
|
||||||
sfml_set_option(SFML_INSTALL_XCODE_TEMPLATES FALSE BOOL "TRUE to automatically install the Xcode templates, FALSE to do nothing about it. The templates are compatible with Xcode 4 and 5.")
|
sfml_set_option(SFML_INSTALL_XCODE_TEMPLATES FALSE BOOL "TRUE to automatically install the Xcode templates, FALSE to do nothing about it. The templates are compatible with Xcode 4 and 5.")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user