Commit ca9ad4f3 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: I2ded43d7ed46a99ba70301f07a791ed4a148c6c0
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
Showing with 6 additions and 4 deletions
...@@ -13,7 +13,9 @@ OTHER_FILES += \ ...@@ -13,7 +13,9 @@ OTHER_FILES += \
corkboards.qml \ corkboards.qml \
Mode.qml Mode.qml
!android-embedded {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
}
target.path = $$[QT_INSTALL_EXAMPLES]/nfc/corkboard target.path = $$[QT_INSTALL_EXAMPLES]/nfc/corkboard
INSTALLS += target INSTALLS += target
......
...@@ -110,7 +110,7 @@ qtConfig(bluez) { ...@@ -110,7 +110,7 @@ qtConfig(bluez) {
qlowenergycontroller_p.cpp qlowenergycontroller_p.cpp
} }
} else:android { } else:android:!android-embedded {
include(android/android.pri) include(android/android.pri)
DEFINES += QT_ANDROID_BLUETOOTH DEFINES += QT_ANDROID_BLUETOOTH
QT_FOR_PRIVATE += core-private androidextras QT_FOR_PRIVATE += core-private androidextras
......
...@@ -79,7 +79,7 @@ linux:!android:qtHaveModule(dbus) { ...@@ -79,7 +79,7 @@ linux:!android:qtHaveModule(dbus) {
include(neard/neard.pri) include(neard/neard.pri)
} else:android { } else:android:!android-embedded {
NFC_BACKEND_AVAILABLE = yes NFC_BACKEND_AVAILABLE = yes
DEFINES += QT_ANDROID_NFC DEFINES += QT_ANDROID_NFC
ANDROID_PERMISSIONS = \ ANDROID_PERMISSIONS = \
......
...@@ -6,6 +6,6 @@ QT = core concurrent bluetooth testlib ...@@ -6,6 +6,6 @@ QT = core concurrent bluetooth testlib
osx:QT += widgets osx:QT += widgets
android { android:!android-embedded {
DEFINES += QT_ANDROID_BLUETOOTH DEFINES += QT_ANDROID_BLUETOOTH
} }
...@@ -11,6 +11,6 @@ OTHER_FILES += \ ...@@ -11,6 +11,6 @@ OTHER_FILES += \
osx { osx {
DEFINES += QT_OSX_BLUETOOTH DEFINES += QT_OSX_BLUETOOTH
} else: android { } else:android:!android-embedded {
DEFINES += QT_ANDROID_BLUETOOTH DEFINES += QT_ANDROID_BLUETOOTH
} }
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