Commit 4cc8e2f2 authored by Johannes Schwab's avatar Johannes Schwab

build debug with "qmake CONFIG+=debug"

parent 0c3df17a
......@@ -2,7 +2,7 @@
<manifest package=\"org.jschwab.openrecipes$$NAMEPOSTFIX\"
xmlns:android=\"http://schemas.android.com/apk/res/android\"
android:versionName=\"$$VERSION\"
android:versionCode=\"2\"
android:versionCode=\"$$ANDROID_VERSION_CODE\"
android:installLocation=\"auto\">
<application android:hardwareAccelerated=\"true\"
android:name=\"org.qtproject.qt5.android.bindings.QtApplication\"
......@@ -101,7 +101,7 @@
<!-- extract android style -->
</activity>
<provider android:authorities=\"org.jschwab.openrecipes.provider\"
<provider android:authorities=\"org.jschwab.openrecipes$${NAMEPOSTFIX}.provider\"
android:name=\"org.jschwab.openrecipes.XmlProvider\"
android:enabled=\"true\"
android:exported=\"true\"
......
......@@ -2,11 +2,11 @@ cd `dirname "${BASH_SOURCE[0]}"`
make distclean
export OPENRECIPES_ANDROID_SYSROOT=`pwd`/androidlibs/arm
export ANDROID_NDK_PLATFORM=android-27
~/Qt/5.11.1/android_armv7/bin/qmake
~/Qt/5.11.1/android_armv7/bin/qmake CONFIG+=debug
make clean
make -j5
mkdir client/android_arm
make install INSTALL_ROOT=android_arm
cd client
export TERM=xterm-color
~/Qt/5.11.1/android_armv7/bin/androiddeployqt --output android_arm --gradle --input android-libopenrecipes.so-deployment-settings.json --release
~/Qt/5.11.1/android_armv7/bin/androiddeployqt --output android_arm --gradle --input android-libopenrecipes.so-deployment-settings.json
......@@ -2,11 +2,11 @@ cd `dirname "${BASH_SOURCE[0]}"`
make distclean
export OPENRECIPES_ANDROID_SYSROOT=`pwd`/androidlibs/x86
export ANDROID_NDK_PLATFORM=android-27
~/Qt/5.11.1/android_x86/bin/qmake
~/Qt/5.11.1/android_x86/bin/qmake CONFIG+=debug
make clean
make -j5
mkdir client/android_x86
make install INSTALL_ROOT=android_x86
cd client
export TERM=xterm-color
~/Qt/5.11.1/android_x86/bin/androiddeployqt --output android_x86 --gradle --input android-libopenrecipes.so-deployment-settings.json --release
~/Qt/5.11.1/android_x86/bin/androiddeployqt --output android_x86 --gradle --input android-libopenrecipes.so-deployment-settings.json
cd `dirname "${BASH_SOURCE[0]}"`
make distclean
~/Qt/5.10.0/gcc_64/bin/qmake
~/Qt/5.10.0/gcc_64/bin/qmake CONFIG+=debug
make clean
make -j5
make check
......@@ -50,10 +50,9 @@ android {
ANDROID_EXTRA_LIBS += \
$$(OPENRECIPES_ANDROID_SYSROOT)/lib/libsodium.so \
$$(OPENRECIPES_ANDROID_SYSROOT)/lib/libqrencode.so
QMAKE_SUBSTITUTES += ../android-sources/AndroidManifest.xml.in
}
QMAKE_SUBSTITUTES += ../android-sources/AndroidManifest.xml.in
TRANSLATIONS += intl/client_de.ts
lupdate_only {SOURCES += qml/*.qml}
......
CONFIG += release
DEFINES += QT_DEPRECATED_WARNINGS QT_NO_DEBUG_OUTPUT
VERSION = 0.2.0
ANDROID_VERSION_CODE = 2
DEFINES += QT_DEPRECATED_WARNINGS
unix: QMAKE_CXXFLAGS += -Wextra -Werror=format-security -D_FORTIFY_SECURITY=2
VERSION = 0.2.0
CONFIG(release, debug|release): DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG(debug, debug|release) {
CONFIG += qml_debug declaratice_debug warn_on
unix: QMAKE_CXXFLAGS += -Werror
}
CONFIG(debug, debug|release): NAMEPOSTFIX="_debug"
CONFIG(release, debug|release): NAMEPOSTFIX=""
......
Markdown is supported
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