egl-configs: add i686 support

This commit is contained in:
Simon Sapin 2018-06-26 19:13:01 +02:00
parent 7d7f2025b7
commit b7a8b81071
2 changed files with 21 additions and 1 deletions

View file

@ -1,6 +1,10 @@
[build]
target = "armv7-linux-androideabi"
target = "i686-linux-android"
[target.armv7-linux-androideabi]
linker = "./ld.sh"
runner = "./run.sh"
[target.i686-linux-android]
linker = "./ld-i686.sh"
runner = "./run.sh"

View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -o errexit
set -o nounset
set -o pipefail
NDK=../../../android-toolchains/android-ndk-r12b-linux-x86_64/android-ndk-r12b
BIN="${NDK}/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/"
"${BIN}/i686-linux-android-gcc" \
--sysroot "${NDK}/platforms/android-18/arch-x86" \
"${@}"