From 7a62fe467bebaef312cb515cbbec9e67828fe557 Mon Sep 17 00:00:00 2001 From: Rafael Rondao Date: Sat, 7 Nov 2020 21:37:28 -0300 Subject: Add build support for Android To build for Android, use platform=android. ANDROID_NDK_ROOT env variable needs to be defined. By default, it builds for armv7 with Api 18. To build for arm64v8 (or x86, x86_64), use android_arch=arm64v8. 64 bits requires at least Api level 21. If needed, you can change it with android_api_level=XX. Signed-off-by: Rafael Rondao --- misc/gdnlib.tres | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'misc') diff --git a/misc/gdnlib.tres b/misc/gdnlib.tres index a486a54..52a0008 100644 --- a/misc/gdnlib.tres +++ b/misc/gdnlib.tres @@ -9,9 +9,13 @@ entry/X11.64 = "res://{GDNATIVE_PATH}/lib/libwebrtc_native.linux.{TARGET}.64.so" entry/X11.32 = "res://{GDNATIVE_PATH}/lib/libwebrtc_native.linux.{TARGET}.32.so" entry/Server.64 = "res://{GDNATIVE_PATH}/lib/libwebrtc_native.linux.{TARGET}.64.so" entry/Server.32 = "res://{GDNATIVE_PATH}/lib/libwebrtc_native.linux.{TARGET}.32.so" +entry/Android.armeabi-v7a = "res://{GDNATIVE_PATH}/lib/libwebrtc_native.android.{TARGET}.armv7.so" +entry/Android.arm64-v8a = "res://{GDNATIVE_PATH}/lib/libwebrtc_native.android.{TARGET}.arm64v8.so" dependency/Windows.64 = [ ] dependency/Windows.32 = [ ] dependency/X11.64 = [ ] dependency/X11.32 = [ ] dependency/Server.64 = [ ] dependency/Server.32 = [ ] +dependency/Android.armeabi-v7a = [ ] +dependency/Android.arm64-v8a = [ ] -- cgit v1.2.3