mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

This was not working properly and needed some external build script as well as the stamp/bogus header trick like for other similar in-source generated code. In the same time, I get rid of old meson code which was meant for when using meson < 0.57.0 (since our requirement is now meson >= 0.59.0).
20 lines
372 B
Bash
20 lines
372 B
Bash
#!/bin/sh
|
|
|
|
PERL="$1"
|
|
top_srcdir="$2"
|
|
top_builddir="$3"
|
|
|
|
# Environment for the pdbgen.pl file.
|
|
destdir=`cd "$top_srcdir" && pwd`
|
|
export destdir
|
|
builddir=`cd "$top_builddir" && pwd`
|
|
export BUILD builddir
|
|
|
|
cd "$top_srcdir"/pdb
|
|
shift 3
|
|
$PERL enumgen.pl "${@}"
|
|
RET=$?
|
|
if [ $RET -eq 0 ]; then
|
|
echo "/* Generated on `date`. */" > $top_builddir/pdb/stamp-enumgen.h
|
|
fi
|
|
exit $RET
|