Source

Target

Commits (11)
Showing with 13 additions and 87 deletions
load(qt_build_config)
CONFIG += qt_example_installs
MODULE_VERSION=5.7.0
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/axisanimation.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/areachartitem.cpp \
......
......@@ -6,12 +6,6 @@ INCLUDEPATH += $$PWD \
$$PWD/categoryaxis \
$$PWD/logvalueaxis
DEPENDPATH += $$PWD \
$$PWD/valueaxis \
$$PWD/barcategoryaxis \
$$PWD/categoryaxis \
$$PWD/logvalueaxis
SOURCES += \
$$PWD/chartaxiselement.cpp \
$$PWD/cartesianchartaxis.cpp \
......@@ -85,9 +79,6 @@ PRIVATE_HEADERS += \
INCLUDEPATH += \
$$PWD/datetimeaxis
DEPENDPATH += \
$$PWD/datetimeaxis
SOURCES += \
$$PWD/datetimeaxis/chartdatetimeaxisx.cpp \
$$PWD/datetimeaxis/chartdatetimeaxisy.cpp \
......
......@@ -8,14 +8,6 @@ INCLUDEPATH += $$PWD \
$$PWD/horizontal/stacked \
$$PWD/horizontal/percent
DEPENDPATH += $$PWD \
$$PWD/vertical/bar \
$$PWD/vertical/stacked \
$$PWD/vertical/percent \
$$PWD/horizontal/bar \
$$PWD/horizontal/stacked \
$$PWD/horizontal/percent
SOURCES += \
$$PWD/bar.cpp \
$$PWD/abstractbarchartitem.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/boxplotchartitem.cpp \
......
......@@ -2,20 +2,11 @@
TARGET = QtCharts
message($$QT_CONFIG)
QT = core gui widgets
DEFINES += QT_CHARTS_LIBRARY
contains(QT_COORD_TYPE, float): DEFINES += QT_QREAL_IS_FLOAT
# Fix exports in static builds for applications linking charts module
static: MODULE_DEFINES += QT_CHARTS_STATICLIB
MODULE_INCNAME = QtCharts
QMAKE_DOCS = $$PWD/doc/qtcharts.qdocconf
load(qt_module)
QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)"
QMAKE_TARGET_DESCRIPTION = "Charts component for Qt."
......@@ -62,7 +53,6 @@ PUBLIC_HEADERS += \
$$PWD/chartsnamespace.h \
$$PWD/qpolarchart.h
include($$PWD/common.pri)
include($$PWD/animations/animations.pri)
include($$PWD/areachart/areachart.pri)
include($$PWD/axis/axis.pri)
......@@ -96,3 +86,5 @@ win32:!winrt:!wince {
# ChartThemeSystem uses Windows native API
LIBS += -luser32
}
load(qt_module)
INCLUDEPATH += $$PWD/ \
$$PWD/animations \
$$PWD/areachart \
$$PWD/axis \
$$PWD/barchart \
$$PWD/boxplotchart \
$$PWD/domain \
$$PWD/layout \
$$PWD/legend \
$$PWD/linechart \
$$PWD/piechart \
$$PWD/scatterchart \
$$PWD/splinechart \
$$PWD/themes \
$$PWD/xychart
#Subdirectiores are defined here, because qt creator doesn't handle nested include(foo.pri) chains very well.
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/abstractdomain.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/abstractchartlayout.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/qlegend.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/linechartitem.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/qpieseries.cpp \
......
......@@ -42,19 +42,18 @@
*/
#define QT_CHARTS_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
#if defined(QT_CHARTS_LIBRARY)
# define QT_CHARTS_EXPORT Q_DECL_EXPORT
#ifndef QT_STATIC
# if defined(QT_BUILD_CHARTS_LIB)
# define QT_CHARTS_EXPORT Q_DECL_EXPORT
# else
# define QT_CHARTS_EXPORT Q_DECL_IMPORT
# endif
#else
# define QT_CHARTS_EXPORT Q_DECL_IMPORT
#endif
#ifdef QT_CHARTS_STATICLIB
# undef QT_CHARTS_EXPORT
# undef Q_AUTOTEST_EXPORT
# define QT_CHARTS_EXPORT
# define Q_AUTOTEST_EXPORT
#endif
#define QT_CHARTS_AUTOTEST_EXPORT Q_AUTOTEST_EXPORT
#define QT_CHARTS_NAMESPACE QtCharts
#ifdef QT_CHARTS_NAMESPACE
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/qscatterseries.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/qsplineseries.cpp \
......
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
THEMES += \
$$PWD/charttheme_p.h \
......
#INCLUDEPATH += $$PWD
#DEPENDPATH += $$PWD
INCLUDEPATH += $$PWD
SOURCES += \
$$PWD/xychart.cpp \
......
TARGET = qtchartsqml2
CXX_MODULE = charts
QT += qml quick
QT += charts charts-private
TARGETPATH = QtCharts
contains(QT_COORD_TYPE, float): DEFINES += QT_QREAL_IS_FLOAT
IMPORT_VERSION = $$MODULE_VERSION
# Only build qml plugin static if Qt itself is also built static
!contains(QT_CONFIG, static): CONFIG -= static staticlib
include($$PWD/designer/designer.pri)
INCLUDEPATH += ../../include \
../../include/QtCharts \
../charts \
../charts/animations \
../charts/axis \
../charts/domain
SOURCES += \
chartsqml2_plugin.cpp \
declarativechart.cpp \
......@@ -56,18 +45,9 @@ HEADERS += \
declarativechartnode.h \
declarativerendernode.h
OTHER_FILES = qmldir
CONFIG += no_cxx_module
load(qml_plugin)
win32 {
CONFIG += skip_target_version_ext
VERSION = $$MODULE_VERSION
QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)"
QMAKE_TARGET_DESCRIPTION = "Charts QML plugin for Qt."
}
QML_FILES += \
$$PWD/plugins.qmltypes