mirror of
https://github.com/videolan/vlc.git
synced 2025-01-27 10:06:08 +08:00
Generate libvlc.sym separately from vlc_symbols.h
This commit is contained in:
parent
3ebd0d5b74
commit
04d60a3e90
@ -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
|
||||
|
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user