1 comment "libgtk3 needs a toolchain w/ wchar, threads, C++"
3 depends on BR2_TOOLCHAIN_HAS_SYNC_4
4 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \
5 !BR2_TOOLCHAIN_HAS_THREADS
7 comment "libgtk3 needs an OpenGL or an OpenGL-EGL/wayland backend"
9 depends on BR2_TOOLCHAIN_HAS_SYNC_4
10 depends on !BR2_PACKAGE_HAS_LIBEGL_WAYLAND && \
11 !BR2_PACKAGE_HAS_LIBGL
13 config BR2_PACKAGE_LIBGTK3
15 select BR2_PACKAGE_ATK
16 select BR2_PACKAGE_CAIRO
17 select BR2_PACKAGE_CAIRO_PS
18 select BR2_PACKAGE_CAIRO_PDF
19 select BR2_PACKAGE_CAIRO_SVG
20 select BR2_PACKAGE_LIBEPOXY
21 select BR2_PACKAGE_LIBGLIB2
22 select BR2_PACKAGE_PANGO
23 select BR2_PACKAGE_GDK_PIXBUF
24 # At least one backend is required
25 select BR2_PACKAGE_LIBGTK3_BROADWAY if \
26 !(BR2_PACKAGE_LIBGTK3_X11 || BR2_PACKAGE_LIBGTK3_WAYLAND)
27 depends on BR2_USE_WCHAR # glib2
28 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
29 depends on BR2_USE_MMU # glib2
30 depends on BR2_INSTALL_LIBSTDCPP # pango
31 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango -> harfbuzz
32 depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND || \
35 The GTK+ version 3 graphical user interface library
39 if BR2_PACKAGE_LIBGTK3
41 config BR2_PACKAGE_LIBGTK3_BROADWAY
42 bool "Broadway GDK backend"
45 This enables the Broadway backend for GDK, which provides support
46 for displaying GTK+ applications in a web browser, using HTML5 and
49 For example, to run gtk3-demo on a target which IP address is
50 192.168.0.1 and use it from a web browser, execute the following
53 $ broadwayd -a 192.168.0.1 -p 8080 :2 &
54 $ export GDK_BACKEND=broadway
55 $ export BROADWAY_DISPLAY=:2
58 Then open a web browser at address http://192.168.0.1:8080.
59 Javascript and web sockets should be enabled.
61 comment "Wayland GDK backend needs an OpenGL EGL backend provided by mesa3d w/ headers >= 3.17"
62 depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL || \
63 !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
65 config BR2_PACKAGE_LIBGTK3_WAYLAND
66 bool "Wayland GDK backend"
68 depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND
69 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
70 select BR2_PACKAGE_WAYLAND
71 select BR2_PACKAGE_WAYLAND_PROTOCOLS
72 select BR2_PACKAGE_LIBXKBCOMMON
74 This enables the Wayland backend for GDK.
76 comment "X11 GDK backend needs an OpenGL provider"
77 depends on !BR2_PACKAGE_HAS_LIBGL
79 config BR2_PACKAGE_LIBGTK3_X11
80 bool "X11 GDK backend"
82 depends on BR2_PACKAGE_XORG7
83 depends on BR2_PACKAGE_HAS_LIBGL
84 select BR2_PACKAGE_FONTCONFIG
85 select BR2_PACKAGE_XLIB_LIBX11
86 select BR2_PACKAGE_XLIB_LIBXEXT
87 select BR2_PACKAGE_XLIB_LIBXRENDER
88 select BR2_PACKAGE_XLIB_LIBXI
90 This enables the X11 backend for GDK.
92 config BR2_PACKAGE_LIBGTK3_DEMO
93 bool "Install libgtk3 demo program"
94 select BR2_PACKAGE_SHARED_MIME_INFO
95 select BR2_PACKAGE_HICOLOR_ICON_THEME
97 The GTK+ source base contains a demo program. This
98 option allows to install this program to the target.
100 config BR2_PACKAGE_LIBGTK3_TESTS
101 bool "Install libgtk3 tests"
103 The GTK+ source base contains tests. This option
104 allows to install them to the target.