Make .pro files compiler agnostic on Android

This commit is contained in:
Gioacchino Mazzurco 2018-01-30 18:11:31 +01:00
parent da2fc01952
commit ebfe50f814
6 changed files with 8 additions and 8 deletions

View File

@ -917,7 +917,7 @@ test_bitdht {
################################# Android #####################################
android-g++ {
android-* {
## ifaddrs is missing on Android to add them don't use the one from
## https://github.com/morristech/android-ifaddrs
## because they crash, use QNetworkInterface from Qt instead

View File

@ -122,7 +122,7 @@ SOURCES += openpgpsdk/opsstring.c
################################# Android #####################################
android-g++ {
android-* {
## Add this here and not in retroshare.pri because static library are very
## sensible to order in command line

View File

@ -12,7 +12,7 @@ RESOURCES += qml.qrc
TEMPLATE = app
android-g++ {
android-* {
TEMPLATE = lib
QT += androidextras
}

View File

@ -6,10 +6,10 @@ QT += core network
QT -= gui
CONFIG += c++11
android-g++:CONFIG += dll
android-*:CONFIG += dll
android-g++:TEMPLATE = lib
!android-g++:TEMPLATE = app
android-*:TEMPLATE = lib
!android-*:TEMPLATE = app
DEPENDPATH *= ../../libresapi/src
INCLUDEPATH *= ../../libresapi/src

View File

@ -17,7 +17,7 @@ RESOURCES += qml.qrc
# Platform interaction specific code
android-g++ {
android-* {
QT += androidextras
HEADERS += NativeCalls.h androidplatforminteracions.h
SOURCES += NativeCalls.cpp androidplatforminteracions.cpp

View File

@ -111,7 +111,7 @@ linux-* {
}
}
android-g++ {
android-* {
isEmpty(NATIVE_LIBS_TOOLCHAIN_PATH) {
NATIVE_LIBS_TOOLCHAIN_PATH = $$(NATIVE_LIBS_TOOLCHAIN_PATH)
}