##// END OF EJS Templates
Adds examples to common build
Michal Klocek -
r32:9cad93cb910a
parent child
Show More
@@ -1,10 +1,10
1 TEMPLATE = subdirs
1 TEMPLATE = subdirs
2 SUBDIRS += src #qmlplugin
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,4 +1,9
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
@@ -33,10 +38,12 HEADERS += $$PRIVATE_HEADERS
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
@@ -45,5 +52,19 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