@@ -1,3 +1,4 | |||
|
1 | ##################### LIB ################################################# | |
|
1 | 2 | |
|
2 | 3 | LIBRARY_NAME = QtCommercialChart |
|
3 | 4 | CONFIG(debug, debug|release) { |
@@ -5,7 +6,11 CONFIG(debug, debug|release) { | |||
|
5 | 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 | 15 | ##################### SHADOW CONFIG ################################################# |
|
11 | 16 | |
@@ -35,10 +40,10 CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_BIN_DIR/QtCommercial/Chart | |||
|
35 | 40 | CHART_BUILD_DOC_DIR = $$SHADOW/doc |
|
36 | 41 | |
|
37 | 42 | # Use own folders for debug and release builds |
|
38 | !coverage { | |
|
39 |
|
|
|
40 |
|
|
|
41 | } | |
|
43 | ||
|
44 | CONFIG(debug, debug|release):CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/debug) | |
|
45 | CONFIG(release, debug|release): CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/release) | |
|
46 | ||
|
42 | 47 | |
|
43 | 48 | win32:{ |
|
44 | 49 | CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\") |
@@ -59,15 +64,8 mac: { | |||
|
59 | 64 | QMAKE_LFLAGS *= -mmacosx-version-min=10.5 |
|
60 | 65 | } |
|
61 | 66 | |
|
62 |
##################### |
|
|
63 | ||
|
64 | development_build: { | |
|
65 | DEFINES+=DEVELOPMENT_BUILD | |
|
66 | CONFIG+=debug_and_release | |
|
67 | } | |
|
68 | ||
|
67 | ##################### INCLUDES ############################################################ | |
|
69 | 68 | |
|
70 | ##################### BUILD CONFIG ######################################################## | |
|
71 | 69 | |
|
72 | 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 | |
|
89 | # They should not be used for staticlib builds. | |
|
90 | staticlib:DEFINES+=QTCOMMERCIALCHART_STATICLIB | |
|
86 | development_build: { | |
|
87 | DEFINES+=DEVELOPMENT_BUILD | |
|
88 | CONFIG+=debug_and_release | |
|
89 | CONFIG+=build_all | |
|
90 | } | |
|
91 | 91 | |
|
92 | 92 | ##################### UNIT TESTS ############################################################## |
|
93 | 93 | |
@@ -96,3 +96,5 CONFIG(debug, debug|release) { | |||
|
96 | 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 | 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 | 18 | SOURCES += \ |
|
25 | 19 | plugin.cpp \ |
|
26 | 20 | declarativechart.cpp \ |
@@ -19,12 +19,6 unix:{ | |||
|
19 | 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 | 22 | ############################# DEPEDENCES ######################################## |
|
29 | 23 | |
|
30 | 24 | win32-msvc*: LIBS += User32.lib |
General Comments 0
You need to be logged in to leave comments.
Login now