@@ -0,0 +1,12 | |||||
|
1 | INCLUDEPATH += $$PWD | |||
|
2 | DEPENDPATH += $$PWD | |||
|
3 | ||||
|
4 | THEMES += \ | |||
|
5 | $$PWD/chartthemedefault_p.h \ | |||
|
6 | $$PWD/chartthemelight_p.h \ | |||
|
7 | $$PWD/chartthemebluecerulean_p.h \ | |||
|
8 | $$PWD/chartthemedark_p.h \ | |||
|
9 | $$PWD/chartthemebrownsand_p.h \ | |||
|
10 | $$PWD/chartthemebluencs_p.h \ | |||
|
11 | $$PWD/chartthemeicy_p.h \ | |||
|
12 | $$PWD/chartthemescientific_p.h No newline at end of file |
@@ -1,32 +1,34 | |||||
1 | !include(common.pri) { |
|
1 | !include(common.pri) { | |
2 | error('missing common.pri') |
|
2 | error('missing common.pri') | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | TEMPLATE = subdirs |
|
5 | TEMPLATE = subdirs | |
6 | SUBDIRS += src examples demos test qmlplugin |
|
6 | SUBDIRS += src examples demos test qmlplugin | |
7 |
|
7 | |||
8 | integrated_build:{ |
|
8 | integrated_build:{ | |
9 | message('Configured for integrated build against local libs...') |
|
9 | message('Configured for integrated build against local libs...') | |
10 | } else { |
|
10 | } else { | |
11 | message('Running build aginst system libs...') |
|
11 | message('Running build aginst system libs...') | |
12 | message('Please build example test and qmlplugin after installing library.') |
|
12 | message('Please build example test and qmlplugin after installing library.') | |
13 | } |
|
13 | } | |
14 |
|
14 | |||
15 | CONFIG += ordered |
|
15 | CONFIG += ordered | |
16 | QMAKE_CXXFLAGS += -g -Wall |
|
16 | QMAKE_CXXFLAGS += -g -Wall | |
17 | unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html |
|
17 | unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html | |
18 | win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html |
|
18 | win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html | |
19 |
|
19 | |||
20 | # install feature file |
|
20 | # install feature file | |
21 | feature.path = $$[QT_INSTALL_DATA]/mkspecs/features |
|
21 | feature.path = $$[QT_INSTALL_DATA]/mkspecs/features | |
22 | feature.files = $$PWD/features/qtcommercialchart.prf |
|
22 | feature.files = $$PWD/features/qtcommercialchart.prf | |
23 | INSTALLS += feature |
|
23 | INSTALLS += feature | |
24 |
|
24 | |||
25 | doc.target = doc |
|
25 | doc.target = doc | |
26 | win32:{ |
|
26 | win32:{ | |
27 | doc.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf |
|
27 | doc.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf | |
28 | }else{ |
|
28 | }else{ | |
29 | doc.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf |
|
29 | doc.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf | |
30 | } |
|
30 | } | |
|
31 | ||||
31 | doc.depends = FORCE |
|
32 | doc.depends = FORCE | |
32 | QMAKE_EXTRA_TARGETS += doc |
|
33 | QMAKE_EXTRA_TARGETS += docs | |
|
34 |
@@ -1,29 +1,44 | |||||
1 | CONFIG+=integrated_build #remove if you want to build against installed libs |
|
1 | CONFIG+=integrated_build #remove if you want to build against installed libs | |
2 |
|
2 | |||
3 | CHART_BUILD_PUBLIC_HEADER_DIR = $$PWD/include |
|
3 | SHADOW = $$find(PWD, $${OUT_PWD}) | |
|
4 | ||||
|
5 | unix:isEmpty(SHADOW){ | |||
|
6 | search = "$$PWD:::" | |||
|
7 | temp = $$split(search,"/") | |||
|
8 | temp = $$last(temp) | |||
|
9 | path = $$replace(search,$$temp,'') | |||
|
10 | temp = $$split(OUT_PWD,$$path) | |||
|
11 | temp = $$split(temp,'/') | |||
|
12 | temp = $$first(temp) | |||
|
13 | path = "$${path}$${temp}" | |||
|
14 | SHADOW=$$path | |||
|
15 | } | |||
|
16 | ||||
|
17 | CHART_BUILD_PUBLIC_HEADER_DIR = $$SHADOW/include | |||
4 | CHART_BUILD_PRIVATE_HEADER_DIR = $$CHART_BUILD_PUBLIC_HEADER_DIR/private |
|
18 | CHART_BUILD_PRIVATE_HEADER_DIR = $$CHART_BUILD_PUBLIC_HEADER_DIR/private | |
5 |
CHART_BUILD_LIB_DIR = $$ |
|
19 | CHART_BUILD_LIB_DIR = $$SHADOW/lib | |
6 |
CHART_BUILD_DIR = $$ |
|
20 | CHART_BUILD_DIR = $$SHADOW/build | |
7 |
CHART_BUILD_BIN_DIR = $$ |
|
21 | CHART_BUILD_BIN_DIR = $$SHADOW/bin | |
8 | CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_LIB_DIR/QtCommercial/Chart |
|
22 | CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_LIB_DIR/QtCommercial/Chart | |
9 |
CHART_BUILD_DOC_DIR = $$ |
|
23 | CHART_BUILD_DOC_DIR = $$SHADOW/doc | |
|
24 | ||||
10 |
|
25 | |||
11 | # hack to fix windows builds |
|
26 | # hack to fix windows builds | |
12 | win32:{ |
|
27 | win32:{ | |
13 | CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\") |
|
28 | CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\") | |
14 | CHART_BUILD_PRIVATE_HEADER_DIR = $$replace(CHART_BUILD_PRIVATE_HEADER_DIR, "/","\\") |
|
29 | CHART_BUILD_PRIVATE_HEADER_DIR = $$replace(CHART_BUILD_PRIVATE_HEADER_DIR, "/","\\") | |
15 | CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") |
|
30 | CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") | |
16 | CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") |
|
31 | CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") | |
17 | CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") |
|
32 | CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") | |
18 | CHART_BUILD_PLUGIN_DIR = $$replace(CHART_BUILD_PLUGIN_DIR, "/","\\") |
|
33 | CHART_BUILD_PLUGIN_DIR = $$replace(CHART_BUILD_PLUGIN_DIR, "/","\\") | |
19 | CHART_BUILD_DOC_DIR = $$replace(CHART_BUILD_DOC_DIR, "/","\\") |
|
34 | CHART_BUILD_DOC_DIR = $$replace(CHART_BUILD_DOC_DIR, "/","\\") | |
20 | } |
|
35 | } | |
21 |
|
36 | |||
22 | mac: { |
|
37 | mac: { | |
23 | # TODO: The following qmake flags are a work-around to make QtCommercial Charts compile on |
|
38 | # TODO: The following qmake flags are a work-around to make QtCommercial Charts compile on | |
24 | # QtCommercial 4.8. On the other hand Charts builds successfully with Qt open source 4.8 |
|
39 | # QtCommercial 4.8. On the other hand Charts builds successfully with Qt open source 4.8 | |
25 | # without these definitions, so this is probably a configuration issue on QtCommercial 4.8; |
|
40 | # without these definitions, so this is probably a configuration issue on QtCommercial 4.8; | |
26 | # it should probably define the minimum OSX version to be 10.5... |
|
41 | # it should probably define the minimum OSX version to be 10.5... | |
27 | QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5 |
|
42 | QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5 | |
28 | QMAKE_LFLAGS *= -mmacosx-version-min=10.5 |
|
43 | QMAKE_LFLAGS *= -mmacosx-version-min=10.5 | |
29 | } |
|
44 | } |
@@ -1,14 +1,14 | |||||
1 | !include( ../examples.pri ) { |
|
1 | !include( ../examples.pri ) { | |
2 | error( "Couldn't find the examples.pri file!" ) |
|
2 | error( "Couldn't find the examples.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | QT+= sql |
|
5 | QT+= sql | |
6 | TARGET = gdpbarchart |
|
6 | TARGET = gdpbarchart | |
7 | SOURCES += main.cpp\ |
|
7 | SOURCES += main.cpp\ | |
8 | widget.cpp |
|
8 | widget.cpp | |
9 | HEADERS += widget.h |
|
9 | HEADERS += widget.h | |
10 |
|
10 | |||
11 | !mac { |
|
11 | !mac { | |
12 | # TODO: QMAKE_POST_LINK does not work on mac; how to copy the data file? |
|
12 | # TODO: QMAKE_POST_LINK does not work on mac; how to copy the data file? | |
13 | QMAKE_POST_LINK += $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR |
|
13 | QMAKE_POST_LINK += $$QMAKE_COPY $$PWD/gdpData $$CHART_BUILD_BIN_DIR | |
14 | } |
|
14 | } |
@@ -1,147 +1,140 | |||||
1 | !include( ../common.pri ):error( Couldn't find the common.pri file! ) |
|
1 | !include( ../common.pri ):error( Couldn't find the common.pri file! ) | |
2 | TARGET = QtCommercialChart |
|
2 | TARGET = QtCommercialChart | |
3 | DESTDIR = $$CHART_BUILD_LIB_DIR |
|
3 | DESTDIR = $$CHART_BUILD_LIB_DIR | |
4 | TEMPLATE = lib |
|
4 | TEMPLATE = lib | |
5 | QT += core \ |
|
5 | QT += core \ | |
6 | gui |
|
6 | gui | |
7 | win32-msvc*: LIBS += User32.lib |
|
7 | win32-msvc*: LIBS += User32.lib | |
8 | CONFIG += debug_and_release |
|
8 | CONFIG += debug_and_release | |
9 | CONFIG(debug, debug|release):TARGET = QtCommercialChartd |
|
9 | CONFIG(debug, debug|release):TARGET = QtCommercialChartd | |
10 | SOURCES += \ |
|
10 | SOURCES += \ | |
11 | chartdataset.cpp \ |
|
11 | $$PWD/chartdataset.cpp \ | |
12 | chartpresenter.cpp \ |
|
12 | $$PWD/chartpresenter.cpp \ | |
13 | charttheme.cpp \ |
|
13 | $$PWD/charttheme.cpp \ | |
14 | domain.cpp \ |
|
14 | $$PWD/domain.cpp \ | |
15 | qchart.cpp \ |
|
15 | $$PWD/qchart.cpp \ | |
16 | qchartview.cpp \ |
|
16 | $$PWD/qchartview.cpp \ | |
17 | qseries.cpp \ |
|
17 | $$PWD/qseries.cpp \ | |
18 | qlegend.cpp \ |
|
18 | $$PWD/qlegend.cpp \ | |
19 | legendmarker.cpp \ |
|
19 | $$PWD/legendmarker.cpp \ | |
20 | chartbackground.cpp \ |
|
20 | $$PWD/chartbackground.cpp \ | |
21 | chart.cpp |
|
21 | $$PWD/chart.cpp | |
22 | PRIVATE_HEADERS += \ |
|
22 | PRIVATE_HEADERS += \ | |
23 | chartdataset_p.h \ |
|
23 | $$PWD/chartdataset_p.h \ | |
24 | chartitem_p.h \ |
|
24 | $$PWD/chartitem_p.h \ | |
25 | chartpresenter_p.h \ |
|
25 | $$PWD/chartpresenter_p.h \ | |
26 | charttheme_p.h \ |
|
26 | $$PWD/charttheme_p.h \ | |
27 | domain_p.h \ |
|
27 | $$PWD/domain_p.h \ | |
28 | legendmarker_p.h \ |
|
28 | $$PWD/legendmarker_p.h \ | |
29 | chartbackground_p.h \ |
|
29 | $$PWD/chartbackground_p.h \ | |
30 | chart_p.h |
|
30 | $$PWD/chart_p.h | |
31 | PUBLIC_HEADERS += \ |
|
31 | PUBLIC_HEADERS += \ | |
32 | qchart.h \ |
|
32 | $$PWD/qchart.h \ | |
33 | qchartglobal.h \ |
|
33 | $$PWD/qchartglobal.h \ | |
34 | qseries.h \ |
|
34 | $$PWD/qseries.h \ | |
35 | qchartview.h \ |
|
35 | $$PWD/qchartview.h \ | |
36 | qlegend.h |
|
36 | $$PWD/qlegend.h | |
37 |
|
37 | |||
38 | include(animations/animations.pri) |
|
38 | include(animations/animations.pri) | |
39 | include(axis/axis.pri) |
|
39 | include(axis/axis.pri) | |
40 | include(xychart/xychart.pri) |
|
40 | include(xychart/xychart.pri) | |
41 | include(linechart/linechart.pri) |
|
41 | include(linechart/linechart.pri) | |
42 | include(areachart/areachart.pri) |
|
42 | include(areachart/areachart.pri) | |
43 | include(barchart/barchart.pri) |
|
43 | include(barchart/barchart.pri) | |
44 | include(piechart/piechart.pri) |
|
44 | include(piechart/piechart.pri) | |
45 | include(scatterseries/scatter.pri) |
|
45 | include(scatterseries/scatter.pri) | |
46 | include(splinechart/splinechart.pri) |
|
46 | include(splinechart/splinechart.pri) | |
|
47 | include(themes/themes.pri) | |||
47 |
|
48 | |||
48 | THEMES += themes/chartthemedefault_p.h \ |
|
|||
49 | themes/chartthemelight_p.h \ |
|
|||
50 | themes/chartthemebluecerulean_p.h \ |
|
|||
51 | themes/chartthemedark_p.h \ |
|
|||
52 | themes/chartthemebrownsand_p.h \ |
|
|||
53 | themes/chartthemebluencs_p.h \ |
|
|||
54 | themes/chartthemeicy_p.h \ |
|
|||
55 | themes/chartthemescientific_p.h |
|
|||
56 |
|
49 | |||
57 | HEADERS += $$PUBLIC_HEADERS |
|
50 | HEADERS += $$PUBLIC_HEADERS | |
58 | HEADERS += $$PRIVATE_HEADERS |
|
51 | HEADERS += $$PRIVATE_HEADERS | |
59 | HEADERS += $$THEMES |
|
52 | HEADERS += $$THEMES | |
60 | INCLUDEPATH += linechart \ |
|
53 | INCLUDEPATH += linechart \ | |
61 | barchart \ |
|
54 | barchart \ | |
62 | themes \ |
|
55 | themes \ | |
63 | . |
|
56 | . | |
64 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib |
|
57 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib | |
65 | MOC_DIR = $$CHART_BUILD_DIR/lib |
|
58 | MOC_DIR = $$CHART_BUILD_DIR/lib | |
66 | UI_DIR = $$CHART_BUILD_DIR/lib |
|
59 | UI_DIR = $$CHART_BUILD_DIR/lib | |
67 | RCC_DIR = $$CHART_BUILD_DIR/lib |
|
60 | RCC_DIR = $$CHART_BUILD_DIR/lib | |
68 | DEFINES += QTCOMMERCIALCHART_LIBRARY |
|
61 | DEFINES += QTCOMMERCIALCHART_LIBRARY | |
69 |
|
62 | |||
70 | #qt public headers |
|
63 | #qt public headers | |
71 | #this is very primitive and lame parser , TODO: make perl script insted |
|
64 | #this is very primitive and lame parser , TODO: make perl script insted | |
72 | !exists($$CHART_BUILD_PUBLIC_HEADER_DIR) |
|
65 | !exists($$CHART_BUILD_PUBLIC_HEADER_DIR) | |
73 | { |
|
66 | { | |
74 | system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR) |
|
67 | system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR) | |
75 | } |
|
68 | } | |
76 |
|
69 | |||
77 | for(file, PUBLIC_HEADERS) { |
|
70 | for(file, PUBLIC_HEADERS) { | |
78 | name = $$split(file,'/') |
|
71 | name = $$split(file,'/') | |
79 | name = $$last(name) |
|
72 | name = $$last(name) | |
80 | class = "$$cat($$file)" |
|
73 | class = "$$cat($$file)" | |
81 | class = $$find(class,class) |
|
74 | class = $$find(class,class) | |
82 | !isEmpty(class){ |
|
75 | !isEmpty(class){ | |
83 | class = $$split(class,QTCOMMERCIALCHART_EXPORT) |
|
76 | class = $$split(class,QTCOMMERCIALCHART_EXPORT) | |
84 | class = $$member(class,1) |
|
77 | class = $$member(class,1) | |
85 | class = $$split(class,' ') |
|
78 | class = $$split(class,' ') | |
86 | class = $$replace(class,' ','') |
|
79 | class = $$replace(class,' ','') | |
87 | class = $$member(class,0) |
|
80 | class = $$member(class,0) | |
88 | win32:{ |
|
81 | win32:{ | |
89 | command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" |
|
82 | command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | |
90 | }else{ |
|
83 | }else{ | |
91 | command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" |
|
84 | command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | |
92 | } |
|
85 | } | |
93 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class |
|
86 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class | |
94 | system($$command) |
|
87 | system($$command) | |
95 | } |
|
88 | } | |
96 | } |
|
89 | } | |
97 |
|
90 | |||
98 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart |
|
91 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart | |
99 | public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS |
|
92 | public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS | |
100 |
|
93 | |||
101 | target.path = $$[QT_INSTALL_LIBS] |
|
94 | target.path = $$[QT_INSTALL_LIBS] | |
102 | INSTALLS += target public_headers |
|
95 | INSTALLS += target public_headers | |
103 |
|
96 | |||
104 | install_build_public_headers.name = build_public_headers |
|
97 | install_build_public_headers.name = build_public_headers | |
105 | install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
98 | install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h | |
106 | install_build_public_headers.input = PUBLIC_HEADERS |
|
99 | install_build_public_headers.input = PUBLIC_HEADERS | |
107 | install_build_public_headers.commands = $$QMAKE_COPY \ |
|
100 | install_build_public_headers.commands = $$QMAKE_COPY \ | |
108 | ${QMAKE_FILE_NAME} \ |
|
101 | ${QMAKE_FILE_NAME} \ | |
109 | $$CHART_BUILD_PUBLIC_HEADER_DIR |
|
102 | $$CHART_BUILD_PUBLIC_HEADER_DIR | |
110 | install_build_public_headers.CONFIG += target_predeps \ |
|
103 | install_build_public_headers.CONFIG += target_predeps \ | |
111 | no_link |
|
104 | no_link | |
112 |
|
105 | |||
113 | install_build_private_headers.name = buld_private_headers |
|
106 | install_build_private_headers.name = buld_private_headers | |
114 | install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
107 | install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h | |
115 | install_build_private_headers.input = PRIVATE_HEADERS |
|
108 | install_build_private_headers.input = PRIVATE_HEADERS | |
116 | install_build_private_headers.commands = $$QMAKE_COPY \ |
|
109 | install_build_private_headers.commands = $$QMAKE_COPY \ | |
117 | ${QMAKE_FILE_NAME} \ |
|
110 | ${QMAKE_FILE_NAME} \ | |
118 | $$CHART_BUILD_PRIVATE_HEADER_DIR |
|
111 | $$CHART_BUILD_PRIVATE_HEADER_DIR | |
119 | install_build_private_headers.CONFIG += target_predeps \ |
|
112 | install_build_private_headers.CONFIG += target_predeps \ | |
120 | no_link |
|
113 | no_link | |
121 |
|
114 | |||
122 | QMAKE_EXTRA_COMPILERS += install_build_public_headers \ |
|
115 | QMAKE_EXTRA_COMPILERS += install_build_public_headers \ | |
123 | install_build_private_headers \ |
|
116 | install_build_private_headers \ | |
124 |
|
117 | |||
125 | chartversion.target = qchartversion_p.h |
|
118 | chartversion.target = qchartversion_p.h | |
126 | chartversion.commands = @echo \ |
|
119 | chartversion.commands = @echo \ | |
127 | "build_time" \ |
|
120 | "build_time" \ | |
128 | > \ |
|
121 | > \ | |
129 | $$chartversion.target; |
|
122 | $$chartversion.target; | |
130 | chartversion.depends = $$HEADERS \ |
|
123 | chartversion.depends = $$HEADERS \ | |
131 | $$SOURCES |
|
124 | $$SOURCES | |
132 | PRE_TARGETDEPS += qchartversion_p.h |
|
125 | PRE_TARGETDEPS += qchartversion_p.h | |
133 | QMAKE_CLEAN += qchartversion_p.h |
|
126 | QMAKE_CLEAN += qchartversion_p.h | |
134 | QMAKE_EXTRA_TARGETS += chartversion |
|
127 | QMAKE_EXTRA_TARGETS += chartversion | |
135 | unix:QMAKE_DISTCLEAN += -r \ |
|
128 | unix:QMAKE_DISTCLEAN += -r \ | |
136 | $$CHART_BUILD_HEADER_DIR \ |
|
129 | $$CHART_BUILD_HEADER_DIR \ | |
137 | $$CHART_BUILD_LIB_DIR |
|
130 | $$CHART_BUILD_LIB_DIR | |
138 | win32:QMAKE_DISTCLEAN += /Q \ |
|
131 | win32:QMAKE_DISTCLEAN += /Q \ | |
139 | $$CHART_BUILD_HEADER_DIR \ |
|
132 | $$CHART_BUILD_HEADER_DIR \ | |
140 | $$CHART_BUILD_LIB_DIR |
|
133 | $$CHART_BUILD_LIB_DIR | |
141 |
|
134 | |||
142 | # treat warnings as errors |
|
135 | # treat warnings as errors | |
143 | win32-msvc*: { |
|
136 | win32-msvc*: { | |
144 | QMAKE_CXXFLAGS += /WX |
|
137 | QMAKE_CXXFLAGS += /WX | |
145 | } else { |
|
138 | } else { | |
146 | QMAKE_CXXFLAGS += -Werror |
|
139 | QMAKE_CXXFLAGS += -Werror | |
147 | } |
|
140 | } |
@@ -1,4 +1,4 | |||||
1 | !include( ../test.pri ) { |
|
1 | !include( ../../test.pri ) { | |
2 | error( "Couldn't find the test.pri file!" ) |
|
2 | error( "Couldn't find the test.pri file!" ) | |
3 | } |
|
3 | } | |
4 | SOURCES += tst_chartdataset.cpp |
|
4 | SOURCES += tst_chartdataset.cpp |
@@ -1,4 +1,4 | |||||
1 | !include( ../test.pri ) { |
|
1 | !include( ../../test.pri ) { | |
2 | error( "Couldn't find the test.pri file!" ) |
|
2 | error( "Couldn't find the test.pri file!" ) | |
3 | } |
|
3 | } | |
4 | SOURCES += tst_domain.cpp |
|
4 | SOURCES += tst_domain.cpp |
@@ -1,26 +1,19 | |||||
1 |
!include( ../ |
|
1 | !include( ../test.pri ) { | |
2 |
error( "Couldn't find the |
|
2 | error( "Couldn't find the test.pri file!" ) | |
3 | } |
|
|||
4 | !include( ../../integrated.pri ) { |
|
|||
5 | error( "Couldn't find the integrated.pri file !") |
|
|||
6 | } |
|
3 | } | |
7 |
|
4 | |||
8 | TARGET = chartwidgettest |
|
5 | TARGET = chartwidgettest | |
9 | TEMPLATE = app |
|
6 | TEMPLATE = app | |
10 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
|||
11 |
|
7 | |||
12 | QT += core gui |
|
8 | QT += core gui | |
13 | contains(QT_MAJOR_VERSION, 5) { |
|
9 | contains(QT_MAJOR_VERSION, 5) { | |
14 | QT += widgets |
|
10 | QT += widgets | |
15 | } |
|
11 | } | |
16 |
|
12 | |||
17 | OBJECTS_DIR = tmp |
|
|||
18 | MOC_DIR = tmp |
|
|||
19 |
|
||||
20 | SOURCES += main.cpp \ |
|
13 | SOURCES += main.cpp \ | |
21 | mainwidget.cpp \ |
|
14 | mainwidget.cpp \ | |
22 | dataseriedialog.cpp |
|
15 | dataseriedialog.cpp | |
23 |
|
16 | |||
24 | HEADERS += \ |
|
17 | HEADERS += \ | |
25 | mainwidget.h \ |
|
18 | mainwidget.h \ | |
26 | dataseriedialog.h |
|
19 | dataseriedialog.h |
@@ -1,59 +1,52 | |||||
1 |
!include( ../ |
|
1 | !include( ../test.pri ) { | |
2 | error( "Couldn't find the common.pri file!" ) |
|
2 | error( "Couldn't find the common.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
|||
6 |
|
||||
7 | OBJECTS_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
|||
8 | MOC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
|||
9 | UI_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
|||
10 | RCC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
|||
11 |
|
||||
12 | integrated_build:{ |
|
5 | integrated_build:{ | |
13 | message(Please export QML_IMPORT_PATH=$$CHART_BUILD_LIB_DIR) |
|
6 | message(Please export QML_IMPORT_PATH=$$CHART_BUILD_LIB_DIR) | |
14 | } |
|
7 | } | |
15 |
|
8 | |||
16 | RESOURCES += \ |
|
9 | RESOURCES += \ | |
17 | resources.qrc |
|
10 | resources.qrc | |
18 |
|
11 | |||
19 | # Add more folders to ship with the application, here |
|
12 | # Add more folders to ship with the application, here | |
20 | folder_01.source = qml/qmlchart |
|
13 | folder_01.source = qml/qmlchart | |
21 | folder_01.target = qml |
|
14 | folder_01.target = qml | |
22 | DEPLOYMENTFOLDERS = folder_01 |
|
15 | DEPLOYMENTFOLDERS = folder_01 | |
23 |
|
16 | |||
24 | # Additional import path used to resolve QML modules in Creator's code model |
|
17 | # Additional import path used to resolve QML modules in Creator's code model | |
25 | QML_IMPORT_PATH = |
|
18 | QML_IMPORT_PATH = | |
26 |
|
19 | |||
27 | symbian:TARGET.UID3 = 0xE421236E |
|
20 | symbian:TARGET.UID3 = 0xE421236E | |
28 |
|
21 | |||
29 | # Smart Installer package's UID |
|
22 | # Smart Installer package's UID | |
30 | # This UID is from the protected range and therefore the package will |
|
23 | # This UID is from the protected range and therefore the package will | |
31 | # fail to install if self-signed. By default qmake uses the unprotected |
|
24 | # fail to install if self-signed. By default qmake uses the unprotected | |
32 | # range value if unprotected UID is defined for the application and |
|
25 | # range value if unprotected UID is defined for the application and | |
33 | # 0x2002CCCF value if protected UID is given to the application |
|
26 | # 0x2002CCCF value if protected UID is given to the application | |
34 | #symbian:DEPLOYMENT.installer_header = 0x2002CCCF |
|
27 | #symbian:DEPLOYMENT.installer_header = 0x2002CCCF | |
35 |
|
28 | |||
36 | # Allow network access on Symbian |
|
29 | # Allow network access on Symbian | |
37 | symbian:TARGET.CAPABILITY += NetworkServices |
|
30 | symbian:TARGET.CAPABILITY += NetworkServices | |
38 |
|
31 | |||
39 | # If your application uses the Qt Mobility libraries, uncomment the following |
|
32 | # If your application uses the Qt Mobility libraries, uncomment the following | |
40 | # lines and add the respective components to the MOBILITY variable. |
|
33 | # lines and add the respective components to the MOBILITY variable. | |
41 | # CONFIG += mobility |
|
34 | # CONFIG += mobility | |
42 | # MOBILITY += |
|
35 | # MOBILITY += | |
43 |
|
36 | |||
44 | # Speed up launching on MeeGo/Harmattan when using applauncherd daemon |
|
37 | # Speed up launching on MeeGo/Harmattan when using applauncherd daemon | |
45 | # CONFIG += qdeclarative-boostable |
|
38 | # CONFIG += qdeclarative-boostable | |
46 |
|
39 | |||
47 | # Add dependency to Symbian components |
|
40 | # Add dependency to Symbian components | |
48 | # CONFIG += qt-components |
|
41 | # CONFIG += qt-components | |
49 |
|
42 | |||
50 | # The .cpp file which was generated for your project. Feel free to hack it. |
|
43 | # The .cpp file which was generated for your project. Feel free to hack it. | |
51 | SOURCES += main.cpp |
|
44 | SOURCES += main.cpp | |
52 |
|
45 | |||
53 | # Please do not modify the following two lines. Required for deployment. |
|
46 | # Please do not modify the following two lines. Required for deployment. | |
54 | include(qmlapplicationviewer/qmlapplicationviewer.pri) |
|
47 | include(qmlapplicationviewer/qmlapplicationviewer.pri) | |
55 | qtcAddDeployment() |
|
48 | qtcAddDeployment() | |
56 |
|
49 | |||
57 | #HEADERS += \ |
|
50 | #HEADERS += \ | |
58 | # chart.h |
|
51 | # chart.h | |
59 |
|
52 |
@@ -1,19 +1,19 | |||||
1 |
!include( ../ |
|
1 | !include( ../common.pri ) { | |
2 | error( "Couldn't find the common.pri file!" ) |
|
2 | error( "Couldn't find the common.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 |
!include( ../ |
|
5 | !include( ../integrated.pri ) { | |
6 | error( "Couldn't find the integrated.pri file !") |
|
6 | error( "Couldn't find the integrated.pri file !") | |
7 | } |
|
7 | } | |
8 |
|
8 | |||
9 | TEMPLATE = app |
|
9 | TEMPLATE = app | |
10 | CONFIG += qtestlib |
|
10 | CONFIG += qtestlib | |
11 |
|
11 | |||
12 | DESTDIR = $$CHART_BUILD_BIN_DIR/test |
|
12 | DESTDIR = $$CHART_BUILD_BIN_DIR/test | |
13 | OBJECTS_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
13 | OBJECTS_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
14 | MOC_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
14 | MOC_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
15 | UI_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
15 | UI_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
16 | RCC_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
16 | RCC_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
17 |
|
17 | |||
18 | !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") |
|
18 | !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") | |
19 |
|
19 |
General Comments 0
You need to be logged in to leave comments.
Login now