Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-04-15 04:21:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:15:43 +0300
commitf69b681af4f8f51d3424ab857b5f1273432a8b06 (patch)
tree3ae8514021524e5f57c53a22cbb6814ca8be2a8a /common.pri
parent47c3116de39560dd02488cf77fb2c9403c5094e1 (diff)
Added production configuration
It is enabled by adding CONFIG+=production in qmake command line Use OMIM_PRODUCTION define in the code
Diffstat (limited to 'common.pri')
-rw-r--r--common.pri13
1 files changed, 11 insertions, 2 deletions
diff --git a/common.pri b/common.pri
index f89e1eb347..1108d539c3 100644
--- a/common.pri
+++ b/common.pri
@@ -20,6 +20,16 @@ CONFIG(release, debug|release) {
CONFIG_NAME = debug
}
+CONFIG(production) {
+ DEFINES += OMIM_PRODUCTION
+} else {
+ # enable debugging information for non-production release builds
+ unix|win32-g++ {
+ QMAKE_CFLAGS_RELEASE += -g
+ QMAKE_CXXFLAGS_RELEASE += -g
+ }
+}
+
BINARIES_PATH = $$ROOT_DIR/out/$$CONFIG_NAME
TEMP_PATH = $$ROOT_DIR/out/$$CONFIG_NAME/tmp/$$TARGET
@@ -73,10 +83,9 @@ win32-msvc2008 {
unix|win32-g++ {
QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare -Wno-strict-aliasing
-# QMAKE_CXXFLAGS_RELEASE += -g
# experimental
QMAKE_CFLAGS_RELEASE -= -O2
- QMAKE_CFLAGS_RELEASE += -O3
+ QMAKE_CFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_CFLAGS_RELEASE *= -ffast-math