|
|
!include(config.pri) {
|
|
|
error('Missing config.pri')
|
|
|
}
|
|
|
|
|
|
TEMPLATE = subdirs
|
|
|
SUBDIRS = src plugins examples demos tests
|
|
|
|
|
|
development_build: message('Development build')
|
|
|
|
|
|
!system_build:{
|
|
|
message('Configured for local build against local libs...')
|
|
|
message('You can run "make" to build qchart library, examples, demos and plugin...')
|
|
|
message('You can run "make install" to install qchart in qt sdk...')
|
|
|
} else {
|
|
|
message('Running build aginst system libs...')
|
|
|
message('Building only charts library...')
|
|
|
message('Afterwards you can run "cd examples; qmake ; make " to build examples.')
|
|
|
SUBDIRS = src
|
|
|
}
|
|
|
|
|
|
CONFIG += ordered
|
|
|
QMAKE_CXXFLAGS += -g -Wall
|
|
|
unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html
|
|
|
win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html
|
|
|
|
|
|
# install feature file
|
|
|
feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
|
|
|
feature.files = $$PWD/features/qtcommercialchart.prf
|
|
|
INSTALLS += feature
|
|
|
|
|
|
docs.target = docs
|
|
|
win32:{
|
|
|
docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
|
|
|
}else{
|
|
|
docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
|
|
|
}
|
|
|
docs.depends = FORCE
|
|
|
QMAKE_EXTRA_TARGETS += docs
|
|
|
|
|
|
unix:coverage:{
|
|
|
QMAKE_DISTCLEAN += -r ./coverage
|
|
|
QMAKE_CLEAN += build/*.gcda build/*.gcno
|
|
|
QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
|
|
|
|
|
|
buildcoverage.target = build_coverage
|
|
|
buildcoverage.depends = all
|
|
|
buildcoverage.commands = mkdir -p ./coverage; \
|
|
|
make -C src prepare_coverage;
|
|
|
|
|
|
runcoverage.target = run_coverage
|
|
|
runcoverage.depends = buildcoverage
|
|
|
runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
|
|
|
|
|
|
gencoverage.target = gen_coverage
|
|
|
gencoverage.depends = runcoverage
|
|
|
gencoverage.commands = make -C src gen_coverage; \
|
|
|
genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
|
|
|
}
|
|
|
|
|
|
|