Add support for class field initializers for classes that are not derived
[vala-lang.git] / vapigen / vala-gen-introspect / vala-gen-introspect.in
blobd8c829b384f27683657ed1285b35e299dc9a321f
1 #!/bin/sh
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 libdir=@libdir@
6 pkglibdir=${libdir}/vala
8 if [ $# -ne 2 ]
9 then
10 echo "Usage: `basename $0` PKGNAME BASEPATH"
11 exit 1
14 PKGNAME=$1
15 PKGBASE=$2/$1
16 PKGPREFIX=`pkg-config --variable=prefix $PKGNAME`
18 PKGFILES=`cat $PKGBASE.files | grep ^[a-zA-Z] | sed -e "s@^@$PKGPREFIX/@"`
20 if [ -e $PKGBASE.excludes ]
21 then
22 FILES=`find $PKGFILES -name "*.h" -or -name "*.so" | grep -v -f $PKGBASE.excludes`
23 else
24 FILES=`find $PKGFILES -name "*.h" -or -name "*.so"`
27 if [ -e $PKGBASE.defines ]
28 then
29 PKGDEFINES=$(cat $PKGBASE.defines)
32 $pkglibdir/gen-introspect --namespace=`cat $PKGBASE.namespace` $PKGDEFINES `pkg-config --cflags $PKGNAME | sed 's/-pthread//g'` $FILES > $PKGBASE.gi