mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-15 13:07:14 +00:00

This commit switches from GTK 2.x to GTK 3, applying the following necessary changes: - Do not include individual headers - GtkObject is gone - Convert Glade to GtkBuilder Link: https://docs.gtk.org/gtk3/migrating-2to3.html Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org>
29 lines
597 B
Bash
Executable File
29 lines
597 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
set -eu
|
|
|
|
cflags=$1
|
|
libs=$2
|
|
|
|
PKG=gtk+-3.0
|
|
|
|
if [ -z "$(command -v ${HOSTPKG_CONFIG})" ]; then
|
|
echo >&2 "*"
|
|
echo >&2 "* 'make gconfig' requires '${HOSTPKG_CONFIG}'. Please install it."
|
|
echo >&2 "*"
|
|
exit 1
|
|
fi
|
|
|
|
if ! ${HOSTPKG_CONFIG} --exists $PKG; then
|
|
echo >&2 "*"
|
|
echo >&2 "* Unable to find the GTK+ installation. Please make sure that"
|
|
echo >&2 "* the GTK 3 development package is correctly installed."
|
|
echo >&2 "* You need $PKG"
|
|
echo >&2 "*"
|
|
exit 1
|
|
fi
|
|
|
|
${HOSTPKG_CONFIG} --cflags ${PKG} > ${cflags}
|
|
${HOSTPKG_CONFIG} --libs ${PKG} > ${libs}
|