##// END OF EJS Templates
Moves legend src to subdirectory
Michal Klocek -
r957:775befb8fe0b
parent child
Show More
@@ -0,0 +1,15
1 INCLUDEPATH += $$PWD
2 DEPENDPATH += $$PWD
3
4 SOURCES += \
5 $$PWD/qlegend.cpp \
6 $$PWD/legendmarker.cpp
7
8 PRIVATE_HEADERS += \
9 $$PWD/legendmarker_p.h \
10 $$PWD/legendscroller_p.h \
11 $$PWD/qlegend_p.h
12
13
14 PUBLIC_HEADERS += \
15 $$PWD/qlegend.h No newline at end of file
1 NO CONTENT: file renamed from src/legendmarker.cpp to src/legend/legendmarker.cpp
1 NO CONTENT: file renamed from src/legendmarker_p.h to src/legend/legendmarker_p.h
1 NO CONTENT: file renamed from src/legendscroller_p.h to src/legend/legendscroller_p.h
1 NO CONTENT: file renamed from src/qlegend.cpp to src/legend/qlegend.cpp
1 NO CONTENT: file renamed from src/qlegend.h to src/legend/qlegend.h
1 NO CONTENT: file renamed from src/qlegend_p.h to src/legend/qlegend_p.h
@@ -1,173 +1,167
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 win32-msvc*: LIBS += User32.lib
8 8 CONFIG += debug_and_release
9 9 CONFIG(debug, debug|release):TARGET = QtCommercialChartd
10 10 SOURCES += \
11 11 $$PWD/chartdataset.cpp \
12 12 $$PWD/chartpresenter.cpp \
13 13 $$PWD/charttheme.cpp \
14 14 $$PWD/domain.cpp \
15 15 $$PWD/qchart.cpp \
16 16 $$PWD/qchartview.cpp \
17 17 $$PWD/qseries.cpp \
18 $$PWD/qlegend.cpp \
19 $$PWD/legendmarker.cpp \
20 18 $$PWD/chartbackground.cpp \
21 19 $$PWD/chart.cpp \
22 20 $$PWD/scroller.cpp
23 21 PRIVATE_HEADERS += \
24 22 $$PWD/chartdataset_p.h \
25 23 $$PWD/chartitem_p.h \
26 24 $$PWD/chartpresenter_p.h \
27 25 $$PWD/charttheme_p.h \
28 26 $$PWD/domain_p.h \
29 $$PWD/legendmarker_p.h \
30 27 $$PWD/chartbackground_p.h \
31 28 $$PWD/chart_p.h \
32 29 $$PWD/chartconfig_p.h \
33 30 $$PWD/qchart_p.h \
34 31 $$PWD/qchartview_p.h \
35 32 $$PWD/scroller_p.h \
36 $$PWD/qseries_p.h \
37 $$PWD/qlegend_p.h \
38 $$PWD/legendscroller_p.h
33 $$PWD/qseries_p.h
39 34 PUBLIC_HEADERS += \
40 35 $$PWD/qchart.h \
41 36 $$PWD/qchartglobal.h \
42 37 $$PWD/qseries.h \
43 $$PWD/qchartview.h \
44 $$PWD/qlegend.h
38 $$PWD/qchartview.h
45 39
46 40 include(animations/animations.pri)
47 include(axis/axis.pri)
48 include(xychart/xychart.pri)
49 include(linechart/linechart.pri)
50 41 include(areachart/areachart.pri)
42 include(axis/axis.pri)
51 43 include(barchart/barchart.pri)
44 include(legend/legend.pri)
45 include(linechart/linechart.pri)
52 46 include(piechart/piechart.pri)
53 47 include(scatterseries/scatter.pri)
54 48 include(splinechart/splinechart.pri)
55 49 include(themes/themes.pri)
56
50 include(xychart/xychart.pri)
57 51
58 52 HEADERS += $$PUBLIC_HEADERS
59 53 HEADERS += $$PRIVATE_HEADERS
60 54 HEADERS += $$THEMES
61 55 INCLUDEPATH += ../include .
62 56
63 57 OBJECTS_DIR = $$CHART_BUILD_DIR/lib
64 58 MOC_DIR = $$CHART_BUILD_DIR/lib
65 59 UI_DIR = $$CHART_BUILD_DIR/lib
66 60 RCC_DIR = $$CHART_BUILD_DIR/lib
67 61 DEFINES += QTCOMMERCIALCHART_LIBRARY
68 62
69 63 #qt public headers
70 64 #this is very primitive and lame parser , TODO: make perl script insted
71 65 !exists($$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal)
72 66 {
73 67 system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR)
74 68 win32:{
75 69 command = "echo $${LITERAL_HASH}include \"qchartglobal.h\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal"
76 70 }else{
77 71 command = "echo \"$${LITERAL_HASH}include \\\"qchartglobal.h\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal"
78 72 }
79 73 system($$command)
80 74 }
81 75
82 76 for(file, PUBLIC_HEADERS) {
83 77 name = $$split(file,'/')
84 78 name = $$last(name)
85 79 class = "$$cat($$file)"
86 80 class = $$find(class,class)
87 81 !isEmpty(class){
88 82 class = $$split(class,QTCOMMERCIALCHART_EXPORT)
89 83 class = $$member(class,1)
90 84 class = $$split(class,' ')
91 85 class = $$replace(class,' ','')
92 86 class = $$member(class,0)
93 87 win32:{
94 88 command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
95 89 }else{
96 90 command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
97 91 }
98 92 PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class
99 93 system($$command)
100 94 }
101 95 }
102 96
103 97 public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart
104 98 public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS
105 99
106 100 target.path = $$[QT_INSTALL_LIBS]
107 101 INSTALLS += target public_headers
108 102
109 103 install_build_public_headers.name = build_public_headers
110 104 install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h
111 105 install_build_public_headers.input = PUBLIC_HEADERS
112 106 install_build_public_headers.commands = $$QMAKE_COPY \
113 107 ${QMAKE_FILE_NAME} \
114 108 $$CHART_BUILD_PUBLIC_HEADER_DIR
115 109 install_build_public_headers.CONFIG += target_predeps \
116 110 no_link
117 111
118 112 install_build_private_headers.name = buld_private_headers
119 113 install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h
120 114 install_build_private_headers.input = PRIVATE_HEADERS
121 115 install_build_private_headers.commands = $$QMAKE_COPY \
122 116 ${QMAKE_FILE_NAME} \
123 117 $$CHART_BUILD_PRIVATE_HEADER_DIR
124 118 install_build_private_headers.CONFIG += target_predeps \
125 119 no_link
126 120
127 121 QMAKE_EXTRA_COMPILERS += install_build_public_headers \
128 122 install_build_private_headers \
129 123
130 124
131 125 !win32-msvc*: {
132 126
133 127 # There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly.
134 128 # This is the case at least with shadow builds.
135 129 # http://qt-project.org/wiki/jom
136 130
137 131 chartversion.target = $$PWD/qchartversion_p.h
138 132
139 133 unix:{
140 134 chartversion.commands = @echo \
141 135 "const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" \\; \
142 136 const char *gitHead = \\\"`git rev-parse HEAD`\\\" \\; " \
143 137 > \
144 138 $$chartversion.target;
145 139 }else{
146 140 chartversion.commands = @echo \
147 141 "const char *buildTime = \"%date%_%time%\" ; \
148 142 const char *gitHead = \"unknown\" ; " \
149 143 > \
150 144 $$chartversion.target
151 145 }
152 146
153 147 chartversion.depends = $$HEADERS \
154 148 $$SOURCES
155 149
156 150 PRE_TARGETDEPS += $$PWD/qchartversion_p.h
157 151 QMAKE_CLEAN += $$PWD/qchartversion_p.h
158 152 QMAKE_EXTRA_TARGETS += chartversion
159 153 }
160 154
161 155 unix:QMAKE_DISTCLEAN += -r \
162 156 $$CHART_BUILD_HEADER_DIR \
163 157 $$CHART_BUILD_LIB_DIR
164 158 win32:QMAKE_DISTCLEAN += /Q \
165 159 $$CHART_BUILD_HEADER_DIR \
166 160 $$CHART_BUILD_LIB_DIR
167 161
168 162 # treat warnings as errors
169 163 win32-msvc*: {
170 164 QMAKE_CXXFLAGS += /WX
171 165 } else {
172 166 QMAKE_CXXFLAGS += -Werror
173 167 }
General Comments 0
You need to be logged in to leave comments. Login now