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