import qbs import "GitRepo.js" as GitRepo Project { minimumQbsVersion: "1.7.0" CppApplication { name: "poi" property string sourceDirectory: parent.sourceDirectory Probe { id: git property string version: "1.0.0" property string describe: "1.0.0-0-00000000" configure: { var meta = GitRepo.read(git.parent.sourceDirectory); version = meta.version; describe = meta.describe; found = true; } } cpp.includePaths: ['.'] Properties { condition: git.found cpp.defines: ['VERSION="'+git.version+'"'] } files: [ "browser.cpp", "browser.h", "data/icon.svg", "data/resources.qrc", "forms/blockerdialog.cpp", "forms/blockerdialog.h", "forms/blockerdialog.ui", "forms/downloaddialog.cpp", "forms/downloaddialog.h", "forms/downloaddialog.ui", "forms/profiledialog.cpp", "forms/profiledialog.h", "forms/profiledialog.ui", "main.cpp", "mainwindow.cpp", "mainwindow.h", "mainwindow.ui", "settings.cpp", "settings.h", "webengine/blockerrule.cpp", "webengine/blockerrule.h", "webengine/blockersubscription.cpp", "webengine/blockersubscription.h", "webengine/downloaditemform.cpp", "webengine/downloaditemform.h", "webengine/downloaditemform.ui", "webengine/urlinterceptor.cpp", "webengine/urlinterceptor.h", "webengine/webengineprofile.cpp", "webengine/webengineprofile.h", "widgets/urllineedit.cpp", "widgets/urllineedit.h", "widgets/webviewtabbar.cpp", "widgets/webviewtabbar.h", ] Depends { name: "Qt"; submodules: ["core", "widgets", "webengine", "webenginewidgets"] } // Properties for the produced executable Group { fileTagsFilter: product.type // filter selects produced executable qbs.install: true // install it } } }