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
4539ff3b
Commit
4539ff3b
authored
Aug 25, 2014
by
Ghislain MARY
Browse files
Build the Python module with -O0 on Linux when in Debug build type.
parent
35319791
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
configs/python/setup.py.cmake
configs/python/setup.py.cmake
+5
-0
No files found.
configs/python/setup.py.cmake
View file @
4539ff3b
...
...
@@ -21,6 +21,7 @@ import string
import sys
from setuptools import setup, Extension
build_type =
"@CMAKE_BUILD_TYPE@"
version =
"@BUILD_VERSION@"
macros =
"@LINPHONE_CPPFLAGS@"
include_dirs =
"@LINPHONE_INCLUDE_DIRS@"
...
...
@@ -38,6 +39,7 @@ libraries = libraries.split(';')
library_dirs = [os.path.
dirname
(
item
)
for item in libraries if os.path.
dirname
(
item
)
!= '']
library_dirs =
list
(
set
(
library_dirs
))
libraries = [os.path.
basename
(
item
)
for item in libraries]
extra_compile_args = []
extra_link_args = []
if sys.platform.
startswith
(
"win32"
)
:
libraries = [string.
replace
(
item, '.lib', ''
)
for item in libraries]
...
...
@@ -52,6 +54,8 @@ else:
extra_link_args.
append
(
"-Wl,--end-group"
)
extra_link_args.
append
(
"-Wl,-rpath=$ORIGIN"
)
libraries = dynamic_libraries
if build_type ==
"Debug"
:
extra_compile_args = [
"-O0"
]
data_files = data_files.
split
(
';'
)
ext =
Extension
(
'linphone',
...
...
@@ -59,6 +63,7 @@ ext = Extension('linphone',
include_dirs = include_dirs,
libraries = libraries,
library_dirs = library_dirs,
extra_compile_args = extra_compile_args,
extra_link_args = extra_link_args,
sources = ['@SOURCE_FILENAME@']
)
...
...
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