Skip to content

Commit

Permalink
Attempt to fix iOS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Oct 18, 2023
1 parent 4268a3d commit 46ee9db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
strategy:
fail-fast: false
matrix:
tplatform: [OS64COMBINED, TVOSCOMBINED, SIMULATOR64, SIMULATOR_TVOS]
tplatform: [iOS, tvOS]
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -110,7 +110,7 @@ jobs:
run: |
mkdir build
cd build
cmake -G "Xcode" -DCMAKE_TOOLCHAIN_FILE="../config/ios.toolchain.cmake" -DENABLE_ARC=OFF -DPLATFORM="${{ matrix.tplatform }}" -DDEPLOYMENT_TARGET=16.0 -DCMAKE_XCODE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_CODE_SIGNING_ENABLED=NO ..
cmake -G "Xcode" -DCMAKE_SYSTEM_NAME="${{ matrix.tplatform }}" -DCMAKE_XCODE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_CODE_SIGNING_ENABLED=NO ..
- name: Build
run: |
cd build
Expand Down
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ if(CMAKE_CROSSCOMPILING OR (VS_CROSSCOMP AND WIN32))
set(CC_GENERATOR "")
set(HT_ENABLE_WGSL "-DRGL_ENABLE_WEBGPU=ON") # otherwise the separate compiler exe will not know that WGSL output should be enabled
endif()

add_custom_command(
PRE_BUILD
WORKING_DIRECTORY ${TOOLS_DIR}
COMMAND ${CMAKE_COMMAND} ${CC_GENERATOR} -DCMAKE_BUILD_TYPE=Release ${HT_ENABLE_WGSL} ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${CMAKE_COMMAND} ${CC_GENERATOR} -DCMAKE_BUILD_TYPE=Release ${HT_ENABLE_WGSL} "${CMAKE_CURRENT_SOURCE_DIR}/deps/RGL"
OUTPUT "${TOOLS_DIR}/CMakeCache.txt"
)
if(MSVC)
Expand Down
2 changes: 1 addition & 1 deletion config/init-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ mkdir ../build
cd ../build
mkdir ios
cd ios
cmake -G "Xcode" -DCMAKE_TOOLCHAIN_FILE="../../config/ios.toolchain.cmake" -DENABLE_ARC=OFF -DPLATFORM="OS64COMBINED" -DDEPLOYMENT_TARGET=14.0 ../..
cmake -G "Xcode" -DCMAKE_SYSTEM_NAME="iOS" ../..
2 changes: 1 addition & 1 deletion config/init-tvos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ mkdir ../build
cd ../build
mkdir tvos
cd tvos
cmake -G "Xcode" -DCMAKE_TOOLCHAIN_FILE="../../config/ios.toolchain.cmake" -DPLATFORM="TVOSCOMBINED" -DDEPLOYMENT_TARGET=14.0 ../..
cmake -G "Xcode" -DCMAKE_SYSTEM_NAME="tvOS" ../..

0 comments on commit 46ee9db

Please sign in to comment.