Add iOS build to CI

Fix iOS build as well as minor Android cleanup since the
problems for both platforms are so similar
This commit is contained in:
Juan Ramos 2023-11-21 16:59:26 -07:00 committed by GitHub
parent 5fcac839ca
commit a7b18c08d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 10 deletions

View file

@ -59,7 +59,24 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
set(CMAKE_BUILD_TYPE "Debug")
endif()
# Currently iOS and Android are very similar.
# They both have their own packaging (APP/APK).
# Which makes regular executables/testing problematic.
#
# Currently the only deliverables for these platforms are
# libraries (either STATIC or SHARED).
#
# Furthermore testing is equally problematic.
if (IOS OR ANDROID)
set(ENABLE_GLSLANG_BINARIES OFF)
set(SPIRV_SKIP_EXECUTABLES ON)
set(ENABLE_CTEST OFF)
set(BUILD_TESTING OFF)
endif()
option(SKIP_GLSLANG_INSTALL "Skip installation")
if(NOT ${SKIP_GLSLANG_INSTALL})
set(ENABLE_GLSLANG_INSTALL ON)
endif()