Re: gdk-config or gdk option to gtk-config
- From: Yasushi Shoji <yashi yashi com>
- To: hp redhat com
- Cc: gtk-devel-list gnome org
- Subject: Re: gdk-config or gdk option to gtk-config
- Date: Tue, 14 Nov 2000 18:12:08 -0500
hi,
it's been while but i made a patch to gtk-config-2.0.in which takes
gdk option. i'm sure there should be better way, but it at least
works.
regards,
--
yashi
--- gtk-config-2.0.in~ Fri Jul 14 21:07:42 2000
+++ gtk-config-2.0.in Tue Nov 14 18:06:00 2000
@@ -22,6 +22,7 @@
[--libs]
[--cflags]
Libraries:
+ gdk
gtk
gthread
EOF
@@ -33,6 +34,7 @@
fi
lib_gtk=yes
+lib_gdk=yes
while test $# -gt 0; do
case "$1" in
@@ -69,6 +71,10 @@
--libs)
echo_libs=yes
;;
+ gdk)
+ lib_gdk=yes
+ lib_gtk=no
+ ;;
gtk)
lib_gtk=yes
;;
@@ -90,6 +96,14 @@
echo $exec_prefix
fi
+if test "$lib_gdk" = "yes"; then
+ gdk_libs="-lgdk_pixbuf-1.3 -lgdk-$target-1.3"
+fi
+
+if test "$lib_gtk" = "yes"; then
+ gtk_libs="-lgtk-$target-1.3"
+fi
+
if test "$lib_gthread" = "yes"; then
glib_cflags="$glib_thread_cflags"
glib_libs="$glib_thread_libs"
@@ -113,6 +127,6 @@
fi
done
- echo $libdirs @more_ldflags@ -lgtk-$target-1.3 -lgdk_pixbuf-1.3 -lgdk-$target-1.3 $my_glib_libs @INTLLIBS@ @PANGO_LIBS@ @more_libs@ @GDK_WLIBS@ @MATH_LIB@
+ echo $libdirs @more_ldflags@ $gtk_libs $gdk_libs $my_glib_libs @INTLLIBS@ @PANGO_LIBS@ @more_libs@ @GDK_WLIBS@ @MATH_LIB@
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]