-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path_preload.lua
204 lines (182 loc) · 4.46 KB
/
_preload.lua
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
--
-- To avoid qt.lua re-including _preload
--
premake.extensions.qt = true
--
-- Set the path where Qt is installed
--
premake.api.register {
name = "qtpath",
scope = "config",
kind = "path",
tokens = true
}
--
-- By default, Qt modules' include directories are added as regular include directories,
-- meaning they might issue warnings.
-- You can use this option so that the include directories are instead added as "external" ones
-- so that compilers supporting this won't ever issue any warnings on those includes.
premake.api.register {
name = "qtuseexternalinclude",
scope = "config",
kind = "boolean"
}
--
-- Set the binary path. By default, its `qtpath .. "/bin"`. Use
-- this command to override it.
--
premake.api.register {
name = "qtbinpath",
scope = "config",
kind = "path",
tokens = true
}
--
-- Set the include path. By default, its `qtpath .. "/include"`. Use
-- this command to override it.
--
premake.api.register {
name = "qtincludepath",
scope = "config",
kind = "path",
tokens = true
}
--
-- Set the library path. By default, its `qtpath .. "/lib"`. Use
-- this command to override it.
--
premake.api.register {
name = "qtlibpath",
scope = "config",
kind = "path",
tokens = true
}
--
-- Set the prefix of the libraries ("Qt4" or "Qt5" usually)
--
-- Note: now by default it's created from the major_version string passed to the enable
-- function. So if you don't use qtprefix, by default it'll be "Qt5", and if you used
-- premake.extensions.qt.enable("6") then it'll be "Qt6". This is left here for backward
-- compatibility and corner cases, but should no longer be needed in most cases.
--
premake.api.register {
name = "qtprefix",
scope = "config",
kind = "string"
}
--
-- Set a suffix for the libraries ("d" usually when using Debug Qt libs)
--
premake.api.register {
name = "qtsuffix",
scope = "config",
kind = "string"
}
--
-- Link the qtmain lib on Windows.
--
-- Note: On Qt6, this will no longer work. Instead, the "entrypoint" module should be added.
-- Using this will automatically add said module (for backward compatibility)
--
premake.api.register {
name = "qtmain",
scope = "config",
kind = "boolean"
}
--
-- Specify the modules to use (will handle include paths, links, etc.)
-- See premake.extensions.qt.modules for a list of available modules.
--
premake.api.register {
name = "qtmodules",
scope = "config",
kind = "string-list"
}
--
-- Specify the path, relative to the current script, where the files generated
-- by Qt will be created. If this command is not used, the default behavior
-- is to generate those files in the objdir.
--
premake.api.register {
name = "qtgenerateddir",
scope = "config",
kind = "path",
tokens = true,
pathVars = true
}
--
-- Specify a list of custom options to send to the Qt moc command line.
--
premake.api.register {
name = "qtmocargs",
scope = "config",
kind = "string-list"
}
--
-- Specify a list of custom options to send to the Qt lrelease command line.
--
premake.api.register {
name = "qtlreleaseargs",
scope = "config",
kind = "string-list"
}
--
-- Specify the path, relative to the current script, where the qm files generated
-- by Qt will be created. If this command is not used, the default behavior
-- is to generate those files in the target directory.
--
premake.api.register {
name = "qtqmgenerateddir",
scope = "config",
kind = "path",
tokens = true,
pathVars = true
}
--
-- Specify a list of custom options to send to the Qt uic command line.
--
premake.api.register {
name = "qtuicargs",
scope = "config",
kind = "string-list"
}
--
-- Specify a list of custom options to send to the Qt rcc command line.
--
premake.api.register {
name = "qtrccargs",
scope = "config",
kind = "string-list"
}
--
-- Specify the version of Qt.
-- This is used to determine the private header path when adding private modules.
-- If unspecified, the addon will scan `qtincludepath .. "/QtCore/qconfig.h"` and `qglobal.h`
-- for the version string.
--
premake.api.register {
name = "qtversion",
scope = "config",
kind = "string"
}
--
-- This command is used to tell Qt tools to store their command line arguments
-- in a file if the size of the command line is greater than the limit
--
premake.api.register {
name = "qtcommandlinesizelimit",
scope = "config",
kind = "integer"
}
--
-- Private use only : used by the addon to know if qt has already been enabled or not
--
premake.api.register {
name = "qtenabled",
scope = "project",
kind = "boolean"
}
--
-- Always load
--
return function () return true end