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