Commit 2dae7743 authored by Otto Ryynänen's avatar Otto Ryynänen
Browse files

Support for Q_OS_ANDROID_EMBEDDED and android-embedded builds


The Embedded Android build (Boot to Qt Android injection) is defined by
having both Q_OS_ANDROID and Q_OS_ANDROID_EMBEDDED flags defined,
as well as having Qt config android-embedded.
Those flags are set in mkspecs when building for embedded Android.
This commit enables the possibility to build embedded Android builds.
(i.e. Qt build for Android baselayer only, without JNI)

Change-Id: I8d139b6d7b61c00ad44079cbfa6e5c77e8618a7b
Reviewed-by: default avatarEirik Aavitsland <eirik.aavitsland@qt.io>
Showing with 3 additions and 3 deletions
......@@ -113,7 +113,7 @@ SOURCES += \
$$PWD/libwebp/src/utils/thread_utils.c \
$$PWD/libwebp/src/utils/utils.c
android {
android:!android-embedded {
SOURCES += $$NDK_ROOT/sources/android/cpufeatures/cpu-features.c
INCLUDEPATH += $$NDK_ROOT/sources/android/cpufeatures
}
......
......@@ -18,7 +18,7 @@
#include <string.h>
#endif
#if defined(WEBP_ANDROID_NEON)
#if defined(WEBP_ANDROID_NEON) && !defined(Q_OS_ANDROID_EMBEDDED)
#include <cpu-features.h>
#endif
......@@ -168,7 +168,7 @@ static int x86CPUInfo(CPUFeature feature) {
return 0;
}
VP8CPUInfo VP8GetCPUInfo = x86CPUInfo;
#elif defined(WEBP_ANDROID_NEON) // NB: needs to be before generic NEON test.
#elif defined(WEBP_ANDROID_NEON) && !defined(Q_OS_ANDROID_EMBEDDED) // NB: needs to be before generic NEON test.
static int AndroidCPUInfo(CPUFeature feature) {
const AndroidCpuFamily cpu_family = android_getCpuFamily();
const uint64_t cpu_features = android_getCpuFeatures();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment