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