mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 14:05:45 +00:00
Move dead submodules in-tree
Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
c0cceff365
commit
6c655321e6
4081 changed files with 1185566 additions and 45 deletions
70
externals/oboe/build_all_android.sh
vendored
Executable file
70
externals/oboe/build_all_android.sh
vendored
Executable file
|
@ -0,0 +1,70 @@
|
|||
# Copyright 2017 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Script to build Oboe for multiple Android ABIs and prepare them for distribution
|
||||
# via Prefab (github.com/google/prefab)
|
||||
#
|
||||
# Ensure that ANDROID_NDK environment variable is set to your Android NDK location
|
||||
# e.g. /Library/Android/sdk/ndk-bundle
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$ANDROID_NDK" ]; then
|
||||
echo "Please set ANDROID_NDK to the Android NDK folder"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Directories, paths and filenames
|
||||
BUILD_DIR=build
|
||||
|
||||
CMAKE_ARGS="-S. \
|
||||
-DBUILD_SHARED_LIBS=true \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DANDROID_TOOLCHAIN=clang \
|
||||
-DANDROID_STL=c++_shared \
|
||||
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=."
|
||||
|
||||
function build_oboe {
|
||||
|
||||
ABI=$1
|
||||
MINIMUM_API_LEVEL=$2
|
||||
ABI_BUILD_DIR=build/${ABI}
|
||||
STAGING_DIR=staging
|
||||
|
||||
echo "Building Oboe for ${ABI}"
|
||||
|
||||
mkdir -p ${ABI_BUILD_DIR} ${ABI_BUILD_DIR}/${STAGING_DIR}
|
||||
|
||||
cmake -B${ABI_BUILD_DIR} \
|
||||
-DANDROID_ABI=${ABI} \
|
||||
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=${STAGING_DIR}/lib/${ABI} \
|
||||
-DANDROID_PLATFORM=android-${MINIMUM_API_LEVEL}\
|
||||
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON \
|
||||
${CMAKE_ARGS}
|
||||
|
||||
pushd ${ABI_BUILD_DIR}
|
||||
make -j5
|
||||
popd
|
||||
}
|
||||
|
||||
build_oboe armeabi-v7a 16
|
||||
build_oboe arm64-v8a 21
|
||||
build_oboe x86 16
|
||||
build_oboe x86_64 21
|
||||
|
||||
# Currently unsupported ABIs
|
||||
# build_oboe armeabi 16 - This was deprecated in Android 16 and removed in 17
|
||||
# build_oboe mips 21 - This was deprecated in Android 16 and removed in 17
|
||||
# build_oboe mips64
|
Loading…
Add table
Add a link
Reference in a new issue