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