-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PyQScintilla api files setup for local compiling of pap file
- Update and concatenate sip-built api files into PyQGIS.api - Move python/qgis/api to python/qsci_apis for future api selection and compiling module - Add base version api files for python components
- Loading branch information
Showing
15 changed files
with
53,995 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SET(QGIS_PYTHON_API_FILE "${CMAKE_BINARY_DIR}/python/qsci_apis/PyQGIS.api") | ||
|
||
IF(EXISTS "${CMAKE_BINARY_DIR}/python/qgis.gui.api") | ||
FILE(READ "${CMAKE_BINARY_DIR}/python/qgis.gui.api" FILE_CONTENT) | ||
STRING(REGEX MATCHALL "gui\\.QgisInterface([^\n]+)" MATCHED_CONTENT "${FILE_CONTENT}") | ||
FOREACH(matchedLine ${MATCHED_CONTENT}) | ||
STRING(REGEX REPLACE "gui\\.QgisInterface(.*)" "qgis.utils.iface\\1\n" MODIFIED_MATCH "${matchedLine}") | ||
FILE(APPEND "${QGIS_PYTHON_API_FILE}" "${MODIFIED_MATCH}") | ||
ENDFOREACH(matchedLine) | ||
ENDIF(EXISTS "${CMAKE_BINARY_DIR}/python/qgis.gui.api") | ||
|
||
FOREACH(apiFile qgis.core.api qgis.gui.api qgis.analysis.api qgis.networkanalysis.api) | ||
SET(api "${CMAKE_BINARY_DIR}/python/${apiFile}") | ||
IF(EXISTS "${api}") | ||
FILE(READ "${api}" FILE_CONTENT) | ||
STRING(REGEX REPLACE "([^\n]+)" "qgis.\\1" MODIFIED_CONTENT "${FILE_CONTENT}") | ||
FILE(APPEND "${QGIS_PYTHON_API_FILE}" "${MODIFIED_CONTENT}") | ||
ENDIF(EXISTS "${api}") | ||
ENDFOREACH(apiFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SET (QSCI_OUTPUT_DIR ${PYTHON_SITE_PACKAGES_DIR}/qsci_apis) | ||
FILE(GLOB API_FILES *.pap *.api) | ||
INSTALL(FILES ${API_FILES} DESTINATION ${QSCI_OUTPUT_DIR}) |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.