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
cd48498a
Commit
cd48498a
authored
Aug 11, 2014
by
Ghislain MARY
Browse files
Include the .pdb file in the Python wrapper when building in debug mode.
parent
2cde2482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
configs/python/CMakeLists.txt
configs/python/CMakeLists.txt
+12
-0
No files found.
configs/python/CMakeLists.txt
View file @
cd48498a
...
...
@@ -85,11 +85,23 @@ file(COPY "${CMAKE_INSTALL_PREFIX}/share/images" DESTINATION "${CMAKE_CURRENT_BI
file
(
COPY
"
${
CMAKE_INSTALL_PREFIX
}
/share/linphone"
DESTINATION
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone/share/"
)
file
(
COPY
"
${
CMAKE_INSTALL_PREFIX
}
/share/sounds"
DESTINATION
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone/share/"
)
file
(
GLOB_RECURSE LINPHONE_DATA_FILES RELATIVE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone/*"
)
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
set
(
PDB_FILENAME
"
${
CMAKE_CURRENT_BINARY_DIR
}
/build/lib.win32-
${
PYTHON_VERSION_MAJOR
}
.
${
PYTHON_VERSION_MINOR
}
/linphone/linphone.pdb"
)
list
(
APPEND LINPHONE_DATA_FILES
${
PDB_FILENAME
}
)
endif
()
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/setup.py.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
)
if
(
WIN32
)
#set(ENV{VS90COMNTOOLS} "$ENV{VS110COMNTOOLS}")
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
add_custom_command
(
OUTPUT
${
PDB_FILENAME
}
DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.c"
COMMAND
${
PYTHON_EXECUTABLE
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
"build"
"--debug"
)
add_custom_target
(
pylinphone_debug ALL DEPENDS
${
PDB_FILENAME
}
)
endif
()
# Generate the installer
set
(
EXE_FILENAME
"
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/linphone-
${
LINPHONE_VERSION
}
.win32-py
${
PYTHON_VERSION_MAJOR
}
.
${
PYTHON_VERSION_MINOR
}
.exe"
)
add_custom_command
(
OUTPUT
${
EXE_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