##// END OF EJS Templates
Removes defualt realse and debug build setting
Michal Klocek -
r1676:66188ee0d6a5
parent child
Show More
@@ -1,3 +1,4
1 ##################### LIB #################################################
1
2
2 LIBRARY_NAME = QtCommercialChart
3 LIBRARY_NAME = QtCommercialChart
3 CONFIG(debug, debug|release) {
4 CONFIG(debug, debug|release) {
@@ -5,7 +6,11 CONFIG(debug, debug|release) {
5 win32: LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
6 win32: LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
6 }
7 }
7
8
8 coverage: CONFIG += debug
9 LIBS += -l$$LIBRARY_NAME
10
11 # This will undefine Q_DECL_EXPORT/Q_DECL_IMPORT at qchartglobal.h
12 # They should not be used for staticlib builds.
13 staticlib:DEFINES+=QTCOMMERCIALCHART_STATICLIB
9
14
10 ##################### SHADOW CONFIG #################################################
15 ##################### SHADOW CONFIG #################################################
11
16
@@ -35,10 +40,10 CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_BIN_DIR/QtCommercial/Chart
35 CHART_BUILD_DOC_DIR = $$SHADOW/doc
40 CHART_BUILD_DOC_DIR = $$SHADOW/doc
36
41
37 # Use own folders for debug and release builds
42 # Use own folders for debug and release builds
38 !coverage {
43
39 CONFIG(debug, debug|release):CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/debug)
44 CONFIG(debug, debug|release):CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/debug)
40 CONFIG(release, debug|release): CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/release)
45 CONFIG(release, debug|release): CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/release)
41 }
46
42
47
43 win32:{
48 win32:{
44 CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\")
49 CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\")
@@ -59,15 +64,8 mac: {
59 QMAKE_LFLAGS *= -mmacosx-version-min=10.5
64 QMAKE_LFLAGS *= -mmacosx-version-min=10.5
60 }
65 }
61
66
62 ##################### DEVELOPMENT BUILD ###################################################
67 ##################### INCLUDES ############################################################
63
64 development_build: {
65 DEFINES+=DEVELOPMENT_BUILD
66 CONFIG+=debug_and_release
67 }
68
69
68
70 ##################### BUILD CONFIG ########################################################
71
69
72 INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR
70 INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR
73
71
@@ -83,11 +81,13 INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR
83 }
81 }
84 }
82 }
85
83
86 LIBS += -l$$LIBRARY_NAME
84 ##################### DEVELOPMENT BUILD ###################################################
87
85
88 # This will undefine Q_DECL_EXPORT/Q_DECL_IMPORT at qchartglobal.h
86 development_build: {
89 # They should not be used for staticlib builds.
87 DEFINES+=DEVELOPMENT_BUILD
90 staticlib:DEFINES+=QTCOMMERCIALCHART_STATICLIB
88 CONFIG+=debug_and_release
89 CONFIG+=build_all
90 }
91
91
92 ##################### UNIT TESTS ##############################################################
92 ##################### UNIT TESTS ##############################################################
93
93
@@ -96,3 +96,5 CONFIG(debug, debug|release) {
96 DEFINES+=BUILD_PRIVATE_UNIT_TESTS
96 DEFINES+=BUILD_PRIVATE_UNIT_TESTS
97 }
97 }
98
98
99 #################### COVERAGE #################################################################
100 coverage: CONFIG += debug
@@ -15,12 +15,6 CONFIG(debug, debug|release) {
15 win32: TARGET = $$join(TARGET,,,d)
15 win32: TARGET = $$join(TARGET,,,d)
16 }
16 }
17
17
18 # enable building debug and release at the same time
19 CONFIG += debug_and_release
20
21 # On windows by default build both debug and release at the same time
22 win32:CONFIG += build_all
23
24 SOURCES += \
18 SOURCES += \
25 plugin.cpp \
19 plugin.cpp \
26 declarativechart.cpp \
20 declarativechart.cpp \
@@ -19,12 +19,6 unix:{
19 QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
19 QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
20 }
20 }
21
21
22 # enable building debug and release at the same time
23 CONFIG += debug_and_release
24
25 # On windows by default build both debug and release at the same time
26 win32:CONFIG += build_all
27
28 ############################# DEPEDENCES ########################################
22 ############################# DEPEDENCES ########################################
29
23
30 win32-msvc*: LIBS += User32.lib
24 win32-msvc*: LIBS += User32.lib
General Comments 0
You need to be logged in to leave comments. Login now