Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
6b8df48a
Commit
6b8df48a
authored
Aug 26, 2014
by
Ghislain MARY
Browse files
Force good order for library paths when building the Python module.
parent
e4783692
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
configs/python/setup.py.cmake
configs/python/setup.py.cmake
+4
-1
No files found.
configs/python/setup.py.cmake
View file @
6b8df48a
...
...
@@ -22,6 +22,8 @@ import sys
from setuptools import setup, Extension
build_type =
"@CMAKE_BUILD_TYPE@"
install_prefix =
"@CMAKE_INSTALL_PREFIX@"
lib_install_prefix = os.path.
join
(
install_prefix, 'lib'
)
version =
"@BUILD_VERSION@"
macros =
"@LINPHONE_CPPFLAGS@"
include_dirs =
"@LINPHONE_INCLUDE_DIRS@"
...
...
@@ -36,8 +38,9 @@ for macro in macros:
define_macros.
append
((
macro, None
))
include_dirs =
list
(
set
(
include_dirs.
split
(
';'
)))
libraries = libraries.
split
(
';'
)
library_dirs = [os.path.
dirname
(
item
)
for item in libraries if os.path.
dirname
(
item
)
!= '']
library_dirs = [os.path.
dirname
(
item
)
for item in libraries if os.path.
dirname
(
item
)
!= ''
and os.path.
dirname
(
item
)
!= lib_install_prefix
]
library_dirs =
list
(
set
(
library_dirs
))
library_dirs.
insert
(
0, lib_install_prefix
)
libraries = [os.path.
basename
(
item
)
for item in libraries]
extra_compile_args = []
extra_link_args = []
...
...
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