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
2cde2482
Commit
2cde2482
authored
Aug 11, 2014
by
Ghislain MARY
Browse files
Include the msvcr library when building the Python wrapper on Windows.
parent
d8a6a20f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
configs/python/CMakeLists.txt
configs/python/CMakeLists.txt
+13
-0
No files found.
configs/python/CMakeLists.txt
View file @
2cde2482
...
...
@@ -31,6 +31,16 @@ find_package(Linphone REQUIRED)
set
(
LINPHONE_SOURCE_DIR
"
${
CMAKE_SOURCE_DIR
}
/../EP_linphone"
)
if
(
MSVC
)
string
(
REGEX REPLACE
"Visual Studio ([0-9]+)"
"
\\
1"
MSVC_VERSION
"
${
CMAKE_GENERATOR
}
"
)
endif
()
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
find_file
(
MSVCR_LIB msvcr
${
MSVC_VERSION
}
0d.dll PATHS
"C:/Windows/System32"
)
else
()
find_file
(
MSVCR_LIB msvcr
${
MSVC_VERSION
}
0.dll PATHS
"C:/Windows/System32"
)
endif
()
if
(
GIT_EXECUTABLE
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --always
...
...
@@ -68,6 +78,9 @@ endif()
file
(
MAKE_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone"
)
file
(
WRITE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone/__init__.py"
"import linphone"
)
file
(
COPY
${
LINPHONE_DYNAMIC_LIBRARIES
}
DESTINATION
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone"
)
if
(
MSVC
)
file
(
COPY
${
MSVCR_LIB
}
DESTINATION
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone"
)
endif
()
file
(
COPY
"
${
CMAKE_INSTALL_PREFIX
}
/share/images"
DESTINATION
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone/share/"
)
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/"
)
...
...
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