##// END OF EJS Templates
Initial project refactor, xylinecharts...
Michal Klocek -
r11:3456b7f2ae05
parent child
Show More
@@ -0,0 +1,25
1 #ifndef CHARTCONFIG_H
2 #define CHARTCONFIG_H
3
4 #define QCHART_VERSION_STR "1.0"
5 #define QCHART_VERSION 0x01
6
7 #if defined(QCHART_LIBRARY)
8 # define QCHART_EXPORT Q_DECL_EXPORT
9 #else
10 # define QCHART_EXPORT Q_DECL_IMPORT
11 #endif
12
13 #define QCHART_NAMESPACE QtChart
14
15 #ifdef QCHART_NAMESPACE
16 # define QCHART_BEGIN_NAMESPACE namespace QCHART_NAMESPACE {
17 # define QCHART_END_NAMESPACE }
18 # define QCHART_USE_NAMESPACE using namespace QCHART_NAMESPACE;
19 #else
20 # define QCHART_BEGIN_NAMESPACE
21 # define QCHART_END_NAMESPACE
22 # define QCHART_USE_NAMESPACE
23 #endif
24
25 #endif
@@ -0,0 +1,43
1 TARGET = QChart
2 TEMPLATE = lib
3 QT += core \
4 gui
5 CONFIG += debug_and_release
6 CONFIG(debug, debug|release):TARGET = QChartd
7 SOURCES += \
8 xylinechart/qchartwidget.cpp \
9 xylinechart/qchart.cpp \
10 xylinechart/qxyseries.cpp \
11 xylinechart/axis.cpp \
12 xylinechart/xylinechart.cpp \
13 xylinechart/xygrid.cpp \
14 xylinechart/xyplotdata.cpp
15
16 PRIVATE_HEADERS += \
17 xylinechart/xylinechart_p.h \
18 xylinechart/axis_p.h \
19 xylinechart/xygrid_p.h \
20 xylinechart/xyplotdata_p.h
21
22 PUBLIC_HEADERS += \
23 xylinechart/qchart.h \
24 xylinechart/qxyseries.h \
25 xylinechart/qchartwidget.h \
26 qchartconfig.h
27
28 HEADERS += $$PUBLIC_HEADERS
29 HEADERS += $$PRIVATE_HEADERS
30
31 INCLUDEPATH += xylinechart
32
33 OBJECTS_DIR = ../build/lib
34 MOC_DIR = ../build/lib
35 UI_DIR = ../build/lib
36 RCC_DIR = ../build/lib
37 DEFINES += QCHART_LIBRARY
38
39 public_headers.path = $$[QT_INSTALL_HEADERS]/QCharts
40 public_headers.files = $$PUBLIC_HEADERS
41 target.path = $$[QT_INSTALL_LIBS]
42 INSTALLS += target \
43 public_headers
@@ -1,7 +1,11
1 TEMPLATE = subdirs
1 TEMPLATE = subdirs
2 SUBDIRS += widget qmlplugin
2 SUBDIRS += src #qmlplugin
3
4 QMAKE_CXXFLAGS += -g -Wall
5 QMAKE_DISTCLEAN += -r build
3
6
4 # install feature file
7 # install feature file
5 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
8 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
6 feature.files = $$PWD/features/charts.prf
9 feature.files = $$PWD/features/charts.prf
7 INSTALLS += feature
10 INSTALLS += feature
11
@@ -1,9 +1,8
1 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/Charts
1 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QCharts
2
2
3 contains(CHARTS, widget) {
3 CONFIG(debug, debug|release) {
4 CONFIG(debug, debug|release) {
4 LIBS += -lQChartd
5 LIBS += -lChartWidgetd
5 } else {
6 } else {
6 LIBS += -lQChart
7 LIBS += -lChartWidget
8 }
9 }
7 }
8
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
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