| 1 |
#!/bin/csh |
| 2 |
# |
| 3 |
# Usage: include-config [-local local_libpath] glib_ver gtk_ver |
| 4 |
# |
| 5 |
# |
| 6 |
# Use either the pkg-config on the path or the one |
| 7 |
# specified by the "-local" flag. |
| 8 |
# |
| 9 |
# In either case pkg-config is passed the glib and gtk versions. |
| 10 |
# |
| 11 |
|
| 12 |
set pkg_config = 'pkg-config' |
| 13 |
|
| 14 |
if ("$1" == '-local') then # quotes protect the "-" in -local |
| 15 |
set local_path = $2 |
| 16 |
shift ; shift |
| 17 |
set pkg_config = $local_path/bin/$pkg_config |
| 18 |
setenv PKG_CONFIG_PATH $local_path/lib/pkgconfig |
| 19 |
endif |
| 20 |
|
| 21 |
|
| 22 |
echo -n "-DGTK2 " |
| 23 |
|
| 24 |
$pkg_config --cflags $1 $2 |
| 25 |
shift; shift; |
| 26 |
echo -n $* |
| 27 |
echo -n " " |
| 28 |
|