Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
86dd8dbb
Commit
86dd8dbb
authored
Sep 10, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure libvlc only export symbols from libvlc API
parent
a1b21996
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
src/Makefile.am
src/Makefile.am
+6
-2
vlc-api.pl
vlc-api.pl
+6
-2
No files found.
src/Makefile.am
View file @
86dd8dbb
...
@@ -158,8 +158,8 @@ libvlc_la_LIBADD = $(INCLUDED_LIBINTL)
...
@@ -158,8 +158,8 @@ libvlc_la_LIBADD = $(INCLUDED_LIBINTL)
libvlc_la_CFLAGS
=
`
$(VLC_CONFIG)
--cflags
vlc
`
libvlc_la_CFLAGS
=
`
$(VLC_CONFIG)
--cflags
vlc
`
libvlc_la_CXXFLAGS
=
`
$(VLC_CONFIG)
--cxxflags
vlc
`
libvlc_la_CXXFLAGS
=
`
$(VLC_CONFIG)
--cxxflags
vlc
`
libvlc_la_OBJCFLAGS
=
`
$(VLC_CONFIG)
--objcflags
vlc
`
libvlc_la_OBJCFLAGS
=
`
$(VLC_CONFIG)
--objcflags
vlc
`
libvlc_la_LDFLAGS
=
`
$(VLC_CONFIG)
--libs
vlc
builtin
|sed
-e
's/\(modules\/[^ ]*\)\.a /\1_builtin.la /g'
`
-no-undefined
libvlc_la_LDFLAGS
=
`
$(VLC_CONFIG)
--libs
vlc
builtin
|sed
-e
's/\(modules\/[^ ]*\)\.a /\1_builtin.la /g'
`
-no-undefined
-export-symbols
libvlc.sym
libvlc_la_DEPENDENCIES
=
stamp-builtins
libvlc_la_DEPENDENCIES
=
stamp-builtins
stamp-api
if
HAVE_BEOS
if
HAVE_BEOS
...
@@ -378,6 +378,10 @@ stamp-api: Makefile.in $(HEADERS_include) ../vlc-api.pl
...
@@ -378,6 +378,10 @@ stamp-api: Makefile.in $(HEADERS_include) ../vlc-api.pl
top_srcdir
=
"
$(top_srcdir)
"
perl
$(top_srcdir)
/vlc-api.pl
top_srcdir
=
"
$(top_srcdir)
"
perl
$(top_srcdir)
/vlc-api.pl
touch
stamp-api
touch
stamp-api
libvlc.sym
:
rm
-f
stamp-api
$(MAKE)
stamp-api
###############################################################################
###############################################################################
# Unit/regression test
# Unit/regression test
###############################################################################
###############################################################################
...
...
vlc-api.pl
View file @
86dd8dbb
...
@@ -31,20 +31,24 @@ my $srcdir = $ENV{'top_srcdir'};
...
@@ -31,20 +31,24 @@ my $srcdir = $ENV{'top_srcdir'};
# Reads to-be exported APIs
# Reads to-be exported APIs
#
#
my
%
new_APIs
;
my
%
new_APIs
;
my
$new_sym
=
IO::
Handle
->
new
();
open
$new_sym
,
'
> libvlc.sym
'
or
die
"
libvlc.sym: $!
\n
";
while
(
<
STDIN
>
)
while
(
<
STDIN
>
)
{
{
if
(
/VLC_EXPORT\(\s*(\w.*\S)\s*,\s*(\w*)\s*,\s*\(\s*(\w.*\S)\s*\)\s*\)[^)]*$/
)
if
(
/VLC_EXPORT\(\s*(\w.*\S)\s*,\s*(\w*)\s*,\s*\(\s*(\w.*\S)\s*\)\s*\)[^)]*$/
)
{
{
$new_APIs
{
$2
}
=
[
(
$1
,
$3
)
];
$new_APIs
{
$2
}
=
[
(
$1
,
$3
)
];
print
{
$new_sym
}
"
$2
\n
";
}
}
}
}
close
$new_sym
;
#
#
# Write header's header
# Write header's header
#
#
my
$new_sym
=
IO::
Handle
->
new
();
open
$new_sym
,
'
> vlc_symbols.h.new
'
or
die
"
vlc_symbols.h.new: $!
\n
";
open
$new_sym
,
'
> vlc_symbols.h.new
'
or
die
"
$!
";
print
{
$new_sym
}
print
{
$new_sym
}
"
/*
\n
"
.
"
/*
\n
"
.
"
* This file is automatically generated. DO NOT EDIT!
\n
"
.
"
* This file is automatically generated. DO NOT EDIT!
\n
"
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment