summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-04-24 09:29:31 +0200
committerMichal Klocek <michal.klocek@qt.io>2020-11-05 13:12:35 +0100
commit36c9c74023edb39d6ab64fb0d6c789575cdccdbd (patch)
tree83f5a69b48908ad5c638b9f0f32f131227a93d9c /examples
parent08bd743422f89bfd507c0b56ea8c91d6953c346e (diff)
Add configure system
Adds configure system to charts. Make basic types as configure features. By default build all types. Change-Id: I00992555de377589cb522d471ad81f30499f93f3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/charts/charts.pro104
1 files changed, 64 insertions, 40 deletions
diff --git a/examples/charts/charts.pro b/examples/charts/charts.pro
index b64b464f..d94eec1b 100644
--- a/examples/charts/charts.pro
+++ b/examples/charts/charts.pro
@@ -1,55 +1,79 @@
+include($$OUT_PWD/../../src/charts/qtcharts-config.pri)
+QT_FOR_CONFIG += charts
TEMPLATE = subdirs
-SUBDIRS += \
- areachart \
- barchart \
- barmodelmapper \
- boxplotchart \
- callout \
- candlestickchart \
- chartinteractions \
- chartthemes \
- customchart \
- donutbreakdown \
- donutchart \
- dynamicspline \
- horizontalbarchart \
- horizontalpercentbarchart \
- horizontalstackedbarchart \
- legend \
- legendmarkers \
- lineandbar \
- linechart \
- logvalueaxis \
- modeldata \
- multiaxis \
- nesteddonuts \
- percentbarchart \
- piechart \
- piechartcustomization \
- piechartdrilldown \
- polarchart \
- scatterchart \
- scatterinteractions \
- splinechart \
- stackedbarchart \
- stackedbarchartdrilldown \
- temperaturerecords \
- zoomlinechart
+qtConfig(charts-area-chart) {
+ SUBDIRS += areachart
+}
+qtConfig(charts-line-chart) {
+ SUBDIRS += \
+ callout \
+ chartinteractions \
+ customchart \
+ linechart \
+ lineandbar \
+ legendmarkers \
+ logvalueaxis \
+ modeldata \
+ zoomlinechart
+}
+qtConfig(charts-spline-chart) {
+ SUBDIRS += \
+ dynamicspline \
+ multiaxis \
+ splinechart
+ qtConfig(charts-area-chart) {
+ SUBDIRS += \
+ chartthemes \
+ polarchart
+ }
+}
+qtConfig(charts-bar-chart) {
+ SUBDIRS += \
+ barchart \
+ barmodelmapper \
+ horizontalbarchart \
+ horizontalpercentbarchart \
+ horizontalstackedbarchart \
+ stackedbarchart \
+ stackedbarchartdrilldown \
+ percentbarchart \
+ legend \
+ temperaturerecords
+}
+qtConfig(charts-pie-chart) {
+ SUBDIRS += \
+ donutchart \
+ donutbreakdown \
+ nesteddonuts \
+ piechart \
+ piechartcustomization \
+ piechartdrilldown
+ qtHaveModule(quick): SUBDIRS += qmlpiechart
+}
+qtConfig(charts-boxplot-chart) {
+ SUBDIRS += boxplotchart
+ qtHaveModule(quick): SUBDIRS += qmlboxplot
+}
+qtConfig(charts-candlestick-chart) {
+ SUBDIRS += candlestickchart
+ qtHaveModule(quick): SUBDIRS += qmlcandlestick
+}
+qtConfig(charts-scatter-chart) {
+ SUBDIRS += \
+ scatterchart \
+ scatterinteractions
+}
qtHaveModule(quick) {
SUBDIRS += \
qmlaxes \
- qmlboxplot \
- qmlcandlestick \
qmlchart \
qmlcustomizations \
qmlcustomlegend \
qmlf1legends \
qmloscilloscope \
- qmlpiechart \
qmlpolarchart \
qmlweather
-
}
qtHaveModule(multimedia) {