Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c2d31f45
Commit
c2d31f45
authored
Nov 15, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python/bindings/setup.py: fix python binding building (ref. r17640)
parent
989bdaf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
bindings/python/setup.py
bindings/python/setup.py
+4
-8
No files found.
bindings/python/setup.py
View file @
c2d31f45
...
...
@@ -21,9 +21,6 @@ except KeyError:
if
not
srcdir
:
srcdir
=
'.'
vlclib
=
"-lvlc"
picflag
=
''
def
get_vlcconfig
():
vlcconfig
=
None
for
n
in
(
'vlc-config'
,
...
...
@@ -51,7 +48,7 @@ def get_cflags():
if
vlcconfig
is
None
:
return
[]
else
:
cflags
=
os
.
popen
(
'%s --cflags'
%
vlcconfig
,
'r'
).
readline
().
rstrip
().
split
()
cflags
=
os
.
popen
(
'%s --cflags
vlc
'
%
vlcconfig
,
'r'
).
readline
().
rstrip
().
split
()
return
cflags
def
get_ldflags
():
...
...
@@ -62,8 +59,7 @@ def get_ldflags():
ldflags
=
[]
if
os
.
sys
.
platform
==
'darwin'
:
ldflags
=
"-read_only_relocs warning"
.
split
()
ldflags
.
extend
(
os
.
popen
(
'%s --libs vlc %s'
%
(
vlcconfig
,
picflag
),
ldflags
.
extend
(
os
.
popen
(
'%s --libs vlc external'
%
vlcconfig
,
'r'
).
readline
().
rstrip
().
split
())
if
os
.
sys
.
platform
==
'darwin'
:
ldflags
.
append
(
'-lstdc++'
)
...
...
@@ -80,9 +76,9 @@ vlclocal = Extension('vlc',
os
.
path
.
join
(
srcdir
,
'..'
,
'..'
,
'include'
),
srcdir
,
'/usr/win32/include'
],
extra_objects
=
[
vlclib
],
extra_objects
=
[
],
extra_compile_args
=
get_cflags
(),
extra_link_args
=
[
'-L'
+
os
.
path
.
join
(
top_builddir
,
'src'
)
]
+
get_ldflags
(),
extra_link_args
=
[
'-L'
+
os
.
path
.
join
(
top_builddir
,
'src'
,
'.libs'
)
]
+
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