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
054bb303
Commit
054bb303
authored
Aug 14, 2014
by
Ghislain MARY
Browse files
Better handling of dependencies for the Python wrapper targets.
parent
4e200c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
configs/python/CMakeLists.txt
configs/python/CMakeLists.txt
+3
-3
No files found.
configs/python/CMakeLists.txt
View file @
054bb303
...
...
@@ -64,13 +64,13 @@ file(GLOB XML_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/linphone-*/xml")
# Generate the API in XML format from the doxygen XML files
add_custom_target
(
api_xml
${
PYTHON_EXECUTABLE
}
"
${
LINPHONE_SOURCE_DIR
}
/tools/genapixml.py"
"--pretty"
"--outputfile"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/api.xml"
"
${
XML_DIR
}
"
DEPENDS
${
XML_FILES
}
DEPENDS
${
XML_FILES
}
"
${
LINPHONE_SOURCE_DIR
}
/tools/genapixml.py"
)
# Generate the Python wrapper source code for the API in XML format
add_custom_target
(
pylinphone_source ALL
${
PYTHON_EXECUTABLE
}
"
${
LINPHONE_SOURCE_DIR
}
/tools/python/apixml2python.py"
"--outputfile"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/linphone.c"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/api.xml"
DEPENDS api_xml
DEPENDS api_xml
"
${
LINPHONE_SOURCE_DIR
}
/tools/python/apixml2python.py"
"
${
LINPHONE_SOURCE_DIR
}
/tools/python/apixml2python/linphone.py"
WORKING_DIRECTORY
"
${
LINPHONE_SOURCE_DIR
}
/tools/python"
)
...
...
@@ -131,7 +131,7 @@ install(FILES ${MSI_FILENAME} DESTINATION "." RENAME "linphone-${LINPHONE_GIT_RE
set
(
ZIP_FILENAME
"
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/linphone-
${
LINPHONE_VERSION
}
.win32.zip"
)
add_custom_target
(
pylinphone_zip ALL
${
PYTHON_EXECUTABLE
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py"
"bdist"
"--format=zip"
DEPENDS pylinphone_
zip
DEPENDS pylinphone_
msi
)
install
(
FILES
${
ZIP_FILENAME
}
DESTINATION
"."
RENAME
"linphone-
${
LINPHONE_GIT_REVISION
}
.win32-py
${
PYTHON_VERSION_MAJOR
}
.
${
PYTHON_VERSION_MINOR
}
.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