forked from google/filament
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add iOS support to Filament (google#360)
- Loading branch information
Showing
48 changed files
with
2,995 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# File is generated by ../build.sh and should not be tracked | ||
toolchain-arm64-mac-ios.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Usage: the first argument selects the build type: | ||
# - release, to build release only | ||
# - debug, to build debug only | ||
# - continuous, to build release and debug | ||
# - presubmit, for presubmit builds | ||
# | ||
# The default is release | ||
|
||
set -e | ||
set -x | ||
|
||
source `dirname $0`/../common/ci-common.sh | ||
source `dirname $0`/ci-common.sh | ||
source `dirname $0`/../common/build-common.sh | ||
|
||
pushd `dirname $0`/../.. > /dev/null | ||
|
||
# build.sh prompts the user to download Apple's iOS toolchain | ||
yes | ./build.sh -p ios -c $GENERATE_ARCHIVES $BUILD_DEBUG $BUILD_RELEASE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
curl -OL https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip | ||
unzip -q ninja-mac.zip | ||
chmod +x ninja | ||
export PATH="$PWD:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
action { | ||
define_artifacts { | ||
regex: "github/filament/out/*.tgz" | ||
regex: "github/filament/out/*.aar" | ||
strip_prefix: "github/filament/out" | ||
regex: "**/*sponge_log.xml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
build_file: "filament/build/ios/build.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
build_file: "filament/build/ios/build.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
build_file: "filament/build/ios/build.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ================================================================================================== | ||
# Filament-specific settings | ||
# The rest of the toolchain is downloaded from Apple Open Source and appended. | ||
# ================================================================================================== | ||
|
||
# In theory, we could support older architectures, but only arm64 Apple devices support Metal | ||
set(IOS_ARCH arm64) | ||
|
||
set(CMAKE_OSX_ARCHITECTURES ${IOS_ARCH} CACHE STRING "Build architecture for iOS") | ||
|
||
# Necessary for correct install location | ||
set(DIST_ARCH arm64) | ||
|
||
add_definitions(-DIOS) | ||
|
||
# ================================================================================================== | ||
# End Filament-specific settings | ||
# ================================================================================================== |
Oops, something went wrong.