libgtk2: add option to install the gtk-demo program
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
e3d389d6d6
commit
0710636813
|
@ -16,5 +16,12 @@ config BR2_PACKAGE_LIBGTK2
|
||||||
|
|
||||||
http://www.gtk.org/
|
http://www.gtk.org/
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBGTK2_DEMO
|
||||||
|
bool "Install libgtk2 demo program"
|
||||||
|
depends on BR2_PACKAGE_LIBGTK2
|
||||||
|
help
|
||||||
|
The GTK+ source base contains a gtk-demo program. This
|
||||||
|
option allows to install this program to the target.
|
||||||
|
|
||||||
comment "libgtk2 requires a toolchain with WCHAR and C++ support"
|
comment "libgtk2 requires a toolchain with WCHAR and C++ support"
|
||||||
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
|
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
|
||||||
|
|
|
@ -114,11 +114,13 @@ else
|
||||||
LIBGTK2_CONF_OPT += --disable-cups
|
LIBGTK2_CONF_OPT += --disable-cups
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBGTK2_DEMO),)
|
||||||
define LIBGTK2_POST_INSTALL_TWEAKS
|
define LIBGTK2_POST_INSTALL_TWEAKS
|
||||||
rm -rf $(TARGET_DIR)/usr/share/gtk-2.0/demo $(TARGET_DIR)/usr/bin/gtk-demo
|
rm -rf $(TARGET_DIR)/usr/share/gtk-2.0/demo $(TARGET_DIR)/usr/bin/gtk-demo
|
||||||
endef
|
endef
|
||||||
|
|
||||||
LIBGTK2_POST_INSTALL_TARGET_HOOKS += LIBGTK2_POST_INSTALL_TWEAKS
|
LIBGTK2_POST_INSTALL_TARGET_HOOKS += LIBGTK2_POST_INSTALL_TWEAKS
|
||||||
|
endif
|
||||||
|
|
||||||
# We do not build a full version of libgtk2 for the host, because that
|
# We do not build a full version of libgtk2 for the host, because that
|
||||||
# requires compiling Cairo, Pango, ATK and X.org for the
|
# requires compiling Cairo, Pango, ATK and X.org for the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user