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
a9fdfde0
Commit
a9fdfde0
authored
Aug 07, 2014
by
Ghislain MARY
Browse files
Add generation of msi and zip packages for the Python wrapper on Windows.
parent
161e055c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
configs/python/CMakeLists.txt
configs/python/CMakeLists.txt
+18
-2
No files found.
configs/python/CMakeLists.txt
View file @
a9fdfde0
...
...
@@ -63,11 +63,27 @@ file(COPY "${CMAKE_INSTALL_PREFIX}/share/sounds" DESTINATION "${CMAKE_CURRENT_BI
file
(
GLOB_RECURSE LINPHONE_DATA_FILES RELATIVE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone/*"
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/setup.py.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
)
# Generate the installer
if
(
WIN32
)
#set(ENV{VS90COMNTOOLS} "$ENV{VS110COMNTOOLS}")
# Generate the installer
add_custom_command
(
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.exe"
DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.c"
COMMAND
${
PYTHON_EXECUTABLE
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
"bdist_wininst"
)
add_custom_target
(
pylinphone_exe ALL DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.exe"
)
# Generate the msi
add_custom_command
(
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.msi"
DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.c"
COMMAND
${
PYTHON_EXECUTABLE
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
"bdist_msi"
)
add_custom_target
(
pylinphone_msi ALL DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.msi"
)
add_custom_target
(
custom_pylinphone ALL DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.exe"
)
# Generate the zip
add_custom_command
(
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.zip"
DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.c"
COMMAND
${
PYTHON_EXECUTABLE
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
"bdist"
"--format=zip"
)
add_custom_target
(
pylinphone_zip ALL DEPENDS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.zip"
)
endif
()
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