Added android release build configurations.
authorArmin Novak <armin.novak@thincast.com>
Mon, 16 Jan 2017 14:23:11 +0000 (15:23 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 16 Jan 2017 14:25:20 +0000 (15:25 +0100)
docs/README.android
scripts/android-build-32.conf [new file with mode: 0644]
scripts/android-build-64.conf [new file with mode: 0644]
scripts/android-build.conf

index 02312d5..1e4ff67 100644 (file)
@@ -45,6 +45,15 @@ Currently the default script builds for:
 When the script is finished the libraries are ready for android studio to
 be picked up in client/Android/Studio/freeRDPCore/src/main/jniLibs
 
+The default configuration build configuration can be found in
+./scripts/android-build.conf and is configured to provide debug builds.
+They are limited to API level 21 and above.
+
+If release binaries (and old android API support) are required, build 32 bit architectures with
+./scripts/android-build-freerdp.sh --ndk <ANDROID_NDK> --sdk <ANDROID_SDK> --conf ./scripts/android-build-32.conf
+and 64 bit architectures with
+./scripts/android-build-freerdp.sh --ndk <ANDROID_NDK> --sdk <ANDROID_SDK> --conf ./scripts/android-build-32.conf
+
 Building the APK (Android Studio)
 ================
 
diff --git a/scripts/android-build-32.conf b/scripts/android-build-32.conf
new file mode 100644 (file)
index 0000000..36e821e
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# Android build confguration
+#
+# Note: This is a simple configuration to build all
+#       architectures in one rush.
+#       Since android 64 bit support was introduced with NDK API 21
+#       this is the minimal common denominator.
+#       If you require support for older NDK API levels,
+#       create seperate configurations for each NDK API level
+#       and architecture you want to support.
+WITH_JPEG=0
+WITH_OPENH264=1
+WITH_OPENSSL=1
+BUILD_DEPS=1
+DEPS_ONLY=0
+NDK_TARGET=14
+
+JPEG_TAG=master
+OPENH264_TAG=v1.6.0
+OPENSSL_TAG=OpenSSL_1_1_0c
+
+SRC_DIR=$SCRIPT_PATH/..
+BUILD_DST=$SCRIPT_PATH/../client/Android/Studio/freeRDPCore/src/main/jniLibs
+BUILD_SRC=$SRC_DIR/build
+
+CMAKE_BUILD_TYPE=Release
+
+BUILD_ARCH="armeabi armeabi-v7a x86 mips"
diff --git a/scripts/android-build-64.conf b/scripts/android-build-64.conf
new file mode 100644 (file)
index 0000000..aafe72f
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# Android build confguration
+#
+# Note: This is a simple configuration to build all
+#       architectures in one rush.
+#       Since android 64 bit support was introduced with NDK API 21
+#       this is the minimal common denominator.
+#       If you require support for older NDK API levels,
+#       create seperate configurations for each NDK API level
+#       and architecture you want to support.
+WITH_JPEG=0
+WITH_OPENH264=1
+WITH_OPENSSL=1
+BUILD_DEPS=1
+DEPS_ONLY=0
+NDK_TARGET=21
+
+JPEG_TAG=master
+OPENH264_TAG=v1.6.0
+OPENSSL_TAG=OpenSSL_1_1_0c
+
+SRC_DIR=$SCRIPT_PATH/..
+BUILD_DST=$SCRIPT_PATH/../client/Android/Studio/freeRDPCore/src/main/jniLibs
+BUILD_SRC=$SRC_DIR/build
+
+CMAKE_BUILD_TYPE=Release
+
+BUILD_ARCH="arm64-v8a x86_64 mips64"
index 4d92606..510028e 100644 (file)
@@ -10,7 +10,7 @@
 #       create seperate configurations for each NDK API level
 #       and architecture you want to support.
 WITH_JPEG=0
-WITH_OPENH264=0
+WITH_OPENH264=1
 WITH_OPENSSL=1
 BUILD_DEPS=1
 DEPS_ONLY=0