Generate libvlc.sym separately from vlc_symbols.h

This commit is contained in:
Rémi Denis-Courmont 2006-11-22 12:57:04 +00:00
parent 3ebd0d5b74
commit 04d60a3e90
2 changed files with 5 additions and 7 deletions

View File

@ -386,9 +386,11 @@ stamp-api: Makefile.in $(HEADERS_include) ../vlc-api.pl
top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
touch stamp-api
libvlc.sym:
rm -f stamp-api
$(MAKE) stamp-api
libvlc.sym: $(HEADERS_include)
rm -f libvlc.sym
(cd $(srcdir) && cat $(HEADERS_include) ) | \
sed -ne 's/^.*VLC_EXPORT\s*(\s*\w.*\S\s*,\s*\(\w*\)\s*,\s*(\s*\w.*\S\s*)\s*)[^)]*$$/\1/p' \
> libvlc.sym
###############################################################################
# Unit/regression test

View File

@ -32,19 +32,15 @@ my $srcdir = $ENV{'top_srcdir'};
#
my %new_APIs;
my $new_sym = IO::Handle->new();
open $new_sym, '> libvlc.sym' or die "libvlc.sym: $!\n";
while (<STDIN>)
{
if (/VLC_EXPORT\(\s*(\w.*\S)\s*,\s*(\w*)\s*,\s*\(\s*(\w.*\S)\s*\)\s*\)[^)]*$/)
{
$new_APIs{$2} = [ ( $1, $3 ) ];
print { $new_sym } "$2\n";
}
}
close $new_sym;
#
# Write header's header
#