##// END OF EJS Templates
Cleanup build setup...
Michal Klocek -
r249:bfba57666177
parent child
Show More
@@ -0,0 +1,35
1 INCLUDEPATH += $$PWD
2 DEPENDPATH += $$PWD
3
4 SOURCES += \
5 $$PWD/bar.cpp \
6 $$PWD/barchartmodel.cpp \
7 $$PWD/barlabel.cpp \
8 $$PWD/barpresenter.cpp \
9 $$PWD/barpresenterbase.cpp \
10 $$PWD/percentbarpresenter.cpp \
11 $$PWD/qbarcategory.cpp \
12 $$PWD/qbarchartseries.cpp \
13 $$PWD/qbarset.cpp \
14 $$PWD/qpercentbarchartseries.cpp \
15 $$PWD/qstackedbarchartseries.cpp \
16 $$PWD/separator.cpp \
17 $$PWD/stackedbarpresenter.cpp
18
19 PRIVATE_HEADERS += \
20 $$PWD/bar_p.h \
21 $$PWD/barchartmodel_p.h \
22 $$PWD/barlabel_p.h \
23 $$PWD/barpresenter.h \
24 $$PWD/barpresenterbase.h \
25 $$PWD/percentbarpresenter.h \
26 $$PWD/separator_p.h \
27 $$PWD/stackedbarpresenter.h
28
29 PUBLIC_HEADERS += \
30 $$PWD/qbarcategory.h \
31 $$PWD/qbarchartseries.h \
32 $$PWD/qbarset.h \
33 $$PWD/qpercentbarchartseries.h \
34 $$PWD/qstackedbarchartseries.h
35 No newline at end of file
@@ -0,0 +1,14
1 INCLUDEPATH += $$PWD
2 DEPENDPATH += $$PWD
3
4 SOURCES += \
5 $$PWD/linechartanimationitem.cpp \
6 $$PWD/linechartitem.cpp \
7 $$PWD/qlinechartseries.cpp
8
9 PRIVATE_HEADERS += \
10 $$PWD/linechartitem_p.h \
11 $$PWD/linechartanimationitem_p.h
12
13 PUBLIC_HEADERS += \
14 $$PWD/qlinechartseries.h No newline at end of file
@@ -1,126 +1,92
1 1 !include( ../common.pri ):error( Couldn't find the common.pri file! )
2 2 TARGET = QtCommercialChart
3 3 DESTDIR = $$CHART_BUILD_LIB_DIR
4 4 TEMPLATE = lib
5 5 QT += core \
6 6 gui
7 7 CONFIG += debug_and_release
8 8 CONFIG(debug, debug|release):TARGET = QtCommercialChartd
9 9 SOURCES += \
10 barchart/bar.cpp \
11 barchart/barlabel.cpp \
12 barchart/barchartmodel.cpp \
13 barchart/separator.cpp \
14 barchart/qbarset.cpp \
15 barchart/qbarcategory.cpp \
16 barchart/qbarchartseries.cpp \
17 barchart/qpercentbarchartseries.cpp \
18 barchart/qstackedbarchartseries.cpp \
19 barchart/barpresenterbase.cpp \
20 barchart/barpresenter.cpp \
21 barchart/stackedbarpresenter.cpp \
22 barchart/percentbarpresenter.cpp \
23 linechart/linechartanimationitem.cpp \
24 linechart/linechartitem.cpp \
25 linechart/qlinechartseries.cpp \
26 10 qchart.cpp \
27 11 axisitem.cpp \
28 12 qchartview.cpp \
29 13 qchartseries.cpp \
30 14 qchartaxis.cpp \
31 15 charttheme.cpp \
32 16 chartdataset.cpp \
33 17 chartpresenter.cpp \
34 18 domain.cpp
35 PRIVATE_HEADERS += linechart/linechartitem_p.h \
36 linechart/linechartanimationitem_p.h \
37 barchart/barlabel_p.h \
38 barchart/bar_p.h \
39 barchart/separator_p.h \
40 barchart/barchartmodel_p.h \
41 barchart/barpresenter.h \
42 barchart/stackedbarpresenter.h \
43 barchart/percentbarpresenter.h \
44 barchart/barpresenterbase.h \
19 PRIVATE_HEADERS += \
45 20 axisitem_p.h \
46 21 chartitem_p.h \
47 22 charttheme_p.h \
48 23 chartdataset_p.h \
49 24 chartpresenter_p.h \
50 25 domain_p.h
51 PUBLIC_HEADERS += linechart/qlinechartseries.h \
52 barchart/qbarchartseries.h \
53 barchart/qstackedbarchartseries.h \
54 barchart/qpercentbarchartseries.h \
55 barchart/barpresenter.h \
56 barchart/qstackedbarchartseries.h \
57 barchart/stackedbarpresenter.h \
58 barchart/qpercentbarchartseries.h \
59 barchart/percentbarpresenter.h \
60 barchart/barpresenterbase.h \
61 barchart/qbarset.h \
62 barchart/qbarcategory.h \
26 PUBLIC_HEADERS += \
63 27 qchartseries.h \
64 28 qchart.h \
65 29 qchartglobal.h \
66 30 qchartview.h \
67 31 qchartaxis.h
68
32
33 include(linechart/linechart.pri)
34 include(barchart/barchart.pri)
69 35 include(piechart/piechart.pri)
70 36 include(scatterseries/scatter.pri)
71 37
72 38 THEMES += themes/chartthemeicy_p.h \
73 39 themes/chartthemegrayscale_p.h \
74 40 themes/chartthemescientific_p.h \
75 41 themes/chartthemevanilla_p.h
76 42 HEADERS += $$PUBLIC_HEADERS
77 43 HEADERS += $$PRIVATE_HEADERS
78 44 HEADERS += $$THEMES
79 45 INCLUDEPATH += linechart \
80 46 barchart \
81 47 themes \
82 48 .
83 49 OBJECTS_DIR = $$CHART_BUILD_DIR/lib
84 50 MOC_DIR = $$CHART_BUILD_DIR/lib
85 51 UI_DIR = $$CHART_BUILD_DIR/lib
86 52 RCC_DIR = $$CHART_BUILD_DIR/lib
87 53 DEFINES += QTCOMMERCIALCHART_LIBRARY
88 54 public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart
89 55 public_headers.files = $$PUBLIC_HEADERS
90 56 target.path = $$[QT_INSTALL_LIBS]
91 57 INSTALLS += target \
92 58 public_headers
93 59 install_build_public_headers.name = bild_public_headers
94 60 install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h
95 61 install_build_public_headers.input = PUBLIC_HEADERS
96 62 install_build_public_headers.commands = $$QMAKE_COPY \
97 63 ${QMAKE_FILE_NAME} \
98 64 $$CHART_BUILD_PUBLIC_HEADER_DIR
99 65 install_build_public_headers.CONFIG += target_predeps \
100 66 no_link
101 67 install_build_private_headers.name = bild_private_headers
102 68 install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h
103 69 install_build_private_headers.input = PRIVATE_HEADERS
104 70 install_build_private_headers.commands = $$QMAKE_COPY \
105 71 ${QMAKE_FILE_NAME} \
106 72 $$CHART_BUILD_PRIVATE_HEADER_DIR
107 73 install_build_private_headers.CONFIG += target_predeps \
108 74 no_link
109 75 QMAKE_EXTRA_COMPILERS += install_build_public_headers install_build_private_headers
110 76 chartversion.target = qchartversion_p.h
111 77 chartversion.commands = @echo \
112 78 "build_time" \
113 79 > \
114 80 $$chartversion.target;
115 81 chartversion.depends = $$HEADERS \
116 82 $$SOURCES
117 83 PRE_TARGETDEPS += qchartversion_p.h
118 84 QMAKE_CLEAN += qchartversion_p.h
119 85 QMAKE_EXTRA_TARGETS += chartversion
120 86 unix:QMAKE_DISTCLEAN += -r \
121 87 $$CHART_BUILD_HEADER_DIR \
122 88 $$CHART_BUILD_LIB_DIR
123 89 win32:QMAKE_DISTCLEAN += /Q \
124 90 $$CHART_BUILD_HEADER_DIR \
125 91 $$CHART_BUILD_LIB_DIR
126 92
General Comments 0
You need to be logged in to leave comments. Login now