]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/qt/Config.in
Rename BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS
[coffee/buildroot.git] / package / qt / Config.in
1 comment "qt needs a toolchain w/ C++, threads"
2         depends on !BR2_avr32
3         depends on BR2_USE_MMU
4         depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
5
6 menuconfig BR2_PACKAGE_QT
7         bool "Qt"
8         depends on !BR2_avr32 # lacks TLS
9         depends on BR2_USE_MMU # fork
10         depends on BR2_INSTALL_LIBSTDCPP
11         depends on BR2_TOOLCHAIN_HAS_THREADS
12         help
13           Qt is a cross-platform application and UI framework for
14           developers using C++.
15
16           http://qt-project.org
17
18 if BR2_PACKAGE_QT
19
20 config BR2_PACKAGE_QT_DEBUG
21         bool "Compile with debug support"
22         help
23           If unsure, say N.
24
25 config BR2_PACKAGE_QT_DEMOS
26         bool "Compile and install Qt demos (with code)"
27         select BR2_PACKAGE_QT_GUI_MODULE
28         help
29           If unsure, say N.
30
31 config BR2_PACKAGE_QT_TRANSLATION_FILES
32         bool "Install translation files"
33         help
34           Install binary .qm translation files.
35           Say y if you need these files. They will take about 8 MB
36           on the target root filesystem.
37
38 config BR2_PACKAGE_QT_EXAMPLES
39         bool "Compile and install Qt examples (with code)"
40         select BR2_PACKAGE_QT_GUI_MODULE
41         help
42           If unsure, say N.
43
44 choice
45         prompt "Library type"
46         help
47           Selects the library type: Shared or Static
48
49 config BR2_PACKAGE_QT_SHARED
50         bool "Shared library"
51         depends on !BR2_STATIC_LIBS
52         help
53           Create and use shared Qt libraries.
54           If you have multiple programs that depend on Qt or intend to use
55           plugins, say Y.
56
57 config BR2_PACKAGE_QT_STATIC
58         bool "Static Library"
59         help
60           Create and use static Qt libraries.
61           If you don't have multiple programs on the target that depends on
62           Qt, then this will save you quite some of storage space.
63           If unsure, say Y.
64
65 endchoice
66
67 config BR2_PACKAGE_QT_LICENSE_APPROVED
68         bool "Approve free license"
69         help
70           Select this if you approve one of the available free licenses for the
71           Qt4 library.
72           By doing this you will not be asked while the library is compiled.
73           Please read and understand the license terms before approving this.
74
75           LGPL v2.1: http://doc.trolltech.com/4.5/lgpl.html
76           GPL  v3.0: http://doc.trolltech.com/4.5/gpl.html
77
78 config BR2_PACKAGE_QT_CONFIG_FILE
79         string "Config file"
80         help
81           Configure options allow to set which modules are being
82           compiled or not in Qt, but Qt also provide a more
83           fine-grained mechanism to configure which features should be
84           enabled or disabled, through a header file. Examples of such
85           header files can be found in src/corelib/global/qconfig-*.h
86           in the Qt sources.
87
88           This option allows to set the path of such a configuration
89           file, which Buildroot will give to Qt at compile time.
90
91 config BR2_PACKAGE_QT_QT3SUPPORT
92         bool "Compatibility with Qt3"
93         depends on BR2_PACKAGE_QT_GUI_MODULE
94         help
95           Turns on support for older Qt3. This will create an additional
96           library with proxy code and increase the space required on target.
97           If unsure say n.
98
99 config BR2_PACKAGE_QT_GUI_MODULE
100         bool "Gui Module"
101         select BR2_PACKAGE_QT_NETWORK
102         default y
103         help
104           Turns on support for Gui applications. If your board doesn't have
105           video output, or you don't require Qt GUI, say n.
106
107 if BR2_PACKAGE_QT_GUI_MODULE
108 menu "Pixel depths"
109 comment "Deselecting each option leads to Qt's default (8,16,32)"
110
111 config BR2_PACKAGE_QT_PIXEL_DEPTH_1
112         bool "1 bpp, black/white"
113
114 config BR2_PACKAGE_QT_PIXEL_DEPTH_4
115         bool "4 bpp, grayscale"
116
117 config BR2_PACKAGE_QT_PIXEL_DEPTH_8
118         bool "8 bpp, paletted"
119         default y
120
121 config BR2_PACKAGE_QT_PIXEL_DEPTH_12
122         bool "12 bpp, rgb 4-4-4"
123
124 config BR2_PACKAGE_QT_PIXEL_DEPTH_15
125         bool "15 bpp, rgb 5-5-5"
126
127 config BR2_PACKAGE_QT_PIXEL_DEPTH_16
128         bool "16 bpp, rgb 5-6-5"
129         default y
130
131 config BR2_PACKAGE_QT_PIXEL_DEPTH_18
132         bool "18 bpp, rgb 6-6-6"
133
134 config BR2_PACKAGE_QT_PIXEL_DEPTH_24
135         bool "24 bpp, rgb 8-8-8"
136
137 config BR2_PACKAGE_QT_PIXEL_DEPTH_32
138         bool "32 bpp, argb 8-8-8-8 and rgb 8-8-8"
139         default y
140
141 endmenu
142
143 menu "Fonts"
144
145 config BR2_PACKAGE_QT_FONT_MICRO
146         bool "micro"
147         default y
148
149 config BR2_PACKAGE_QT_FONT_FIXED
150         bool "fixed"
151         default y
152
153 config BR2_PACKAGE_QT_FONT_HELVETICA
154         bool "helvetica"
155         default y
156
157 config BR2_PACKAGE_QT_FONT_JAPANESE
158         bool "japanese"
159
160 config BR2_PACKAGE_QT_FONT_UNIFONT
161         bool "unicode"
162
163 endmenu
164
165 choice
166         prompt "freetype2 support"
167         default BR2_PACKAGE_QT_NOFREETYPE
168         help
169           Select freetype2 support.
170
171 config BR2_PACKAGE_QT_NOFREETYPE
172         bool "no freetype2 support"
173         help
174           Do not compile in Freetype2 support.
175
176 config BR2_PACKAGE_QT_QTFREETYPE
177         bool "Qt freetype2"
178         help
179           Use the libfreetype bundled with Qt.
180
181 config BR2_PACKAGE_QT_SYSTEMFREETYPE
182         bool "System freetype2"
183         select BR2_PACKAGE_FREETYPE
184         help
185           Use shared libfreetype from the target system.
186           See http://www.freetype.org/
187 endchoice
188
189 config BR2_PACKAGE_QT_GIF
190         bool "Enable GIF support"
191         help
192           This compiles and installs the plugin for GIF reading support.
193
194 config BR2_PACKAGE_QT_LIBMNG
195         bool "Enable libmng support"
196         help
197           This compiles and installs the plugin for MNG support.
198
199 choice
200         prompt "JPEG support"
201         default BR2_PACKAGE_QT_NOJPEG
202         help
203           Select libjpeg support.
204
205 config BR2_PACKAGE_QT_NOJPEG
206         bool "No jpeg support"
207         help
208           Disable JPEG support
209
210 config BR2_PACKAGE_QT_SYSTEMJPEG
211         select BR2_PACKAGE_JPEG
212         bool "System libjpeg"
213         help
214           Link against system libjpeg
215
216 config BR2_PACKAGE_QT_QTJPEG
217         bool "Use Qt bundled libjpeg"
218         help
219           Link against libjpeg proveded with Qt
220 endchoice
221
222 choice
223         prompt "PNG support"
224         default BR2_PACKAGE_QT_NOPNG
225         help
226           Select which library to use if PNG support should be enabled.
227
228 config BR2_PACKAGE_QT_NOPNG
229         bool "No PNG support"
230
231 config BR2_PACKAGE_QT_SYSTEMPNG
232         bool "System libpng"
233         select BR2_PACKAGE_LIBPNG
234
235 config BR2_PACKAGE_QT_QTPNG
236         bool "Use Qt bundled libpng"
237 endchoice
238
239 choice
240         prompt "TIFF support"
241         default BR2_PACKAGE_QT_NOTIFF
242         help
243           Select which library to use if TIFF support should be enabled.
244
245 config BR2_PACKAGE_QT_NOTIFF
246         bool "No TIFF support"
247
248 config BR2_PACKAGE_QT_SYSTEMTIFF
249         bool "System libtiff"
250         select BR2_PACKAGE_TIFF
251
252 config BR2_PACKAGE_QT_QTTIFF
253         bool "Use Qt bundled libtiff"
254 endchoice
255
256 endif # BR2_PACKAGE_QT_GUI_MODULE
257
258 choice
259         prompt "zlib support"
260         default BR2_PACKAGE_QT_QTZLIB
261         help
262           Select zlib support.
263
264 config BR2_PACKAGE_QT_QTZLIB
265         bool "Qt zlib"
266         help
267           Use the zlib bundled with Qt.
268
269 config BR2_PACKAGE_QT_SYSTEMZLIB
270         bool "System zlib"
271         select BR2_PACKAGE_ZLIB
272         help
273           Use the shared zlib from the system.
274 endchoice
275
276 source "package/qt/Config.sql.in"
277 if BR2_PACKAGE_QT_GUI_MODULE
278 source "package/qt/Config.gfx.in"
279 source "package/qt/Config.mouse.in"
280 source "package/qt/Config.keyboard.in"
281
282 config BR2_PACKAGE_QT_PHONON
283         bool "Phonon Module"
284         depends on BR2_PACKAGE_GSTREAMER
285         select BR2_PACKAGE_GST_PLUGINS_BASE
286         default y
287         help
288           Build the Phonon module. Support for different audio/video
289           formats can be configured at the GStreamer package.
290           If unsure, say n.
291
292 comment "Phonon module needs gstreamer"
293         depends on !BR2_PACKAGE_GSTREAMER
294
295 config BR2_PACKAGE_QT_PHONON_BACKEND
296         bool "Phonon Module Backend"
297         depends on BR2_PACKAGE_QT_PHONON
298         help
299           Build the platform Phonon plugin.
300           If unsure, say n.
301
302 config BR2_PACKAGE_QT_OPENGL_ES
303         bool "OpenGL ES v2.x support"
304         depends on BR2_PACKAGE_HAS_LIBGLES
305         depends on BR2_PACKAGE_HAS_LIBEGL
306         help
307           Enable the OpenGL ES v2.x support.
308
309 endif
310
311 config BR2_PACKAGE_QT_DBUS
312         bool "DBus Module"
313         select BR2_PACKAGE_DBUS
314         depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
315         depends on BR2_USE_MMU # dbus
316         help
317           Build the Qt DBus module.
318
319 comment "DBus Module needs a toolchain w/ threads"
320         depends on BR2_USE_MMU
321         depends on !BR2_TOOLCHAIN_HAS_THREADS
322
323 config BR2_PACKAGE_QT_XML
324         bool "XML Module"
325         default y
326         help
327           Build the XML module.
328
329 config BR2_PACKAGE_QT_XMLPATTERNS
330         bool "XML Patterns Module"
331         depends on BR2_PACKAGE_QT_XML
332         help
333           Build QtXmlPatterns module.
334           If unsure, say n
335
336 config BR2_PACKAGE_QT_MULTIMEDIA
337         bool "Multimedia Module"
338         depends on BR2_PACKAGE_QT_GUI_MODULE
339         help
340           Build QtMultimedia module.
341
342 config BR2_PACKAGE_QT_AUDIO_BACKEND
343         bool "QtMultimedia Audio backend"
344         depends on BR2_PACKAGE_QT_MULTIMEDIA
345         select BR2_PACKAGE_ALSA_LIB
346         depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
347         help
348           Build the ALSA audio backend into QtMultimedia
349
350 config BR2_PACKAGE_QT_SVG
351         bool "SVG Module"
352         depends on BR2_PACKAGE_QT_GUI_MODULE
353         help
354           Build the SVG module.
355           If unsure, say n
356
357 config BR2_PACKAGE_QT_NETWORK
358         bool "Network Module"
359         default y
360         help
361           Install the Network module.
362           if unsure, say y
363
364 config BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT
365         bool
366         # see src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h
367         default y if BR2_arm || BR2_armeb || BR2_i386 || BR2_mips || \
368                 BR2_mipsel || BR2_mips64 || BR2_mips64el || BR2_powerpc || \
369                 BR2_sh4 || BR2_sh4eb || BR2_sh4a || BR2_sh4aeb || \
370                 BR2_sparc || BR2_x86_64
371
372 config BR2_PACKAGE_QT_WEBKIT
373         bool "WebKit Module"
374         depends on BR2_PACKAGE_QT_SHARED
375         depends on BR2_PACKAGE_QT_GUI_MODULE
376         depends on BR2_PACKAGE_QT_NETWORK
377         depends on BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT
378         depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # needs pthread_getattr_np()
379         help
380           Build the WebKit module.
381           If unsure, say n.
382
383 comment "WebKit needs shared library/NPTL toolchain/gui/network support"
384         depends on !(BR2_PACKAGE_QT_SHARED && BR2_PACKAGE_QT_GUI_MODULE && BR2_PACKAGE_QT_NETWORK)
385         depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
386         depends on BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT
387
388 config BR2_PACKAGE_QT_STL
389         bool "STL support"
390         help
391           Compile STL support.
392           If unsure, say n.
393
394 config BR2_PACKAGE_QT_OPENSSL
395         bool "Enable OpenSSL support"
396         depends on BR2_PACKAGE_QT_NETWORK
397         select BR2_PACKAGE_OPENSSL
398         help
399           Enable support for the OpenSSL encryption library. If you use
400           QSslSocket say y here, otherwise, say no to save space on the
401           target.
402           If unsure, say n.
403
404 config BR2_PACKAGE_QT_SCRIPT
405         bool "Script Module"
406         depends on BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT
407         depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # needs pthread_getattr_np()
408         default y
409         help
410           Build the Qt Script module.
411           if unsure, say y.
412
413 comment "Script Module needs a toolchain with NPTL"
414         depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
415         depends on BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT
416
417 config BR2_PACKAGE_QT_SCRIPTTOOLS
418         bool "Script Tools Module"
419         depends on BR2_PACKAGE_QT_SCRIPT
420         depends on BR2_PACKAGE_QT_GUI_MODULE
421         help
422           Build the Qt Script Tools module.
423           if unsure, say n.
424
425 config BR2_PACKAGE_QT_DECLARATIVE
426         bool "Declarative module"
427         depends on BR2_PACKAGE_QT_SCRIPT
428         depends on BR2_PACKAGE_QT_GUI_MODULE
429         help
430           Build the Qt Declarative Module for qml support
431           if unsure, say n.
432
433 config BR2_PACKAGE_QT_TEST
434         bool "Test Module"
435         help
436           Install the Test module.
437
438 endif # BR2_PACKAGE_QT