File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed
Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 11set (CMAKE_SYSTEM_NAME Android)
2- set (CMAKE_SYSTEM_VERSION 21 ) # API level
2+ set (CMAKE_SYSTEM_VERSION 28 ) # API level
33set (CMAKE_ANDROID_ARCH_ABI armeabi-v7a)
44set (CMAKE_ANDROID_NDK ${ANDROID_NDK} )
55set (CMAKE_ANDROID_STL_TYPE c++_static)
6- set (CMAKE_ANDROID_API_MIN 21 )
6+ set (CMAKE_ANDROID_API_MIN 28 )
77set (ANDROID True )
Original file line number Diff line number Diff line change 33# taken from https://github.com/floooh/sokol/blob/master/tests/test_common.sh
44
55setup_android () {
6- if [ ! -d " build/android_sdk" ] ; then
7- mkdir -p build/android_sdk && cd build/android_sdk
8- sdk_file=" sdk-tools-linux-3859397.zip"
9- wget --no-verbose https://dl.google.com/android/repository/$sdk_file
10- unzip -q $sdk_file
11- cd tools/bin
12- yes | ./sdkmanager " platforms;android-28" > /dev/null
13- yes | ./sdkmanager " build-tools;29.0.3" > /dev/null
14- yes | ./sdkmanager " platform-tools" > /dev/null
15- yes | ./sdkmanager " ndk-bundle" > /dev/null
16- cd ../../../..
17- fi
6+ if [ ! -d " build/android_sdk" ] ; then
7+ mkdir -p build/android_sdk && cd build/android_sdk
8+ sdk_file=" commandlinetools-linux-11076708_latest.zip"
9+ wget --no-verbose https://dl.google.com/android/repository/$sdk_file
10+ unzip -q $sdk_file
11+ cd cmdline-tools/bin
12+ echo " Install platform android"
13+ yes | ./sdkmanager --sdk_root=. " platforms;android-28" > /dev/null
14+
15+ echo " Install build-tools"
16+ yes | ./sdkmanager --sdk_root=. " build-tools;29.0.3" > /dev/null
17+
18+ echo " Install platform-tools"
19+ yes | ./sdkmanager --sdk_root=. " platform-tools" > /dev/null
20+
21+ echo " Install ndk-bundle"
22+ yes | ./sdkmanager --sdk_root=. " ndk-bundle" > /dev/null
23+ cd ../../../..
24+ fi
1825}
1926
2027setup_android
You can’t perform that action at this time.
0 commit comments