mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-01 20:52:05 -04:00
Make .pro files compiler agnostic on Android
This commit is contained in:
parent
da2fc01952
commit
ebfe50f814
6 changed files with 8 additions and 8 deletions
|
@ -917,7 +917,7 @@ test_bitdht {
|
||||||
|
|
||||||
################################# Android #####################################
|
################################# Android #####################################
|
||||||
|
|
||||||
android-g++ {
|
android-* {
|
||||||
## ifaddrs is missing on Android to add them don't use the one from
|
## ifaddrs is missing on Android to add them don't use the one from
|
||||||
## https://github.com/morristech/android-ifaddrs
|
## https://github.com/morristech/android-ifaddrs
|
||||||
## because they crash, use QNetworkInterface from Qt instead
|
## because they crash, use QNetworkInterface from Qt instead
|
||||||
|
|
|
@ -122,7 +122,7 @@ SOURCES += openpgpsdk/opsstring.c
|
||||||
|
|
||||||
################################# Android #####################################
|
################################# Android #####################################
|
||||||
|
|
||||||
android-g++ {
|
android-* {
|
||||||
|
|
||||||
## Add this here and not in retroshare.pri because static library are very
|
## Add this here and not in retroshare.pri because static library are very
|
||||||
## sensible to order in command line
|
## sensible to order in command line
|
||||||
|
|
|
@ -12,7 +12,7 @@ RESOURCES += qml.qrc
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
android-g++ {
|
android-* {
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
QT += androidextras
|
QT += androidextras
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@ QT += core network
|
||||||
QT -= gui
|
QT -= gui
|
||||||
|
|
||||||
CONFIG += c++11
|
CONFIG += c++11
|
||||||
android-g++:CONFIG += dll
|
android-*:CONFIG += dll
|
||||||
|
|
||||||
android-g++:TEMPLATE = lib
|
android-*:TEMPLATE = lib
|
||||||
!android-g++:TEMPLATE = app
|
!android-*:TEMPLATE = app
|
||||||
|
|
||||||
DEPENDPATH *= ../../libresapi/src
|
DEPENDPATH *= ../../libresapi/src
|
||||||
INCLUDEPATH *= ../../libresapi/src
|
INCLUDEPATH *= ../../libresapi/src
|
||||||
|
|
|
@ -17,7 +17,7 @@ RESOURCES += qml.qrc
|
||||||
|
|
||||||
# Platform interaction specific code
|
# Platform interaction specific code
|
||||||
|
|
||||||
android-g++ {
|
android-* {
|
||||||
QT += androidextras
|
QT += androidextras
|
||||||
HEADERS += NativeCalls.h androidplatforminteracions.h
|
HEADERS += NativeCalls.h androidplatforminteracions.h
|
||||||
SOURCES += NativeCalls.cpp androidplatforminteracions.cpp
|
SOURCES += NativeCalls.cpp androidplatforminteracions.cpp
|
||||||
|
|
|
@ -111,7 +111,7 @@ linux-* {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
android-g++ {
|
android-* {
|
||||||
isEmpty(NATIVE_LIBS_TOOLCHAIN_PATH) {
|
isEmpty(NATIVE_LIBS_TOOLCHAIN_PATH) {
|
||||||
NATIVE_LIBS_TOOLCHAIN_PATH = $$(NATIVE_LIBS_TOOLCHAIN_PATH)
|
NATIVE_LIBS_TOOLCHAIN_PATH = $$(NATIVE_LIBS_TOOLCHAIN_PATH)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue