@@ -1,10 +1,10 | |||
|
1 | TEMPLATE = subdirs | |
|
2 |
SUBDIRS += |
|
|
3 | ||
|
4 | QMAKE_CXXFLAGS += -g -Wall | |
|
5 | QMAKE_DISTCLEAN += -r build | |
|
6 | ||
|
7 | # install feature file | |
|
8 | feature.path = $$[QT_INSTALL_DATA]/mkspecs/features | |
|
9 | feature.files = $$PWD/features/qtcommercialchart.prf | |
|
10 | INSTALLS += feature | |
|
1 | TEMPLATE = subdirs | |
|
2 | SUBDIRS += src example #qmlplugin | |
|
3 | CONFIG += ordered | |
|
4 | QMAKE_CXXFLAGS += -g -Wall | |
|
5 | QMAKE_DISTCLEAN += -r build bin | |
|
6 | ||
|
7 | # install feature file | |
|
8 | feature.path = $$[QT_INSTALL_DATA]/mkspecs/features | |
|
9 | feature.files = $$PWD/features/qtcommercialchart.prf | |
|
10 | INSTALLS += feature |
@@ -1,2 +1,2 | |||
|
1 | 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 | 3 | TARGET = lineChart |
|
2 | 4 | TEMPLATE = app |
|
3 | ||
|
4 | 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 | 5 | TARGET = QtCommercialChart |
|
6 | DESTDIR = $$CHART_BUILD_LIB_DIR | |
|
2 | 7 | TEMPLATE = lib |
|
3 | 8 | QT += core \ |
|
4 | 9 | gui |
|
5 | 10 | CONFIG += debug_and_release |
|
6 | 11 | CONFIG(debug, debug|release):TARGET = QtCommercialChartd |
|
7 | 12 | |
|
8 | 13 | SOURCES += \ |
|
9 | 14 | xylinechart/qxychartseries.cpp \ |
|
10 | 15 | xylinechart/xylinechartitem.cpp \ |
|
11 | 16 | xylinechart/xygrid.cpp \ |
|
12 | 17 | xylinechart/xyplotdomain.cpp \ |
|
13 | 18 | qchart.cpp \ |
|
14 | 19 | axis.cpp \ |
|
15 | 20 | qchartwidget.cpp |
|
16 | 21 | |
|
17 | 22 | PRIVATE_HEADERS += \ |
|
18 | 23 | xylinechart/xylinechartitem_p.h \ |
|
19 | 24 | xylinechart/xyplotdomain_p.h \ |
|
20 | 25 | xylinechart/xygrid_p.h \ |
|
21 | 26 | axis_p.h |
|
22 | 27 | |
|
23 | 28 | PUBLIC_HEADERS += \ |
|
24 | 29 | qchartseries.h \ |
|
25 | 30 | qchart.h \ |
|
26 | 31 | qchartwidget.h \ |
|
27 | 32 | qchartglobal.h \ |
|
28 | 33 | xylinechart/qxychartseries.h |
|
29 | 34 | |
|
30 | 35 | HEADERS += $$PUBLIC_HEADERS |
|
31 | 36 | HEADERS += $$PRIVATE_HEADERS |
|
32 | 37 | |
|
33 | 38 | INCLUDEPATH += xylinechart \ |
|
34 | 39 | . |
|
35 | 40 | |
|
36 | OBJECTS_DIR = ../build/lib | |
|
37 | MOC_DIR = ../build/lib | |
|
38 | UI_DIR = ../build/lib | |
|
39 | RCC_DIR = ../build/lib | |
|
41 | OBJECTS_DIR = $$CHART_BUILD_DIR/lib | |
|
42 | MOC_DIR = $$CHART_BUILD_DIR/lib | |
|
43 | UI_DIR = $$CHART_BUILD_DIR/lib | |
|
44 | RCC_DIR = $$CHART_BUILD_DIR/lib | |
|
45 | ||
|
46 | ||
|
40 | 47 | DEFINES += QTCOMMERCIALCHART_LIBRARY |
|
41 | 48 | |
|
42 | 49 | public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart |
|
43 | 50 | public_headers.files = $$PUBLIC_HEADERS |
|
44 | 51 | target.path = $$[QT_INSTALL_LIBS] |
|
45 | 52 | INSTALLS += target \ |
|
46 | 53 | public_headers |
|
47 | 54 | |
|
48 | ||
|
49 | ||
|
55 | ||
|
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