charts.pro
59 lines
| 1.9 KiB
| text/idl
|
PrologLexer
Michal Klocek
|
r996 | !include(config.pri) { | ||
error('Missing config.pri') | ||||
Michal Klocek
|
r34 | } | ||
Michal Klocek
|
r32 | TEMPLATE = subdirs | ||
Michal Klocek
|
r996 | SUBDIRS = src qmlplugin examples demos test | ||
Michal Klocek
|
r193 | |||
Michal Klocek
|
r998 | development_build: message('Development build') | ||
Michal Klocek
|
r1021 | !system_build:{ | ||
Michal Klocek
|
r996 | message('Configured for local build against local libs...') | ||
Michal Klocek
|
r1021 | 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...') | ||||
Tero Ahola
|
r197 | } else { | ||
Tero Ahola
|
r558 | message('Running build aginst system libs...') | ||
Michal Klocek
|
r997 | message('Building only charts library...') | ||
Michal Klocek
|
r996 | message('Afterwards you can run "cd examples; qmake ; make " to build examples.') | ||
SUBDIRS = src | ||||
Michal Klocek
|
r193 | } | ||
Michal Klocek
|
r32 | CONFIG += ordered | ||
QMAKE_CXXFLAGS += -g -Wall | ||||
Michal Klocek
|
r349 | unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html | ||
win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html | ||||
Michal Klocek
|
r32 | |||
# install feature file | ||||
feature.path = $$[QT_INSTALL_DATA]/mkspecs/features | ||||
feature.files = $$PWD/features/qtcommercialchart.prf | ||||
INSTALLS += feature | ||||
Michal Klocek
|
r306 | |||
Michal Klocek
|
r725 | docs.target = docs | ||
Michal Klocek
|
r307 | win32:{ | ||
Michal Klocek
|
r725 | docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf | ||
Michal Klocek
|
r307 | }else{ | ||
Michal Klocek
|
r725 | docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf | ||
Michal Klocek
|
r307 | } | ||
Michal Klocek
|
r725 | docs.depends = FORCE | ||
Michal Klocek
|
r708 | QMAKE_EXTRA_TARGETS += docs | ||
Michal Klocek
|
r1087 | unix:coverage:{ | ||
Michal Klocek
|
r1084 | QMAKE_DISTCLEAN += -r ./coverage | ||
QMAKE_CLEAN += build/*.gcda build/*.gcno | ||||
QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage | ||||
Michal Klocek
|
r1087 | |||
Michal Klocek
|
r1084 | 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/test/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; | ||||
gencoverage.target = gen_coverage | ||||
gencoverage.depends = runcoverage | ||||
gencoverage.commands = make -C src gen_coverage; \ | ||||
genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD | ||||
} | ||||