-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpu-fan-meister.qbs
142 lines (123 loc) · 4.98 KB
/
gpu-fan-meister.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/****************************************************************************}
{ gpu-fan-meister.qbs - main project file }
{ }
{ This file is a part of the project }
{ GPU Fan Meister - GPU fan speed controller and indicator }
{ }
{ Copyright (c) 2017 Alkatraz Studio }
{ }
{ author: Alexey Parfenov a.k.a. ZXED }
{ author's e-mail: [email protected] }
{ }
{ GPU Fan Meister is free software: you can redistribute it and/or }
{ modify it under the terms of the GNU General Public License }
{ as published by the Free Software Foundation, either version 3 of }
{ the License, or (at your option) any later version. }
{ }
{ GPU Fan Meister is distributed in the hope that it will be useful, }
{ but WITHOUT ANY WARRANTY; without even the implied warranty of }
{ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU }
{ General Public License for more details. }
{ }
{ You may read the GNU General Public License at: }
{ http://www.gnu.org/copyleft/gpl.html }
{ }
{ project started: 6 May 2017 }
{****************************************************************************/
import qbs.FileInfo
import qbs.File
import qbs.TextFile
import qbs.Process
Project {
minimumQbsVersion: '1.13.0'
qbsSearchPaths: ['./common', './shared/qbs']
QtGuiApplication {
property stringList qmlImportPaths: [
QmlAppSettings.qmlImportPath,
CodeEditor.qmlImportPath,
ColorPicker.qmlImportPath,
SimpleMessageDialog.qmlImportPath,
WindowStateManager.qmlImportPath
]
name: project.name
version: Version.autoVersion
Group {
name: 'App'
files: [
'*.cpp',
'*.h'
]
}
Depends {
name: 'Qt'
submodules: ['core', 'gui', 'qml', 'widgets', 'quickcontrols2']
}
Depends {name: 'Version'}
Depends {name: 'Common'}
Depends {name: 'CoreApp'}
Depends {name: 'GpuFanMeisterIncludes'}
Depends {name: 'QtNotify'}
Depends {name: 'AppSettings'}
Depends {name: 'CodeHighlighter'}
Depends {name: 'QmlSimple'}
Depends {name: 'EnumUtil'}
Depends {name: 'QmlAppSettings'}
Depends {name: 'CodeEditor'}
Depends {name: 'ColorPicker'}
Depends {name: 'SimpleMessageDialog'}
Depends {name: 'WindowStateManager'}
CoreApp.singleInstanceKey: name
Common.appTitle: 'GPU Fan Meister'
cpp.defines: 'GPUFANMEISTER_NO_PLUGIN_EXPORT'
qbs.installPrefix: ''
Group {
name: 'Scripts'
files: product.name+'.py'
qbs.install: Common.realInstall
}
Group {
name: 'GUI'
files: 'gui/**/**.qml'
qbs.installSourceBase: ''
qbs.install: Common.realInstall
}
Group {
name: 'Script template'
files: 'script.default.js'
qbs.install: Common.realInstall
}
Group {
name: 'Assets'
files: [
'assets/'+Common.appReverseDomain+'.appdata.xml',
'assets/'+Common.appReverseDomain+'.desktop',
'assets/'+product.name+'.png'
]
qbs.installSourceBase: ''
qbs.install: Common.realInstall
}
Group {
name: 'ThirdParty'
files: [
'pynotify2/notify2.py'
]
qbs.installSourceBase: ''
qbs.install: Common.realInstall
}
Probe {
id: docDirsProbe
property stringList dirs
configure: {
dirs = File.directoryEntries(path+'/docs', File.Dirs | File.NoDotAndDotDot)
dirs = dirs.filter(function(s){return s != 'src'})
found = true
}
}
Group {
name: 'Doc'
files: docDirsProbe.dirs.map(function(s){return 'docs/'+s+'/**'})
qbs.installSourceBase: ''
qbs.install: Common.realInstall
}
}
}