aboutsummaryrefslogtreecommitdiff
path: root/src/smolbote.qbs
blob: e3b9d44dc016754f7139fe485a615537659893b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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",
            "webengine/webview.cpp",
            "webengine/webview.h",
            "widgets/loadingbar.cpp",
            "widgets/loadingbar.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
        }
    }
}