-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqbs-autoproject.qbs
57 lines (54 loc) · 1.65 KB
/
qbs-autoproject.qbs
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
import qbs
import ".autoproject/autoproject.qbs" as AutoProject
AutoProject
{
property string root: "Example"
property string format: "Tree" //Tree, Flat, Shallow
property string dependencyMode: "Default" //Default, NoHeaderOnly, Disabled
property string ignore: "\\/(\\.autoproject|\\.git|tools)$"
property string sources: "\\.cpp$"
property string headers: "\\.h$"
property string squashDirs: "\\/(include|src)?$"
property string standardHeadersPath: ""
property bool dryRun: false
property var items:
{
return {
AutoprojectGuiApp: {
pattern: "\\/(.+\\.ui)$"
},
AutoprojectApp: {
pattern: "\\/((Test|Benchmark)|.+(Test|Benchmark)\\.(cpp|h)|[Mm]ain\\.cpp)$"
},
AutoprojectDynamicLib: {
pattern: "\\/(.+\\.h)$",
contentPattern: "[A-Z\d_]+SHARED "
},
AutoprojectPlugin:
{
pattern: "\\/.+\\.h$",
contentPattern: "Q_INTERFACES\\(([a-zA-Z\d]+(, |,|))+\\)"
},
AutoprojectStaticLib: {
pattern: "\\/(.+\\.cpp)$"
},
AutoprojectInclude: {
pattern: "\\/(.+\\.h)$"
},
AutoprojectDoc: {
pattern: "\\/(doc|.+\\.qdoc(conf)?)$"
},
AutoprojectBase: {
pattern: "\\/README$"
}
};
}
property var modules:
{
return {
Qt: {
includePath: "" //fill this to override Qt auto detection or with other modules
}
};
}
}