@@ -1,101 +1,125 | |||
|
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 | 10 | chartdataset.cpp \ |
|
11 | 11 | chartpresenter.cpp \ |
|
12 | 12 | charttheme.cpp \ |
|
13 | 13 | domain.cpp \ |
|
14 | 14 | qchart.cpp \ |
|
15 | 15 | qchartview.cpp \ |
|
16 | 16 | qseries.cpp \ |
|
17 | 17 | qlegend.cpp \ |
|
18 | 18 | legendmarker.cpp |
|
19 | 19 | PRIVATE_HEADERS += \ |
|
20 | 20 | chartdataset_p.h \ |
|
21 | 21 | chartitem_p.h \ |
|
22 | 22 | chartpresenter_p.h \ |
|
23 | 23 | charttheme_p.h \ |
|
24 | 24 | domain_p.h \ |
|
25 | 25 | legendmarker_p.h |
|
26 | 26 | PUBLIC_HEADERS += \ |
|
27 | 27 | qchart.h \ |
|
28 | 28 | qchartglobal.h \ |
|
29 | 29 | qseries.h \ |
|
30 | 30 | qchartview.h \ |
|
31 | 31 | qlegend.h |
|
32 | 32 | |
|
33 | 33 | include(animations/animations.pri) |
|
34 | 34 | include(axis/axis.pri) |
|
35 | 35 | include(xychart/xychart.pri) |
|
36 | 36 | include(linechart/linechart.pri) |
|
37 | 37 | include(areachart/areachart.pri) |
|
38 | 38 | include(barchart/barchart.pri) |
|
39 | 39 | include(piechart/piechart.pri) |
|
40 | 40 | include(scatterseries/scatter.pri) |
|
41 | 41 | include(splinechart/splinechart.pri) |
|
42 | 42 | |
|
43 | 43 | THEMES += themes/chartthemedefault_p.h \ |
|
44 | 44 | themes/chartthemeicy_p.h \ |
|
45 | 45 | themes/chartthemegrayscale_p.h \ |
|
46 | 46 | themes/chartthemescientific_p.h \ |
|
47 | 47 | themes/chartthemevanilla_p.h \ |
|
48 | 48 | themes/chartthemebluecerulean_p.h \ |
|
49 | 49 | themes/chartthemelight_p.h |
|
50 | 50 | |
|
51 | 51 | HEADERS += $$PUBLIC_HEADERS |
|
52 | 52 | HEADERS += $$PRIVATE_HEADERS |
|
53 | 53 | HEADERS += $$THEMES |
|
54 | 54 | INCLUDEPATH += linechart \ |
|
55 | 55 | barchart \ |
|
56 | 56 | themes \ |
|
57 | 57 | . |
|
58 | 58 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib |
|
59 | 59 | MOC_DIR = $$CHART_BUILD_DIR/lib |
|
60 | 60 | UI_DIR = $$CHART_BUILD_DIR/lib |
|
61 | 61 | RCC_DIR = $$CHART_BUILD_DIR/lib |
|
62 | 62 | DEFINES += QTCOMMERCIALCHART_LIBRARY |
|
63 | ||
|
64 | #qt public headers | |
|
65 | for(file, PUBLIC_HEADERS) { | |
|
66 | name = $$split(file,'/') | |
|
67 | name = $$last(name) | |
|
68 | class = "$$cat($$file)" | |
|
69 | class = $$find(class,class) | |
|
70 | !isEmpty(class){ | |
|
71 | class = $$split(class,QTCOMMERCIALCHART_EXPORT) | |
|
72 | class = $$member(class,1) | |
|
73 | class = $$split(class,':') | |
|
74 | class = $$replace(class,' ','') | |
|
75 | class = $$member(class,0) | |
|
76 | command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class" | |
|
77 | PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class | |
|
78 | system($$command) | |
|
79 | } | |
|
80 | } | |
|
81 | ||
|
63 | 82 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart |
|
64 | public_headers.files = $$PUBLIC_HEADERS | |
|
83 | public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS | |
|
84 | ||
|
65 | 85 | target.path = $$[QT_INSTALL_LIBS] |
|
66 |
INSTALLS += target |
|
|
67 | public_headers | |
|
68 | install_build_public_headers.name = bild_public_headers | |
|
86 | INSTALLS += target public_headers | |
|
87 | ||
|
88 | install_build_public_headers.name = build_public_headers | |
|
69 | 89 | install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
70 | 90 | install_build_public_headers.input = PUBLIC_HEADERS |
|
71 | 91 | install_build_public_headers.commands = $$QMAKE_COPY \ |
|
72 | 92 | ${QMAKE_FILE_NAME} \ |
|
73 | 93 | $$CHART_BUILD_PUBLIC_HEADER_DIR |
|
74 | 94 | install_build_public_headers.CONFIG += target_predeps \ |
|
75 | 95 | no_link |
|
76 | install_build_private_headers.name = bild_private_headers | |
|
96 | ||
|
97 | install_build_private_headers.name = buld_private_headers | |
|
77 | 98 | install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
78 | 99 | install_build_private_headers.input = PRIVATE_HEADERS |
|
79 | 100 | install_build_private_headers.commands = $$QMAKE_COPY \ |
|
80 | 101 | ${QMAKE_FILE_NAME} \ |
|
81 | 102 | $$CHART_BUILD_PRIVATE_HEADER_DIR |
|
82 | 103 | install_build_private_headers.CONFIG += target_predeps \ |
|
83 | 104 | no_link |
|
105 | ||
|
84 | 106 | QMAKE_EXTRA_COMPILERS += install_build_public_headers \ |
|
85 | install_build_private_headers | |
|
107 | install_build_private_headers \ | |
|
108 | ||
|
86 | 109 | chartversion.target = qchartversion_p.h |
|
87 | 110 | chartversion.commands = @echo \ |
|
88 | 111 | "build_time" \ |
|
89 | 112 | > \ |
|
90 | 113 | $$chartversion.target; |
|
91 | 114 | chartversion.depends = $$HEADERS \ |
|
92 | 115 | $$SOURCES |
|
93 | 116 | PRE_TARGETDEPS += qchartversion_p.h |
|
94 | 117 | QMAKE_CLEAN += qchartversion_p.h |
|
95 | 118 | QMAKE_EXTRA_TARGETS += chartversion |
|
96 | 119 | unix:QMAKE_DISTCLEAN += -r \ |
|
97 | 120 | $$CHART_BUILD_HEADER_DIR \ |
|
98 | 121 | $$CHART_BUILD_LIB_DIR |
|
99 | 122 | win32:QMAKE_DISTCLEAN += /Q \ |
|
100 | 123 | $$CHART_BUILD_HEADER_DIR \ |
|
101 | 124 | $$CHART_BUILD_LIB_DIR |
|
125 |
General Comments 0
You need to be logged in to leave comments.
Login now