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
648ed65b
Commit
648ed65b
authored
Jul 04, 2007
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings: setup.py, workaround vlc-config 'peculiarities'
parent
70813a4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
bindings/python/setup.py
bindings/python/setup.py
+23
-2
No files found.
bindings/python/setup.py
View file @
648ed65b
...
...
@@ -13,6 +13,23 @@ if not top_builddir:
top_builddir
=
os
.
path
.
join
(
'..'
,
'..'
)
os
.
environ
[
'top_builddir'
]
=
top_builddir
# Determine the extra link args. Normally, vlc-config should take care
# of this and return the right path values, from a development tree or
# an installed version.
libtool
=
False
linkargs
=
[]
d
=
os
.
path
.
join
(
top_builddir
,
'src'
,
'.libs'
)
if
os
.
path
.
exists
(
d
):
# We are in a development tree, which was compiled with libtool
libtool
=
True
linkargs
=
[
'-L'
+
d
]
else
:
d
=
os
.
path
.
join
(
top_builddir
,
'src'
)
# We are in a development tree, which was compiled without libtool
if
os
.
path
.
exists
(
d
):
linkargs
=
[
'-L'
+
d
]
# For out-of-tree compilations
try
:
srcdir
=
os
.
environ
[
'srcdir'
]
except
KeyError
:
...
...
@@ -59,10 +76,14 @@ def get_ldflags():
ldflags
=
[]
if
os
.
sys
.
platform
==
'darwin'
:
ldflags
=
"-read_only_relocs warning"
.
split
()
ldflags
.
extend
(
os
.
popen
(
'%s --libs
vlc
external'
%
vlcconfig
,
ldflags
.
extend
(
os
.
popen
(
'%s --libs external'
%
vlcconfig
,
'r'
).
readline
().
rstrip
().
split
())
if
os
.
sys
.
platform
==
'darwin'
:
ldflags
.
append
(
'-lstdc++'
)
if
not
libtool
:
# vlc-config is broken and gives a -lvlc-control which
# does not exist if libtool is disabled.
ldflags
.
remove
(
'-lvlc-control'
)
return
ldflags
#source_files = [ 'vlc_module.c', 'vlc_mediacontrol.c',
...
...
@@ -78,7 +99,7 @@ vlclocal = Extension('vlc',
'/usr/win32/include'
],
extra_objects
=
[
],
extra_compile_args
=
get_cflags
(),
extra_link_args
=
[
'-L'
+
os
.
path
.
join
(
top_builddir
,
'src'
,
'.libs'
)
]
+
get_ldflags
(),
extra_link_args
=
linkargs
+
get_ldflags
(),
)
setup
(
name
=
'VLC Bindings'
,
...
...
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