@@ -1,72 +1,72 | |||||
1 | !include( ../common.pri ) { |
|
1 | !include( ../common.pri ) { | |
2 | error( Couldn't find the common.pri file! ) |
|
2 | error( Couldn't find the common.pri file! ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 |
|
5 | |||
6 | TARGET = QtCommercialChart |
|
6 | TARGET = QtCommercialChart | |
7 | DESTDIR = $$CHART_BUILD_LIB_DIR |
|
7 | DESTDIR = $$CHART_BUILD_LIB_DIR | |
8 | TEMPLATE = lib |
|
8 | TEMPLATE = lib | |
9 | QT += core \ |
|
9 | QT += core \ | |
10 | gui |
|
10 | gui | |
|
11 | ||||
|
12 | CONFIG += debug_and_release | |||
|
13 | CONFIG(debug, debug|release):TARGET = QtCommercialChartd | |||
|
14 | ||||
|
15 | SOURCES += \ | |||
|
16 | xylinechart/qxychartseries.cpp \ | |||
|
17 | xylinechart/xylinechartitem.cpp \ | |||
|
18 | xylinechart/xygrid.cpp \ | |||
|
19 | xylinechart/xyplotdomain.cpp \ | |||
|
20 | qchart.cpp \ | |||
|
21 | axis.cpp \ | |||
|
22 | qchartwidget.cpp | |||
|
23 | ||||
|
24 | PRIVATE_HEADERS += \ | |||
|
25 | xylinechart/xylinechartitem_p.h \ | |||
|
26 | xylinechart/xyplotdomain_p.h \ | |||
|
27 | xylinechart/xygrid_p.h \ | |||
|
28 | axis_p.h | |||
|
29 | ||||
|
30 | PUBLIC_HEADERS += \ | |||
|
31 | qchartseries.h \ | |||
|
32 | qchart.h \ | |||
|
33 | qchartwidget.h \ | |||
|
34 | qchartglobal.h \ | |||
|
35 | xylinechart/qxychartseries.h | |||
|
36 | ||||
|
37 | HEADERS += $$PUBLIC_HEADERS | |||
|
38 | HEADERS += $$PRIVATE_HEADERS | |||
|
39 | ||||
|
40 | INCLUDEPATH += xylinechart \ | |||
|
41 | . | |||
11 |
|
42 | |||
12 | CONFIG += debug_and_release |
|
|||
13 | CONFIG(debug, debug|release):TARGET = QtCommercialChartd |
|
|||
14 |
|
||||
15 | SOURCES += \ |
|
|||
16 | xylinechart/qxychartseries.cpp \ |
|
|||
17 | xylinechart/xylinechartitem.cpp \ |
|
|||
18 | xylinechart/xygrid.cpp \ |
|
|||
19 | xylinechart/xyplotdomain.cpp \ |
|
|||
20 | qchart.cpp \ |
|
|||
21 | axis.cpp \ |
|
|||
22 | qchartwidget.cpp |
|
|||
23 |
|
||||
24 | PRIVATE_HEADERS += \ |
|
|||
25 | xylinechart/xylinechartitem_p.h \ |
|
|||
26 | xylinechart/xyplotdomain_p.h \ |
|
|||
27 | xylinechart/xygrid_p.h \ |
|
|||
28 | axis_p.h |
|
|||
29 |
|
||||
30 | PUBLIC_HEADERS += \ |
|
|||
31 | qchartseries.h \ |
|
|||
32 | qchart.h \ |
|
|||
33 | qchartwidget.h \ |
|
|||
34 | qchartglobal.h \ |
|
|||
35 | xylinechart/qxychartseries.h |
|
|||
36 |
|
||||
37 | HEADERS += $$PUBLIC_HEADERS |
|
|||
38 | HEADERS += $$PRIVATE_HEADERS |
|
|||
39 |
|
||||
40 | INCLUDEPATH += xylinechart \ |
|
|||
41 | . |
|
|||
42 |
|
||||
43 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib |
|
43 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib | |
44 | MOC_DIR = $$CHART_BUILD_DIR/lib |
|
44 | MOC_DIR = $$CHART_BUILD_DIR/lib | |
45 | UI_DIR = $$CHART_BUILD_DIR/lib |
|
45 | UI_DIR = $$CHART_BUILD_DIR/lib | |
46 | RCC_DIR = $$CHART_BUILD_DIR/lib |
|
46 | RCC_DIR = $$CHART_BUILD_DIR/lib | |
47 |
|
47 | |||
48 |
|
48 | |||
49 | DEFINES += QTCOMMERCIALCHART_LIBRARY |
|
49 | DEFINES += QTCOMMERCIALCHART_LIBRARY | |
50 |
|
50 | |||
51 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart |
|
51 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart | |
52 | public_headers.files = $$PUBLIC_HEADERS |
|
52 | public_headers.files = $$PUBLIC_HEADERS | |
53 | target.path = $$[QT_INSTALL_LIBS] |
|
53 | target.path = $$[QT_INSTALL_LIBS] | |
54 | INSTALLS += target \ |
|
54 | INSTALLS += target \ | |
55 | public_headers |
|
55 | public_headers | |
56 |
|
56 | |||
57 |
|
57 | |||
58 | install_build_headers.name = bild_headers |
|
58 | install_build_headers.name = bild_headers | |
59 | install_build_headers.output = $$CHART_BUILD_HEADER_DIR/${QMAKE_FILE_BASE}.h |
|
59 | install_build_headers.output = $$CHART_BUILD_HEADER_DIR/${QMAKE_FILE_BASE}.h | |
60 | install_build_headers.input = PUBLIC_HEADERS |
|
60 | install_build_headers.input = PUBLIC_HEADERS | |
61 | install_build_headers.commands = $$QMAKE_COPY ${QMAKE_FILE_NAME} $$CHART_BUILD_HEADER_DIR |
|
61 | install_build_headers.commands = $$QMAKE_COPY ${QMAKE_FILE_NAME} $$CHART_BUILD_HEADER_DIR | |
62 | install_build_headers.CONFIG += target_predeps no_link |
|
62 | install_build_headers.CONFIG += target_predeps no_link | |
63 | QMAKE_EXTRA_COMPILERS += install_build_headers |
|
63 | QMAKE_EXTRA_COMPILERS += install_build_headers | |
64 |
|
64 | |||
65 | chartversion.target = qchartversion_p.h |
|
65 | chartversion.target = qchartversion_p.h | |
66 | chartversion.commands = @echo "build_time" > $$chartversion.target; |
|
66 | chartversion.commands = @echo "build_time" > $$chartversion.target; | |
67 | chartversion.depends = $$HEADERS $$SOURCES |
|
67 | chartversion.depends = $$HEADERS $$SOURCES | |
68 | PRE_TARGETDEPS += qchartversion_p.h |
|
68 | PRE_TARGETDEPS += qchartversion_p.h | |
69 | QMAKE_CLEAN+= qchartversion_p.h |
|
69 | QMAKE_CLEAN+= qchartversion_p.h | |
70 | QMAKE_EXTRA_TARGETS += chartversion |
|
70 | QMAKE_EXTRA_TARGETS += chartversion | |
71 |
|
71 | |||
72 | QMAKE_DISTCLEAN += -r $$CHART_BUILD_HEADER_DIR $$CHART_BUILD_LIB_DIR No newline at end of file |
|
72 | QMAKE_DISTCLEAN += -r $$CHART_BUILD_HEADER_DIR $$CHART_BUILD_LIB_DIR |
General Comments 0
You need to be logged in to leave comments.
Login now