Skip to content

Commit

Permalink
make sip bindings to qscintilla derived classes optional (replaces 7e…
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 23, 2014
1 parent e47f111 commit 3988ad0
Show file tree
Hide file tree
Showing 59 changed files with 19 additions and 7,161 deletions.
5 changes: 5 additions & 0 deletions cmake/FindQsci.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ ELSE(EXISTS QSCI_MOD_VERSION_STR)
ENDIF(qsci_ver)

IF(QSCI_FOUND)
FIND_PATH(QSCI_SIP_DIR
NAMES Qsci/qscimod4.sip
PATHS ${PYQT4_SIP_DIR}
)

IF(NOT QSCI_FIND_QUIETLY)
MESSAGE(STATUS "Found QScintilla2 PyQt4 module: ${QSCI_MOD_VERSION_STR}")
ENDIF(NOT QSCI_FIND_QUIETLY)
Expand Down
1 change: 0 additions & 1 deletion cmake/FindQsci.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@
except ImportError:
VER = ""


print("qsci_version_str:%s" % VER)
3 changes: 1 addition & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ CMAKE_OPTS := \
-DWITH_INTERNAL_PYGMENTS=FALSE \
-DWITH_INTERNAL_DATEUTIL=FALSE \
-DWITH_INTERNAL_PYTZ=FALSE \
-DWITH_INTERNAL_SIX=FALSE \
-DWITH_INTERNAL_QSCINTILLA2_SIPS=TRUE
-DWITH_INTERNAL_SIX=FALSE

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
Expand Down
9 changes: 6 additions & 3 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ INCLUDE_DIRECTORIES(
FILE(GLOB_RECURSE sip_files_gui gui/*.sip)
SET(SIP_EXTRA_FILES_DEPEND ${sip_files_core} ${sip_files_gui})
SET(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/qgis.gui.api)
IF(WITH_INTERNAL_QSCINTILLA2_SIPS)
SET(SIP_EXTRA_OPTIONS ${SIP_EXTRA_OPTIONS} -I ${CMAKE_CURRENT_SOURCE_DIR}/ext-libs/python-qscintilla2)
ENDIF(WITH_INTERNAL_QSCINTILLA2_SIPS)
IF(QSCI_SIP_DIR)
SET(SIP_EXTRA_OPTIONS ${SIP_EXTRA_OPTIONS} -I ${QSCI_SIP_DIR})
ELSE(QSCI_SIP_DIR)
MESSAGE(STATUS "Qsci sip file not found - disabling bindings for derived classes")
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_QSCI_SIP)
ENDIF(QSCI_SIP_DIR)

IF(UNIX AND NOT SIP_VERSION_NUM LESS 265984)
SET(SIP_EXTRA_OPTIONS -P ${SIP_EXTRA_OPTIONS})
Expand Down
59 changes: 0 additions & 59 deletions python/ext-libs/python-qscintilla2/Qsci/qsciabstractapis.sip

This file was deleted.

75 changes: 0 additions & 75 deletions python/ext-libs/python-qscintilla2/Qsci/qsciapis.sip

This file was deleted.

147 changes: 0 additions & 147 deletions python/ext-libs/python-qscintilla2/Qsci/qscicommand.sip

This file was deleted.

54 changes: 0 additions & 54 deletions python/ext-libs/python-qscintilla2/Qsci/qscicommandset.sip

This file was deleted.

Loading

0 comments on commit 3988ad0

Please sign in to comment.