@@ -1,40 +1,39 | |||||
1 | !include(config.pri) { |
|
1 | !include(config.pri) { | |
2 | error('Missing config.pri') |
|
2 | error('Missing config.pri') | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | TEMPLATE = subdirs |
|
5 | TEMPLATE = subdirs | |
6 | SUBDIRS = src qmlplugin examples demos test |
|
6 | SUBDIRS = src qmlplugin examples demos test | |
7 |
|
7 | |||
8 | development_build: message('Development build') |
|
8 | development_build: message('Development build') | |
9 |
|
9 | |||
10 | local_build:{ |
|
10 | !system_build:{ | |
11 | message('Configured for local build against local libs...') |
|
11 | message('Configured for local build against local libs...') | |
12 |
message('You can run "make" to build qchart library, examples |
|
12 | message('You can run "make" to build qchart library, examples, demos and plugin...') | |
|
13 | message('You can run "make install" to install qchart in qt sdk...') | |||
13 | } else { |
|
14 | } else { | |
14 | message('Running build aginst system libs...') |
|
15 | message('Running build aginst system libs...') | |
15 | message('Building only charts library...') |
|
16 | message('Building only charts library...') | |
16 | message('You can run "make install" to build and install charts.') |
|
|||
17 | message('Afterwards you can run "cd examples; qmake ; make " to build examples.') |
|
17 | message('Afterwards you can run "cd examples; qmake ; make " to build examples.') | |
18 | message('Run qmake CONFIG+=local_build' to build everything at once.) |
|
|||
19 | SUBDIRS = src |
|
18 | SUBDIRS = src | |
20 | } |
|
19 | } | |
21 |
|
20 | |||
22 | CONFIG += ordered |
|
21 | CONFIG += ordered | |
23 | QMAKE_CXXFLAGS += -g -Wall |
|
22 | QMAKE_CXXFLAGS += -g -Wall | |
24 | unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html |
|
23 | unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html | |
25 | win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html |
|
24 | win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html | |
26 |
|
25 | |||
27 | # install feature file |
|
26 | # install feature file | |
28 | feature.path = $$[QT_INSTALL_DATA]/mkspecs/features |
|
27 | feature.path = $$[QT_INSTALL_DATA]/mkspecs/features | |
29 | feature.files = $$PWD/features/qtcommercialchart.prf |
|
28 | feature.files = $$PWD/features/qtcommercialchart.prf | |
30 | INSTALLS += feature |
|
29 | INSTALLS += feature | |
31 |
|
30 | |||
32 | docs.target = docs |
|
31 | docs.target = docs | |
33 | win32:{ |
|
32 | win32:{ | |
34 | docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf |
|
33 | docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf | |
35 | }else{ |
|
34 | }else{ | |
36 | docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf |
|
35 | docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf | |
37 | } |
|
36 | } | |
38 | docs.depends = FORCE |
|
37 | docs.depends = FORCE | |
39 | QMAKE_EXTRA_TARGETS += docs |
|
38 | QMAKE_EXTRA_TARGETS += docs | |
40 |
|
39 |
@@ -1,51 +1,115 | |||||
1 |
|
1 | |||
2 | #check if shadow build |
|
2 | LIBRARY_NAME = QtCommercialChart | |
|
3 | ||||
|
4 | ##################### SHADOW CONFIG ################################################# | |||
|
5 | ||||
3 | !contains($${PWD}, $${OUT_PWD}){ |
|
6 | !contains($${PWD}, $${OUT_PWD}){ | |
4 | search = "$$PWD:::" |
|
7 | search = "$$PWD:::" | |
5 | temp = $$split(search,"/") |
|
8 | temp = $$split(search,"/") | |
6 | temp = $$last(temp) |
|
9 | temp = $$last(temp) | |
7 | path = $$replace(search,$$temp,'') |
|
10 | path = $$replace(search,$$temp,'') | |
8 | temp = $$split(OUT_PWD,$$path) |
|
11 | temp = $$split(OUT_PWD,$$path) | |
9 | temp = $$split(temp,'/') |
|
12 | temp = $$split(temp,'/') | |
10 | temp = $$first(temp) |
|
13 | temp = $$first(temp) | |
11 | path = "$${path}$${temp}" |
|
14 | path = "$${path}$${temp}" | |
12 | SHADOW=$$path |
|
15 | SHADOW=$$path | |
13 | }else{ |
|
16 | }else{ | |
14 | SHADOW=$$PWD |
|
17 | SHADOW=$$PWD | |
15 | CONFIG-=development_build |
|
18 | CONFIG-=development_build | |
16 | } |
|
19 | } | |
17 |
|
20 | |||
|
21 | ##################### BUILD PATHS ################################################## | |||
|
22 | ||||
18 | CHART_BUILD_PUBLIC_HEADER_DIR = $$SHADOW/include |
|
23 | CHART_BUILD_PUBLIC_HEADER_DIR = $$SHADOW/include | |
19 | CHART_BUILD_PRIVATE_HEADER_DIR = $$CHART_BUILD_PUBLIC_HEADER_DIR/private |
|
24 | CHART_BUILD_PRIVATE_HEADER_DIR = $$CHART_BUILD_PUBLIC_HEADER_DIR/private | |
20 | CHART_BUILD_LIB_DIR = $$SHADOW/lib |
|
25 | CHART_BUILD_LIB_DIR = $$SHADOW/lib | |
21 | CHART_BUILD_DIR = $$SHADOW/build |
|
26 | CHART_BUILD_DIR = $$SHADOW/build | |
22 | CHART_BUILD_BIN_DIR = $$SHADOW/bin |
|
27 | CHART_BUILD_BIN_DIR = $$SHADOW/bin | |
23 |
CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_ |
|
28 | CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_BIN_DIR/QtCommercial/Chart | |
24 | CHART_BUILD_DOC_DIR = $$SHADOW/doc |
|
29 | CHART_BUILD_DOC_DIR = $$SHADOW/doc | |
25 |
|
30 | |||
26 |
|
||||
27 | # hack to fix windows builds |
|
|||
28 | win32:{ |
|
31 | win32:{ | |
29 | CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\") |
|
32 | CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\") | |
30 | CHART_BUILD_PRIVATE_HEADER_DIR = $$replace(CHART_BUILD_PRIVATE_HEADER_DIR, "/","\\") |
|
33 | CHART_BUILD_PRIVATE_HEADER_DIR = $$replace(CHART_BUILD_PRIVATE_HEADER_DIR, "/","\\") | |
31 | CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") |
|
|||
32 | CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") |
|
34 | CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") | |
33 | CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") |
|
35 | CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") | |
34 | CHART_BUILD_PLUGIN_DIR = $$replace(CHART_BUILD_PLUGIN_DIR, "/","\\") |
|
36 | CHART_BUILD_PLUGIN_DIR = $$replace(CHART_BUILD_PLUGIN_DIR, "/","\\") | |
35 | CHART_BUILD_DOC_DIR = $$replace(CHART_BUILD_DOC_DIR, "/","\\") |
|
37 | CHART_BUILD_DOC_DIR = $$replace(CHART_BUILD_DOC_DIR, "/","\\") | |
|
38 | CHART_BUILD_LIB_DIR = CHART_BUILD_BIN_DIR | |||
36 | } |
|
39 | } | |
37 |
|
40 | |||
38 | mac: { |
|
41 | mac: { | |
39 | # TODO: The following qmake flags are a work-around to make QtCommercial Charts compile on |
|
42 | # TODO: The following qmake flags are a work-around to make QtCommercial Charts compile on | |
40 | # QtCommercial 4.8. On the other hand Charts builds successfully with Qt open source 4.8 |
|
43 | # QtCommercial 4.8. On the other hand Charts builds successfully with Qt open source 4.8 | |
41 | # without these definitions, so this is probably a configuration issue on QtCommercial 4.8; |
|
44 | # without these definitions, so this is probably a configuration issue on QtCommercial 4.8; | |
42 | # it should probably define the minimum OSX version to be 10.5... |
|
45 | # it should probably define the minimum OSX version to be 10.5... | |
43 | QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5 |
|
46 | QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5 | |
44 | QMAKE_LFLAGS *= -mmacosx-version-min=10.5 |
|
47 | QMAKE_LFLAGS *= -mmacosx-version-min=10.5 | |
45 | } |
|
48 | } | |
46 |
|
49 | |||
|
50 | ##################### DEVELOPMENT BUILD ################################################### | |||
|
51 | ||||
47 | development_build: { |
|
52 | development_build: { | |
48 | DEFINES+=DEVELOPMENT_BUILD |
|
53 | DEFINES+=DEVELOPMENT_BUILD | |
49 | CONFIG+=local_build |
|
|||
50 | CONFIG+=debug_and_release |
|
54 | CONFIG+=debug_and_release | |
|
55 | } | |||
|
56 | ||||
|
57 | ||||
|
58 | ##################### BUILD CONFIG ######################################################## | |||
|
59 | ||||
|
60 | !system_build:{ | |||
|
61 | ||||
|
62 | INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR | |||
|
63 | ||||
|
64 | !win32: { | |||
|
65 | LIBS += -L $$CHART_BUILD_LIB_DIR -Wl,-rpath,$$CHART_BUILD_LIB_DIR | |||
|
66 | }else{ | |||
|
67 | win32-msvc*: { | |||
|
68 | # hack fix for error: | |||
|
69 | # "LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'" | |||
|
70 | QMAKE_LIBDIR += $$CHART_BUILD_LIB_DIR | |||
|
71 | }else{ | |||
|
72 | LIBS += -L $$CHART_BUILD_LIB_DIR | |||
|
73 | } | |||
|
74 | } | |||
|
75 | ||||
|
76 | CONFIG(debug, debug|release) { | |||
|
77 | mac: LIBRARY_NAME = $$join(LIBRARY_NAME,,,_debug) | |||
|
78 | win32: LIBRARY_NAME = $$join(LIBRARY_NAME,,,d) | |||
|
79 | } | |||
|
80 | ||||
|
81 | LIBS += -l$$LIBRARY_NAME | |||
|
82 | ||||
|
83 | ||||
|
84 | mac: { | |||
|
85 | # This is a hack to make binaries to use the internal version of the QtCommercial Charts library on OSX | |||
|
86 | CHARTS_LIB_NAME = libQtCommercialChart.1.dylib | |||
|
87 | CONFIG(debug, debug|release) { | |||
|
88 | CHARTS_LIB_NAME = libQtCommercialChartd.1.dylib | |||
|
89 | } | |||
|
90 | BIN_TARGET_PATH = "" | |||
|
91 | exists ($$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET) { | |||
|
92 | BIN_TARGET_PATH = $$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET | |||
|
93 | } | |||
|
94 | exists ($$CHART_BUILD_BIN_DIR"/test/"$$TARGET".app/Contents/MacOS/"$$TARGET) { | |||
|
95 | # Executable in test folder | |||
|
96 | BIN_TARGET_PATH = $$CHART_BUILD_BIN_DIR"/test/"$$TARGET".app/Contents/MacOS/"$$TARGET | |||
|
97 | } | |||
|
98 | exists ($$CHART_BUILD_BIN_DIR"/test/tst_"$$TARGET".app/Contents/MacOS/tst_"$$TARGET) { | |||
|
99 | # Executable in test folder with custom target "tst_NNN" | |||
|
100 | BIN_TARGET_PATH = $$CHART_BUILD_BIN_DIR"/test/tst_"$$TARGET".app/Contents/MacOS/tst_"$$TARGET | |||
|
101 | } | |||
|
102 | exists($$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib") { | |||
|
103 | # Plugin | |||
|
104 | BIN_TARGET_PATH = $$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib" | |||
|
105 | } | |||
|
106 | !isEmpty (BIN_TARGET_PATH) { | |||
|
107 | QMAKE_POST_LINK += install_name_tool -change $$CHARTS_LIB_NAME $$CHART_BUILD_LIB_DIR"/"$$CHARTS_LIB_NAME $$BIN_TARGET_PATH | |||
|
108 | } | |||
|
109 | } | |||
|
110 | ||||
|
111 | }else { | |||
|
112 | ||||
|
113 | CONFIG += qtcommercialchart | |||
|
114 | ||||
51 | } No newline at end of file |
|
115 | } |
@@ -1,16 +1,12 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | !include( ../build.pri ) { |
|
|||
6 | error( "Couldn't find the build.pri file !") |
|
|||
7 | } |
|
|||
8 |
|
||||
9 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
5 | DESTDIR = $$CHART_BUILD_BIN_DIR | |
10 | OBJECTS_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
6 | OBJECTS_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
11 | MOC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
7 | MOC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
12 | UI_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
8 | UI_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
13 | RCC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
9 | RCC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
14 |
|
10 | |||
15 | TEMPLATE = app |
|
11 | TEMPLATE = app | |
16 | QT += core gui No newline at end of file |
|
12 | QT += core gui |
@@ -1,13 +1,9 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | !include( ../build.pri ) { |
|
|||
6 | error( "Couldn't find the build.pri file !") |
|
|||
7 | } |
|
|||
8 |
|
||||
9 | TEMPLATE = subdirs |
|
5 | TEMPLATE = subdirs | |
10 | SUBDIRS += chartthemes \ |
|
6 | SUBDIRS += chartthemes \ | |
11 | piechartcustomization \ |
|
7 | piechartcustomization \ | |
12 | qmlchart \ |
|
8 | qmlchart \ | |
13 | dynamicspline |
|
9 | dynamicspline |
@@ -1,146 +1,13 | |||||
1 | # checksum 0x368d version 0x60010 |
|
|||
2 | # This file was generated by the Qt Quick Application wizard of Qt Creator. |
|
|||
3 | # The code below adds the QmlApplicationViewer to the project and handles the |
|
|||
4 | # activation of QML debugging. |
|
|||
5 | # It is recommended not to modify this file, since newer versions of Qt Creator |
|
|||
6 | # may offer an updated version of it. |
|
|||
7 |
|
||||
8 | QT += declarative |
|
1 | QT += declarative | |
9 |
|
2 | |||
10 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
11 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
4 | HEADERS += $$PWD/qmlapplicationviewer.h | |
12 | INCLUDEPATH += $$PWD |
|
5 | INCLUDEPATH += $$PWD | |
13 |
|
6 | |||
14 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
15 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
8 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
16 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
17 | } else { |
|
10 | } else { | |
18 | DEFINES -= QMLJSDEBUGGER |
|
11 | DEFINES -= QMLJSDEBUGGER | |
19 | } |
|
12 | } | |
20 |
|
13 | |||
21 | contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) { |
|
|||
22 | DEFINES += HARMATTAN_BOOSTER |
|
|||
23 | } |
|
|||
24 | # This file was generated by an application wizard of Qt Creator. |
|
|||
25 | # The code below handles deployment to Symbian and Maemo, aswell as copying |
|
|||
26 | # of the application data to shadow build directories on desktop. |
|
|||
27 | # It is recommended not to modify this file, since newer versions of Qt Creator |
|
|||
28 | # may offer an updated version of it. |
|
|||
29 |
|
||||
30 | defineTest(qtcAddDeployment) { |
|
|||
31 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
|||
32 | item = item$${deploymentfolder} |
|
|||
33 | itemsources = $${item}.sources |
|
|||
34 | $$itemsources = $$eval($${deploymentfolder}.source) |
|
|||
35 | itempath = $${item}.path |
|
|||
36 | $$itempath= $$eval($${deploymentfolder}.target) |
|
|||
37 | export($$itemsources) |
|
|||
38 | export($$itempath) |
|
|||
39 | DEPLOYMENT += $$item |
|
|||
40 | } |
|
|||
41 |
|
||||
42 | MAINPROFILEPWD = $$PWD |
|
|||
43 |
|
||||
44 | symbian { |
|
|||
45 | isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg |
|
|||
46 | isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 |
|
|||
47 | } else:win32 { |
|
|||
48 | copyCommand = |
|
|||
49 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
|||
50 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) |
|
|||
51 | source = $$replace(source, /, \\) |
|
|||
52 | sourcePathSegments = $$split(source, \\) |
|
|||
53 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) |
|
|||
54 | target = $$replace(target, /, \\) |
|
|||
55 | !isEqual(source,$$target) { |
|
|||
56 | !isEmpty(copyCommand):copyCommand += && |
|
|||
57 | isEqual(QMAKE_DIR_SEP, \\) { |
|
|||
58 | copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" |
|
|||
59 | } else { |
|
|||
60 | source = $$replace(source, \\\\, /) |
|
|||
61 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) |
|
|||
62 | target = $$replace(target, \\\\, /) |
|
|||
63 | copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" |
|
|||
64 | } |
|
|||
65 | } |
|
|||
66 | } |
|
|||
67 | !isEmpty(copyCommand) { |
|
|||
68 | copyCommand = @echo Copying application data... && $$copyCommand |
|
|||
69 | copydeploymentfolders.commands = $$copyCommand |
|
|||
70 | first.depends = $(first) copydeploymentfolders |
|
|||
71 | export(first.depends) |
|
|||
72 | export(copydeploymentfolders.commands) |
|
|||
73 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders |
|
|||
74 | } |
|
|||
75 | } else:unix { |
|
|||
76 | maemo5 { |
|
|||
77 | desktopfile.files = $${TARGET}.desktop |
|
|||
78 | desktopfile.path = /usr/share/applications/hildon |
|
|||
79 | icon.files = $${TARGET}64.png |
|
|||
80 | icon.path = /usr/share/icons/hicolor/64x64/apps |
|
|||
81 | } else:!isEmpty(MEEGO_VERSION_MAJOR) { |
|
|||
82 | desktopfile.files = $${TARGET}_harmattan.desktop |
|
|||
83 | desktopfile.path = /usr/share/applications |
|
|||
84 | icon.files = $${TARGET}80.png |
|
|||
85 | icon.path = /usr/share/icons/hicolor/80x80/apps |
|
|||
86 | } else { # Assumed to be a Desktop Unix |
|
|||
87 | copyCommand = |
|
|||
88 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
|||
89 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) |
|
|||
90 | source = $$replace(source, \\\\, /) |
|
|||
91 | macx { |
|
|||
92 | target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) |
|
|||
93 | } else { |
|
|||
94 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) |
|
|||
95 | } |
|
|||
96 | target = $$replace(target, \\\\, /) |
|
|||
97 | sourcePathSegments = $$split(source, /) |
|
|||
98 | targetFullPath = $$target/$$last(sourcePathSegments) |
|
|||
99 | !isEqual(source,$$targetFullPath) { |
|
|||
100 | !isEmpty(copyCommand):copyCommand += && |
|
|||
101 | copyCommand += $(MKDIR) \"$$target\" |
|
|||
102 | copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" |
|
|||
103 | } |
|
|||
104 | } |
|
|||
105 | !isEmpty(copyCommand) { |
|
|||
106 | copyCommand = @echo Copying application data... && $$copyCommand |
|
|||
107 | copydeploymentfolders.commands = $$copyCommand |
|
|||
108 | first.depends = $(first) copydeploymentfolders |
|
|||
109 | export(first.depends) |
|
|||
110 | export(copydeploymentfolders.commands) |
|
|||
111 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders |
|
|||
112 | } |
|
|||
113 | } |
|
|||
114 | installPrefix = /opt/$${TARGET} |
|
|||
115 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
|||
116 | item = item$${deploymentfolder} |
|
|||
117 | itemfiles = $${item}.files |
|
|||
118 | $$itemfiles = $$eval($${deploymentfolder}.source) |
|
|||
119 | itempath = $${item}.path |
|
|||
120 | $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) |
|
|||
121 | export($$itemfiles) |
|
|||
122 | export($$itempath) |
|
|||
123 | INSTALLS += $$item |
|
|||
124 | } |
|
|||
125 |
|
||||
126 | !isEmpty(desktopfile.path) { |
|
|||
127 | export(icon.files) |
|
|||
128 | export(icon.path) |
|
|||
129 | export(desktopfile.files) |
|
|||
130 | export(desktopfile.path) |
|
|||
131 | INSTALLS += icon desktopfile |
|
|||
132 | } |
|
|||
133 |
|
||||
134 | target.path = $${installPrefix}/bin |
|
|||
135 | export(target.path) |
|
|||
136 | INSTALLS += target |
|
|||
137 | } |
|
|||
138 |
|
||||
139 | export (ICON) |
|
|||
140 | export (INSTALLS) |
|
|||
141 | export (DEPLOYMENT) |
|
|||
142 | export (TARGET.EPOCHEAPSIZE) |
|
|||
143 | export (TARGET.CAPABILITY) |
|
|||
144 | export (LIBS) |
|
|||
145 | export (QMAKE_EXTRA_TARGETS) |
|
|||
146 | } |
|
@@ -1,48 +1,9 | |||||
1 | !include( ../demos.pri ) { |
|
1 | !include( ../demos.pri ) { | |
2 | error( "Couldn't find the demos.pri file!" ) |
|
2 | error( "Couldn't find the demos.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | integrated_build:{ |
|
5 | RESOURCES += resources.qrc | |
6 | message(Please export QML_IMPORT_PATH=$$CHART_BUILD_LIB_DIR) |
|
|||
7 | } |
|
|||
8 |
|
||||
9 | RESOURCES += \ |
|
|||
10 | resources.qrc |
|
|||
11 |
|
||||
12 | # Add more folders to ship with the application, here |
|
|||
13 | folder_01.source = qml/qmlchart |
|
|||
14 | folder_01.target = qml |
|
|||
15 | DEPLOYMENTFOLDERS = folder_01 |
|
|||
16 |
|
||||
17 | # Additional import path used to resolve QML modules in Creator's code model |
|
|||
18 | QML_IMPORT_PATH = |
|
|||
19 |
|
||||
20 | symbian:TARGET.UID3 = 0xE421236E |
|
|||
21 |
|
||||
22 | # Smart Installer package's UID |
|
|||
23 | # This UID is from the protected range and therefore the package will |
|
|||
24 | # fail to install if self-signed. By default qmake uses the unprotected |
|
|||
25 | # range value if unprotected UID is defined for the application and |
|
|||
26 | # 0x2002CCCF value if protected UID is given to the application |
|
|||
27 | #symbian:DEPLOYMENT.installer_header = 0x2002CCCF |
|
|||
28 |
|
||||
29 | # Allow network access on Symbian |
|
|||
30 | symbian:TARGET.CAPABILITY += NetworkServices |
|
|||
31 |
|
||||
32 | # If your application uses the Qt Mobility libraries, uncomment the following |
|
|||
33 | # lines and add the respective components to the MOBILITY variable. |
|
|||
34 | # CONFIG += mobility |
|
|||
35 | # MOBILITY += |
|
|||
36 |
|
||||
37 | # Speed up launching on MeeGo/Harmattan when using applauncherd daemon |
|
|||
38 | # CONFIG += qdeclarative-boostable |
|
|||
39 |
|
||||
40 | # Add dependency to Symbian components |
|
|||
41 | # CONFIG += qt-components |
|
|||
42 |
|
||||
43 | # The .cpp file which was generated for your project. Feel free to hack it. |
|
|||
44 | SOURCES += main.cpp |
|
6 | SOURCES += main.cpp | |
45 |
|
7 | |||
46 | # Please do not modify the following two lines. Required for deployment. |
|
|||
47 | include(qmlapplicationviewer/qmlapplicationviewer.pri) |
|
8 | include(qmlapplicationviewer/qmlapplicationviewer.pri) | |
48 | qtcAddDeployment() |
|
9 |
@@ -1,16 +1,12 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | !include( ../build.pri ) { |
|
|||
6 | error( "Couldn't find the build.pri file !") |
|
|||
7 | } |
|
|||
8 |
|
||||
9 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
5 | DESTDIR = $$CHART_BUILD_BIN_DIR | |
10 | OBJECTS_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
6 | OBJECTS_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
11 | MOC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
7 | MOC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
12 | UI_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
8 | UI_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
13 | RCC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET |
|
9 | RCC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET | |
14 |
|
10 | |||
15 | TEMPLATE = app |
|
11 | TEMPLATE = app | |
16 | QT += core gui No newline at end of file |
|
12 | QT += core gui |
@@ -1,33 +1,29 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | !include( ../build.pri ) { |
|
|||
6 | error( "Couldn't find the build.pri file !") |
|
|||
7 | } |
|
|||
8 |
|
||||
9 | TEMPLATE = subdirs |
|
5 | TEMPLATE = subdirs | |
10 | SUBDIRS += \ |
|
6 | SUBDIRS += \ | |
11 | areachart \ |
|
7 | areachart \ | |
12 | barchart \ |
|
8 | barchart \ | |
13 | customchart \ |
|
9 | customchart \ | |
14 | linechart \ |
|
10 | linechart \ | |
15 | percentbarchart \ |
|
11 | percentbarchart \ | |
16 | piechart \ |
|
12 | piechart \ | |
17 | piechartdrilldown \ |
|
13 | piechartdrilldown \ | |
18 | presenterchart \ |
|
14 | presenterchart \ | |
19 | scatterchart \ |
|
15 | scatterchart \ | |
20 | scatterinteractions \ |
|
16 | scatterinteractions \ | |
21 | splinechart \ |
|
17 | splinechart \ | |
22 | stackedbarchart \ |
|
18 | stackedbarchart \ | |
23 | stackedbarchartdrilldown \ |
|
19 | stackedbarchartdrilldown \ | |
24 | zoomlinechart \ |
|
20 | zoomlinechart \ | |
25 | modeldata |
|
21 | modeldata | |
26 |
|
22 | |||
27 |
|
23 | |||
28 |
|
24 | |||
29 |
|
25 | |||
30 |
|
26 | |||
31 |
|
27 | |||
32 |
|
28 | |||
33 |
|
29 |
@@ -1,51 +1,60 | |||||
1 | TEMPLATE = lib |
|
1 | TEMPLATE = lib | |
2 | TARGET = qtcommercialchartqml |
|
2 | TARGET = qtcommercialchartqml | |
3 | CONFIG += qt plugin |
|
3 | CONFIG += qt plugin | |
4 | QT += declarative |
|
4 | QT += declarative | |
5 |
|
5 | |||
6 | !include( ../config.pri ) { |
|
6 | !include( ../config.pri ) { | |
7 |
error( "Couldn't find the co |
|
7 | error( "Couldn't find the config.pri file!" ) | |
8 | } |
|
|||
9 | !include( ../build.pri ) { |
|
|||
10 | error( "Couldn't find the build.pri file !") |
|
|||
11 | } |
|
8 | } | |
12 |
|
9 | |||
13 | DESTDIR = $$CHART_BUILD_PLUGIN_DIR |
|
10 | DESTDIR = $$CHART_BUILD_PLUGIN_DIR | |
14 | contains(QT_MAJOR_VERSION, 5) { |
|
11 | contains(QT_MAJOR_VERSION, 5) { | |
15 | # TODO: QtQuick2 not supported by the implementation currently |
|
12 | # TODO: QtQuick2 not supported by the implementation currently | |
16 | DEFINES += QTQUICK2 |
|
13 | DEFINES += QTQUICK2 | |
17 | } |
|
14 | } | |
18 |
|
15 | |||
19 | OBJECTS_DIR = $$CHART_BUILD_DIR/plugin |
|
16 | OBJECTS_DIR = $$CHART_BUILD_DIR/plugin | |
20 | MOC_DIR = $$CHART_BUILD_DIR/plugin |
|
17 | MOC_DIR = $$CHART_BUILD_DIR/plugin | |
21 | UI_DIR = $$CHART_BUILD_DIR/plugin |
|
18 | UI_DIR = $$CHART_BUILD_DIR/plugin | |
22 | RCC_DIR = $$CHART_BUILD_DIR/plugin |
|
19 | RCC_DIR = $$CHART_BUILD_DIR/plugin | |
23 |
|
20 | |||
24 | SOURCES += \ |
|
21 | SOURCES += \ | |
25 | plugin.cpp \ |
|
22 | plugin.cpp \ | |
26 | declarativechart.cpp \ |
|
23 | declarativechart.cpp \ | |
27 | declarativexyseries.cpp \ |
|
24 | declarativexyseries.cpp \ | |
28 | declarativexypoint.cpp \ |
|
25 | declarativexypoint.cpp \ | |
29 | declarativelineseries.cpp \ |
|
26 | declarativelineseries.cpp \ | |
30 | declarativesplineseries.cpp \ |
|
27 | declarativesplineseries.cpp \ | |
31 | declarativeareaseries.cpp \ |
|
28 | declarativeareaseries.cpp \ | |
32 | declarativescatterseries.cpp \ |
|
29 | declarativescatterseries.cpp \ | |
33 | declarativepieseries.cpp \ |
|
30 | declarativepieseries.cpp \ | |
34 | declarativebarseries.cpp |
|
31 | declarativebarseries.cpp | |
35 | HEADERS += \ |
|
32 | HEADERS += \ | |
36 | declarativechart.h \ |
|
33 | declarativechart.h \ | |
37 | declarativexyseries.h \ |
|
34 | declarativexyseries.h \ | |
38 | declarativexypoint.h \ |
|
35 | declarativexypoint.h \ | |
39 | declarativelineseries.h \ |
|
36 | declarativelineseries.h \ | |
40 | declarativesplineseries.h \ |
|
37 | declarativesplineseries.h \ | |
41 | declarativeareaseries.h \ |
|
38 | declarativeareaseries.h \ | |
42 | declarativescatterseries.h \ |
|
39 | declarativescatterseries.h \ | |
43 | declarativepieseries.h \ |
|
40 | declarativepieseries.h \ | |
44 | declarativebarseries.h |
|
41 | declarativebarseries.h | |
45 |
|
42 | |||
46 | TARGETPATH = QtCommercial/Chart |
|
43 | TARGETPATH = QtCommercial/Chart | |
47 | target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH |
|
44 | target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH | |
48 | qmldir.files += $$PWD/qmldir |
|
45 | qmldir.files += $$PWD/qmldir | |
49 | qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH |
|
46 | qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH | |
50 |
|
||||
51 | INSTALLS += target qmldir |
|
47 | INSTALLS += target qmldir | |
|
48 | ||||
|
49 | !mac { | |||
|
50 | FILE = $$PWD/qmldir | |||
|
51 | win32:{FILE = $$replace(FILE, "/","\\")} | |||
|
52 | QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_PLUGIN_DIR | |||
|
53 | }else{ | |||
|
54 | # Hack to make qml plugins available as internal build versions | |||
|
55 | exists($$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib") { | |||
|
56 | QMAKE_POST_LINK += " & $$QMAKE_COPY qmldir $$CHART_BUILD_PLUGIN_DIR" | |||
|
57 | } | |||
|
58 | } | |||
|
59 | ||||
|
60 |
@@ -1,169 +1,176 | |||||
1 | !include( ../config.pri ):error( Couldn't find the config.pri file! ) |
|
1 | !include( ../config.pri ):error( Couldn't find the config.pri file! ) | |
2 | TARGET = QtCommercialChart |
|
2 | ||
|
3 | TARGET = $$LIBRARY_NAME | |||
3 | DESTDIR = $$CHART_BUILD_LIB_DIR |
|
4 | DESTDIR = $$CHART_BUILD_LIB_DIR | |
4 | TEMPLATE = lib |
|
5 | TEMPLATE = lib | |
5 |
QT |
|
6 | QT = core gui | |
6 | gui |
|
7 | ||
7 | win32-msvc*: LIBS += User32.lib |
|
8 | win32-msvc*: LIBS += User32.lib | |
8 | CONFIG += debug_and_release |
|
9 | ||
9 |
CONFIG(debug, debug|release) |
|
10 | CONFIG(debug, debug|release) { | |
|
11 | mac: TARGET = $$join(TARGET,,,_debug) | |||
|
12 | win32: TARGET = $$join(TARGET,,d) | |||
|
13 | } | |||
|
14 | ||||
|
15 | LIBS -= -l$$LIBRARY_NAME | |||
|
16 | ||||
10 | SOURCES += \ |
|
17 | SOURCES += \ | |
11 | $$PWD/chartdataset.cpp \ |
|
18 | $$PWD/chartdataset.cpp \ | |
12 | $$PWD/chartpresenter.cpp \ |
|
19 | $$PWD/chartpresenter.cpp \ | |
13 | $$PWD/charttheme.cpp \ |
|
20 | $$PWD/charttheme.cpp \ | |
14 | $$PWD/domain.cpp \ |
|
21 | $$PWD/domain.cpp \ | |
15 | $$PWD/qchart.cpp \ |
|
22 | $$PWD/qchart.cpp \ | |
16 | $$PWD/qchartview.cpp \ |
|
23 | $$PWD/qchartview.cpp \ | |
17 | $$PWD/qabstractseries.cpp \ |
|
24 | $$PWD/qabstractseries.cpp \ | |
18 | $$PWD/chartbackground.cpp \ |
|
25 | $$PWD/chartbackground.cpp \ | |
19 | $$PWD/chart.cpp \ |
|
26 | $$PWD/chart.cpp \ | |
20 | $$PWD/scroller.cpp |
|
27 | $$PWD/scroller.cpp | |
21 | PRIVATE_HEADERS += \ |
|
28 | PRIVATE_HEADERS += \ | |
22 | $$PWD/chartdataset_p.h \ |
|
29 | $$PWD/chartdataset_p.h \ | |
23 | $$PWD/chartitem_p.h \ |
|
30 | $$PWD/chartitem_p.h \ | |
24 | $$PWD/chartpresenter_p.h \ |
|
31 | $$PWD/chartpresenter_p.h \ | |
25 | $$PWD/charttheme_p.h \ |
|
32 | $$PWD/charttheme_p.h \ | |
26 | $$PWD/domain_p.h \ |
|
33 | $$PWD/domain_p.h \ | |
27 | $$PWD/chartbackground_p.h \ |
|
34 | $$PWD/chartbackground_p.h \ | |
28 | $$PWD/chart_p.h \ |
|
35 | $$PWD/chart_p.h \ | |
29 | $$PWD/chartconfig_p.h \ |
|
36 | $$PWD/chartconfig_p.h \ | |
30 | $$PWD/qchart_p.h \ |
|
37 | $$PWD/qchart_p.h \ | |
31 | $$PWD/qchartview_p.h \ |
|
38 | $$PWD/qchartview_p.h \ | |
32 | $$PWD/scroller_p.h \ |
|
39 | $$PWD/scroller_p.h \ | |
33 | $$PWD/qabstractseries_p.h |
|
40 | $$PWD/qabstractseries_p.h | |
34 | PUBLIC_HEADERS += \ |
|
41 | PUBLIC_HEADERS += \ | |
35 | $$PWD/qchart.h \ |
|
42 | $$PWD/qchart.h \ | |
36 | $$PWD/qchartglobal.h \ |
|
43 | $$PWD/qchartglobal.h \ | |
37 | $$PWD/qabstractseries.h \ |
|
44 | $$PWD/qabstractseries.h \ | |
38 | $$PWD/qchartview.h |
|
45 | $$PWD/qchartview.h | |
39 |
|
46 | |||
40 | include(animations/animations.pri) |
|
47 | include(animations/animations.pri) | |
41 | include(areachart/areachart.pri) |
|
48 | include(areachart/areachart.pri) | |
42 | include(axis/axis.pri) |
|
49 | include(axis/axis.pri) | |
43 | include(barchart/barchart.pri) |
|
50 | include(barchart/barchart.pri) | |
44 | include(legend/legend.pri) |
|
51 | include(legend/legend.pri) | |
45 | include(linechart/linechart.pri) |
|
52 | include(linechart/linechart.pri) | |
46 | include(piechart/piechart.pri) |
|
53 | include(piechart/piechart.pri) | |
47 | include(scatterseries/scatter.pri) |
|
54 | include(scatterseries/scatter.pri) | |
48 | include(splinechart/splinechart.pri) |
|
55 | include(splinechart/splinechart.pri) | |
49 | include(themes/themes.pri) |
|
56 | include(themes/themes.pri) | |
50 | include(xychart/xychart.pri) |
|
57 | include(xychart/xychart.pri) | |
51 |
|
58 | |||
52 | HEADERS += $$PUBLIC_HEADERS |
|
59 | HEADERS += $$PUBLIC_HEADERS | |
53 | HEADERS += $$PRIVATE_HEADERS |
|
60 | HEADERS += $$PRIVATE_HEADERS | |
54 | HEADERS += $$THEMES |
|
61 | HEADERS += $$THEMES | |
55 | INCLUDEPATH += ../include . |
|
62 | INCLUDEPATH += ../include . | |
56 |
|
63 | |||
57 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib |
|
64 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib | |
58 | MOC_DIR = $$CHART_BUILD_DIR/lib |
|
65 | MOC_DIR = $$CHART_BUILD_DIR/lib | |
59 | UI_DIR = $$CHART_BUILD_DIR/lib |
|
66 | UI_DIR = $$CHART_BUILD_DIR/lib | |
60 | RCC_DIR = $$CHART_BUILD_DIR/lib |
|
67 | RCC_DIR = $$CHART_BUILD_DIR/lib | |
61 | DEFINES += QTCOMMERCIALCHART_LIBRARY |
|
68 | DEFINES += QTCOMMERCIALCHART_LIBRARY | |
62 |
|
69 | |||
63 | #qt public headers |
|
70 | #qt public headers | |
64 | #this is very primitive and lame parser , TODO: make perl script insted |
|
71 | #this is very primitive and lame parser , TODO: make perl script insted | |
65 | !exists($$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal) |
|
72 | !exists($$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal) | |
66 | { |
|
73 | { | |
67 | system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR) |
|
74 | system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR) | |
68 | win32:{ |
|
75 | win32:{ | |
69 | command = "echo $${LITERAL_HASH}include \"qchartglobal.h\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal" |
|
76 | command = "echo $${LITERAL_HASH}include \"qchartglobal.h\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal" | |
70 | }else{ |
|
77 | }else{ | |
71 | command = "echo \"$${LITERAL_HASH}include \\\"qchartglobal.h\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal" |
|
78 | command = "echo \"$${LITERAL_HASH}include \\\"qchartglobal.h\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal" | |
72 | } |
|
79 | } | |
73 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal |
|
80 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal | |
74 | system($$command) |
|
81 | system($$command) | |
75 | } |
|
82 | } | |
76 |
|
83 | |||
77 | for(file, PUBLIC_HEADERS) { |
|
84 | for(file, PUBLIC_HEADERS) { | |
78 | name = $$split(file,'/') |
|
85 | name = $$split(file,'/') | |
79 | name = $$last(name) |
|
86 | name = $$last(name) | |
80 | class = "$$cat($$file)" |
|
87 | class = "$$cat($$file)" | |
81 | class = $$find(class,class) |
|
88 | class = $$find(class,class) | |
82 | !isEmpty(class){ |
|
89 | !isEmpty(class){ | |
83 | class = $$split(class,QTCOMMERCIALCHART_EXPORT) |
|
90 | class = $$split(class,QTCOMMERCIALCHART_EXPORT) | |
84 | class = $$member(class,1) |
|
91 | class = $$member(class,1) | |
85 | class = $$split(class,' ') |
|
92 | class = $$split(class,' ') | |
86 | class = $$replace(class,' ','') |
|
93 | class = $$replace(class,' ','') | |
87 | class = $$member(class,0) |
|
94 | class = $$member(class,0) | |
88 | win32:{ |
|
95 | win32:{ | |
89 | command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" |
|
96 | command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | |
90 | }else{ |
|
97 | }else{ | |
91 | command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" |
|
98 | command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | |
92 | } |
|
99 | } | |
93 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class |
|
100 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class | |
94 | system($$command) |
|
101 | system($$command) | |
95 | } |
|
102 | } | |
96 | } |
|
103 | } | |
97 |
|
104 | |||
98 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart |
|
105 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart | |
99 | public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS |
|
106 | public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS | |
100 |
|
107 | |||
101 | target.path = $$[QT_INSTALL_LIBS] |
|
108 | target.path = $$[QT_INSTALL_LIBS] | |
102 | INSTALLS += target public_headers |
|
109 | INSTALLS += target public_headers | |
103 |
|
110 | |||
104 | install_build_public_headers.name = build_public_headers |
|
111 | install_build_public_headers.name = build_public_headers | |
105 | install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
112 | install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h | |
106 | install_build_public_headers.input = PUBLIC_HEADERS |
|
113 | install_build_public_headers.input = PUBLIC_HEADERS | |
107 | install_build_public_headers.commands = $$QMAKE_COPY \ |
|
114 | install_build_public_headers.commands = $$QMAKE_COPY \ | |
108 | ${QMAKE_FILE_NAME} \ |
|
115 | ${QMAKE_FILE_NAME} \ | |
109 | $$CHART_BUILD_PUBLIC_HEADER_DIR |
|
116 | $$CHART_BUILD_PUBLIC_HEADER_DIR | |
110 | install_build_public_headers.CONFIG += target_predeps \ |
|
117 | install_build_public_headers.CONFIG += target_predeps \ | |
111 | no_link |
|
118 | no_link | |
112 |
|
119 | |||
113 | install_build_private_headers.name = buld_private_headers |
|
120 | install_build_private_headers.name = buld_private_headers | |
114 | install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
121 | install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h | |
115 | install_build_private_headers.input = PRIVATE_HEADERS |
|
122 | install_build_private_headers.input = PRIVATE_HEADERS | |
116 | install_build_private_headers.commands = $$QMAKE_COPY \ |
|
123 | install_build_private_headers.commands = $$QMAKE_COPY \ | |
117 | ${QMAKE_FILE_NAME} \ |
|
124 | ${QMAKE_FILE_NAME} \ | |
118 | $$CHART_BUILD_PRIVATE_HEADER_DIR |
|
125 | $$CHART_BUILD_PRIVATE_HEADER_DIR | |
119 | install_build_private_headers.CONFIG += target_predeps \ |
|
126 | install_build_private_headers.CONFIG += target_predeps \ | |
120 | no_link |
|
127 | no_link | |
121 |
|
128 | |||
122 | QMAKE_EXTRA_COMPILERS += install_build_public_headers \ |
|
129 | QMAKE_EXTRA_COMPILERS += install_build_public_headers \ | |
123 | install_build_private_headers \ |
|
130 | install_build_private_headers \ | |
124 |
|
131 | |||
125 | # There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly. |
|
132 | # There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly. | |
126 | # This is the case at least with shadow builds. |
|
133 | # This is the case at least with shadow builds. | |
127 | # http://qt-project.org/wiki/jom |
|
134 | # http://qt-project.org/wiki/jom | |
128 |
|
135 | |||
129 | development_build:!win32-msvc*:{ |
|
136 | development_build:!win32-msvc*:{ | |
130 | chartversion.target = $$PWD/qchartversion_p.h |
|
137 | chartversion.target = $$PWD/qchartversion_p.h | |
131 |
|
138 | |||
132 | unix:{ |
|
139 | unix:{ | |
133 | chartversion.commands = @echo \ |
|
140 | chartversion.commands = @echo \ | |
134 | \" $${LITERAL_HASH}ifndef QCHARTVERSION_P_H\\n\ |
|
141 | \" $${LITERAL_HASH}ifndef QCHARTVERSION_P_H\\n\ | |
135 | $${LITERAL_HASH}define QCHARTVERSION_P_H\\n\ |
|
142 | $${LITERAL_HASH}define QCHARTVERSION_P_H\\n\ | |
136 | const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" ; \\n\ |
|
143 | const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" ; \\n\ | |
137 | const char *gitHead = \\\"`git rev-parse HEAD`\\\" ; \\n \ |
|
144 | const char *gitHead = \\\"`git rev-parse HEAD`\\\" ; \\n \ | |
138 | $${LITERAL_HASH}endif \" \ |
|
145 | $${LITERAL_HASH}endif \" \ | |
139 | > \ |
|
146 | > \ | |
140 | $$chartversion.target; |
|
147 | $$chartversion.target; | |
141 | }else{ |
|
148 | }else{ | |
142 | chartversion.commands = @echo \ |
|
149 | chartversion.commands = @echo \ | |
143 | "const char *buildTime = \"%date%_%time%\" ; \ |
|
150 | "const char *buildTime = \"%date%_%time%\" ; \ | |
144 | const char *gitHead = \"unknown\" ; " \ |
|
151 | const char *gitHead = \"unknown\" ; " \ | |
145 | > \ |
|
152 | > \ | |
146 | $$chartversion.target |
|
153 | $$chartversion.target | |
147 | } |
|
154 | } | |
148 |
|
155 | |||
149 | chartversion.depends = $$HEADERS \ |
|
156 | chartversion.depends = $$HEADERS \ | |
150 | $$SOURCES |
|
157 | $$SOURCES | |
151 |
|
158 | |||
152 | PRE_TARGETDEPS += $$chartversion.target |
|
159 | PRE_TARGETDEPS += $$chartversion.target | |
153 | QMAKE_CLEAN += $$PWD/qchartversion_p.h |
|
160 | QMAKE_CLEAN += $$PWD/qchartversion_p.h | |
154 | QMAKE_EXTRA_TARGETS += chartversion |
|
161 | QMAKE_EXTRA_TARGETS += chartversion | |
155 | } |
|
162 | } | |
156 |
|
163 | |||
157 | unix:QMAKE_DISTCLEAN += -r \ |
|
164 | unix:QMAKE_DISTCLEAN += -r \ | |
158 | $$CHART_BUILD_HEADER_DIR \ |
|
165 | $$CHART_BUILD_HEADER_DIR \ | |
159 | $$CHART_BUILD_LIB_DIR |
|
166 | $$CHART_BUILD_LIB_DIR | |
160 | win32:QMAKE_DISTCLEAN += /Q \ |
|
167 | win32:QMAKE_DISTCLEAN += /Q \ | |
161 | $$CHART_BUILD_HEADER_DIR \ |
|
168 | $$CHART_BUILD_HEADER_DIR \ | |
162 | $$CHART_BUILD_LIB_DIR |
|
169 | $$CHART_BUILD_LIB_DIR | |
163 |
|
170 | |||
164 | # treat warnings as errors |
|
171 | # treat warnings as errors | |
165 | win32-msvc*: { |
|
172 | win32-msvc*: { | |
166 | QMAKE_CXXFLAGS += /WX |
|
173 | QMAKE_CXXFLAGS += /WX | |
167 | } else { |
|
174 | } else { | |
168 | QMAKE_CXXFLAGS += -Werror |
|
175 | QMAKE_CXXFLAGS += -Werror | |
169 | } |
|
176 | } |
@@ -1,14 +1,11 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 | !include( ../build.pri ) { |
|
|||
5 | error( "Couldn't find the build.pri file !") |
|
|||
6 | } |
|
|||
7 |
|
4 | |||
8 | TEMPLATE = app |
|
5 | TEMPLATE = app | |
9 |
|
6 | |||
10 | DESTDIR = $$CHART_BUILD_BIN_DIR/test |
|
7 | DESTDIR = $$CHART_BUILD_BIN_DIR/test | |
11 | OBJECTS_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
8 | OBJECTS_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
12 | MOC_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
9 | MOC_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
13 | UI_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
10 | UI_DIR = $$CHART_BUILD_DIR/test/$$TARGET | |
14 | RCC_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
|
11 | RCC_DIR = $$CHART_BUILD_DIR/test/$$TARGET |
@@ -1,18 +1,14 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | !include( ../build.pri ) { |
|
|||
6 | error( "Couldn't find the build.pri file !") |
|
|||
7 | } |
|
|||
8 |
|
||||
9 | TEMPLATE = subdirs |
|
5 | TEMPLATE = subdirs | |
10 | SUBDIRS += \ |
|
6 | SUBDIRS += \ | |
11 | chartwidgettest \ |
|
7 | chartwidgettest \ | |
12 | wavechart \ |
|
8 | wavechart \ | |
13 | gdpbarchart \ |
|
9 | gdpbarchart \ | |
14 | tablemodelchart |
|
10 | tablemodelchart | |
15 |
|
11 | |||
16 | !win32:{ |
|
12 | !win32:{ | |
17 | SUBDIRS += auto |
|
13 | SUBDIRS += auto | |
18 | } |
|
14 | } |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now