Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
806af25f
Unverified
Commit
806af25f
authored
Jul 12, 2018
by
John Kessenich
Committed by
GitHub
Jul 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1442 from dneto0/use-forked-android-ndk-repo
NDK build: Use NDK r17b and its own CMake toolchain file
parents
e7f9caea
4aeca2df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
.travis.yml
.travis.yml
+7
-9
No files found.
.travis.yml
View file @
806af25f
...
@@ -48,20 +48,16 @@ install:
...
@@ -48,20 +48,16 @@ install:
-
if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then
-
if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then
export CC=clang-3.6 CXX=clang++-3.6;
export CC=clang-3.6 CXX=clang++-3.6;
fi
fi
# Download Android NDK and Android CMake toolchain file.
# Download a recent Android NDK and use its android.toolchain.cmake file.
# Unfortunately the android.toolchain.cmake file does not understand how to
# get the API level from Android NDK r17b. So fall back on r13b.
# Get only one commit at tag r13b.
-
if [[ "$BUILD_NDK" == "ON" ]]; then
-
if [[ "$BUILD_NDK" == "ON" ]]; then
export ANDROID_NDK=$HOME/android-ndk;
export ANDROID_NDK=$HOME/android-ndk;
git init $ANDROID_NDK;
git init $ANDROID_NDK;
pushd $ANDROID_NDK;
pushd $ANDROID_NDK;
git remote add
urho3d https://github.com/urho3d
/android-ndk.git;
git remote add
dneto0 https://github.com/dneto0
/android-ndk.git;
git fetch --depth=1
urho3d r13b
;
git fetch --depth=1
dneto0 r17b-strip
;
git checkout FETCH_HEAD;
git checkout FETCH_HEAD;
popd;
popd;
git clone --depth=1 https://github.com/taka-no-me/android-cmake.git $HOME/android-cmake;
export TOOLCHAIN_PATH=$ANDROID_NDK/build/cmake/android.toolchain.cmake;
export TOOLCHAIN_PATH=$HOME/android-cmake/android.toolchain.cmake;
fi
fi
before_script
:
before_script
:
...
@@ -71,10 +67,12 @@ before_script:
...
@@ -71,10 +67,12 @@ before_script:
script
:
script
:
-
mkdir build && cd build
-
mkdir build && cd build
# For Android, do release building using NDK without testing.
# For Android, do release building using NDK without testing.
# Use android-14, the oldest native API level supporeted by NDK r17b.
# We can use newer API levels if we want.
# For Linux and macOS, do debug/release building with testing.
# For Linux and macOS, do debug/release building with testing.
-
if [[ "$BUILD_NDK" == "ON" ]]; then
-
if [[ "$BUILD_NDK" == "ON" ]]; then
cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_PATH}
cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_PATH}
-DANDROID_NATIVE_API_LEVEL=android-1
2
-DANDROID_NATIVE_API_LEVEL=android-1
4
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI="armeabi-v7a with NEON"
-DANDROID_ABI="armeabi-v7a with NEON"
-DBUILD_TESTING=OFF ..;
-DBUILD_TESTING=OFF ..;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment