hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
config BR2_PACKAGE_QT5BASE
   bool "qt5base"
   select BR2_PACKAGE_ZLIB
   select BR2_PACKAGE_PCRE2
   select BR2_PACKAGE_PCRE2_16
   select BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK if BR2_PACKAGE_LIBOPENSSL
   help
     Qt is a cross-platform application and UI framework for
     developers using C++.
 
     This package corresponds to the qt5base module, which
     contains the base Qt libraries: QtCore, QtNetwork, QtGui,
     QtWidgets, etc.
 
     http://qt.io
 
if BR2_PACKAGE_QT5BASE
 
config BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS
   string "Custom configuration options"
   help
     Define custom qt5 configuration options which can be used to
     enable or disable options not managed by buildroot. These
     options are appended to the ones generated by buildroot and
     passed to qt5base during configuration.
 
     E.g. to remove the Windows Vista style option, add the option
     -no-feature-style_windowsvista.
 
config BR2_PACKAGE_QT5BASE_CONFIG_FILE
   string "Config file"
   help
     Configure options allow to set which modules are being
     compiled or not in Qt, but Qt also provide a more
     fine-grained mechanism to configure which features should be
     enabled or disabled, through a header file. Examples of such
     header files can be found in src/corelib/global/qconfig-*.h
     in the Qt sources.
 
     This option allows to set the path of such a configuration
     file, which Buildroot will give to Qt at compile time.
 
config BR2_PACKAGE_QT5BASE_EXAMPLES
   bool "Compile and install examples (with code)"
   select BR2_PACKAGE_QT5BASE_NETWORK
   select BR2_PACKAGE_QT5BASE_XML
   help
     If unsure, say N.
 
config BR2_PACKAGE_QT5BASE_NETWORK
   def_bool y
 
config BR2_PACKAGE_QT5BASE_CONCURRENT
   bool "concurrent module"
   help
     This options enables the Qt5Concurrent library.
 
config BR2_PACKAGE_QT5BASE_SQL
   def_bool y
 
if BR2_PACKAGE_QT5BASE_SQL
config BR2_PACKAGE_QT5BASE_MYSQL
   bool "MySQL Plugin"
   depends on BR2_USE_MMU # mysql
   select BR2_PACKAGE_MYSQL
   select BR2_PACKAGE_NCURSES
   select BR2_PACKAGE_READLINE
   help
     Build MySQL plugin
     If unsure, say n.
 
config BR2_PACKAGE_QT5BASE_PSQL
   bool "PostgreSQL Plugin"
   depends on BR2_USE_MMU # postgresql
   depends on !BR2_STATIC_LIBS
   depends on BR2_USE_WCHAR # postgresql
   select BR2_PACKAGE_POSTGRESQL
   help
     Build PostgreSQL plugin
     If unsure, say n.
 
comment "PostgreSQL plugin needs a toolchain w/ wchar, dynamic library"
   depends on BR2_USE_MMU
   depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
 
choice
   prompt "SQLite 3 support"
   default BR2_PACKAGE_QT5BASE_SQLITE_NONE
   help
     Select SQLite support.
 
config BR2_PACKAGE_QT5BASE_SQLITE_NONE
   bool "No sqlite support"
   help
     Do not compile any kind of SQLite support.
 
config BR2_PACKAGE_QT5BASE_SQLITE_QT
   bool "Qt SQLite"
   help
     Use Qt bundled SQLite support.
 
config BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM
   bool "System SQLite"
   select BR2_PACKAGE_SQLITE
   select BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA
   help
     Use system SQLite.
 
endchoice
 
endif
 
config BR2_PACKAGE_QT5BASE_TEST
   def_bool y
 
config BR2_PACKAGE_QT5BASE_XML
   def_bool y
 
config BR2_PACKAGE_QT5BASE_GUI
   bool "gui module"
   select BR2_PACKAGE_FREETYPE
   # At least one graphic backend must be enabled, so enable
   # linuxfb if nothing is enabled.
   select BR2_PACKAGE_QT5BASE_LINUXFB if \
          !BR2_PACKAGE_QT5BASE_DIRECTFB && \
          !BR2_PACKAGE_QT5BASE_XCB && \
          !BR2_PACKAGE_QT5BASE_EGLFS
   help
     This option enables the Qt5Gui library.
 
if BR2_PACKAGE_QT5BASE_GUI
 
config BR2_PACKAGE_QT5BASE_WIDGETS
   bool "widgets module"
   select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_QT5BASE_XCB
   help
     This option enables the Qt5Widgets library.
 
comment "OpenGL support needs an OpenGL-capable backend"
   depends on !BR2_PACKAGE_QT5_GL_AVAILABLE
 
config BR2_PACKAGE_QT5BASE_OPENGL
   bool "OpenGL support"
   depends on BR2_PACKAGE_QT5_GL_AVAILABLE
   help
     This option enables OpenGL support.
 
if BR2_PACKAGE_QT5BASE_OPENGL
 
choice
   prompt "OpenGL API"
   help
     Select OpenGL API.
 
config BR2_PACKAGE_QT5BASE_OPENGL_DESKTOP
   bool "Desktop OpenGL"
   depends on BR2_PACKAGE_HAS_LIBGL
   help
     Use desktop OpenGL.
 
config BR2_PACKAGE_QT5BASE_OPENGL_ES2
   bool "OpenGL ES 2.0+"
   depends on BR2_PACKAGE_HAS_LIBGLES
   help
     Use OpenGL ES 2.0 and later versions.
 
endchoice
 
config BR2_PACKAGE_QT5BASE_OPENGL_LIB
   bool "opengl module"
   select BR2_PACKAGE_QT5BASE_WIDGETS
   help
     This option enables the Qt5OpenGL library. This library
     includes OpenGL support classes provided to ease porting
     from Qt 4.x.
 
endif
 
config BR2_PACKAGE_QT5BASE_LINUXFB
   bool "linuxfb support"
 
config BR2_PACKAGE_QT5BASE_DIRECTFB
   bool "directfb support"
   depends on BR2_PACKAGE_DIRECTFB
 
comment "directfb backend available if directfb is enabled"
   depends on !BR2_PACKAGE_DIRECTFB
 
config BR2_PACKAGE_QT5BASE_XCB
   bool "X.org XCB support"
   depends on BR2_PACKAGE_XORG7
   select BR2_PACKAGE_XLIB_LIBX11
   select BR2_PACKAGE_LIBXCB
   select BR2_PACKAGE_XCB_UTIL_IMAGE
   select BR2_PACKAGE_XCB_UTIL_KEYSYMS
   select BR2_PACKAGE_XCB_UTIL_RENDERUTIL
   select BR2_PACKAGE_XCB_UTIL_WM
   select BR2_PACKAGE_LIBXKBCOMMON
 
comment "X.org XCB backend available if X.org is enabled"
   depends on !BR2_PACKAGE_XORG7
 
config BR2_PACKAGE_QT5BASE_EGLFS
   bool "eglfs support"
   depends on BR2_PACKAGE_HAS_LIBEGL
   depends on BR2_PACKAGE_QT5_GL_AVAILABLE
   default y if !BR2_PACKAGE_WAYLAND
   select BR2_PACKAGE_QT5BASE_OPENGL
 
comment "eglfs backend available if OpenGL and EGL are enabled"
   depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_QT5_GL_AVAILABLE
 
config BR2_PACKAGE_QT5BASE_DEFAULT_QPA
   string "Default graphical platform"
   help
     Choose the default platform abstraction to use for graphical
     applications (e.g xcb, linuxfb, eglfs, ...). If this is
     empty, the default for your architecture will be used
     (usually this is eglfs).
 
     You can get a list of supported platforms by running a Qt
     application with the option "-platform help" on your
     target. You can choose a different platform at runtime with
     the -platform option.
 
config BR2_PACKAGE_QT5BASE_PRINTSUPPORT
   depends on BR2_PACKAGE_QT5BASE_WIDGETS
   def_bool y
 
config BR2_PACKAGE_QT5BASE_FONTCONFIG
   bool "fontconfig support"
   select BR2_PACKAGE_FONTCONFIG
   help
     This option enables Fontconfig and Freetype support using
     the system fontconfig and freetype2 libraries.
 
config BR2_PACKAGE_QT5BASE_HARFBUZZ
   bool "harfbuzz support"
   select BR2_PACKAGE_HARFBUZZ if \
       BR2_TOOLCHAIN_HAS_SYNC_4 && \
       BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
   help
     This option enables HarfBuzz support (either system harfbuzz
     if the toolchain supports __sync for 4 bytes, or the qt
     provided one which avoids this dependency by using QAtomic).
 
config BR2_PACKAGE_QT5BASE_GIF
   bool "GIF support"
   help
     This compiles and installs the plugin for GIF reading support.
 
config BR2_PACKAGE_QT5BASE_JPEG
   bool "JPEG support"
   select BR2_PACKAGE_JPEG
   help
     This option enables JPEG support using the system libjpeg
     library.
 
config BR2_PACKAGE_QT5BASE_PNG
   bool "PNG support"
   select BR2_PACKAGE_LIBPNG
   help
     This option enables PNG support using the system libpng
     library.
 
endif
 
config BR2_PACKAGE_QT5BASE_SYSLOG
   bool "syslog support"
   help
     Logs to the standard UNIX logging mechanism.
 
config BR2_PACKAGE_QT5BASE_DBUS
   bool "DBus module"
   depends on BR2_TOOLCHAIN_HAS_THREADS
   depends on BR2_USE_MMU
   select BR2_PACKAGE_DBUS
   help
     This option enables the D-Bus module.
 
config BR2_PACKAGE_QT5BASE_ICU
   bool "Enable ICU support"
   depends on !BR2_BINFMT_FLAT # icu
   depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
   depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
   select BR2_PACKAGE_ICU
   help
     This option enables ICU support in Qt5. This is for example
     needed for Qt5Webkit.
 
comment "icu support needs a toolchain w/ gcc >= 4.9, host gcc >= 4.9"
   depends on !BR2_BINFMT_FLAT
   depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
       !BR2_HOST_GCC_AT_LEAST_4_9
 
config BR2_PACKAGE_QT5BASE_TSLIB
   bool "Enable Tslib support"
   select BR2_PACKAGE_TSLIB
   help
     This options enables the Tslib plugin
 
config BR2_PACKAGE_QT5BASE_USE_RGA
   bool "Enable RGA"
   depends on BR2_PACKAGE_ROCKCHIP_RGA
   help
     This options enables the RGA rendering
 
endif
 
if BR2_PACKAGE_QT5BASE_LINUXFB
 
if BR2_PACKAGE_LIBDRM
 
choice
   prompt "Pixel format of linuxfb drm screen"
   default BR2_PACKAGE_QT5BASE_LINUXFB_RGB565
   help
     Select pixel format of linuxfb drm screen
 
config BR2_PACKAGE_QT5BASE_LINUXFB_RGB565
   bool "rgb565"
 
config BR2_PACKAGE_QT5BASE_LINUXFB_RGB32
   bool "xrgb8888"
 
config BR2_PACKAGE_QT5BASE_LINUXFB_ARGB32
   bool "argb8888"
 
endchoice
 
endif
 
config BR2_PACKAGE_QT5BASE_LINUXFB_DIRECT_PAINTING
   bool "Enable linuxfb direct painting hacks"
   help
     This options enables the linuxfb direct painting hacks
 
endif