Skip to content

Commit

Permalink
fix SIP feature
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 24, 2021
1 parent 1851e37 commit 51f25b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/CMakeLists.txt
Expand Up @@ -194,6 +194,8 @@ if (WITH_GUI)

GENERATE_SIP_PYTHON_MODULE_CODE(qgis._gui gui/gui.sip "${sip_files_gui}" cpp_files)
BUILD_SIP_PYTHON_MODULE(qgis._gui gui/gui.sip ${cpp_files} "" qgis_core qgis_gui)
else()
set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_GUI)
endif()

# 3D module
Expand Down
1 change: 1 addition & 0 deletions python/core/core.sip.in
Expand Up @@ -99,6 +99,7 @@ done:
%Import QtWidgets/QtWidgetsmod.sip
%Import QtPositioning/QtPositioningmod.sip

%Feature HAVE_GUI
%Feature ANDROID
%Feature VECTOR_MAPPED_TYPE

Expand Down
1 change: 0 additions & 1 deletion python/gui/gui.sip.in
Expand Up @@ -3,7 +3,6 @@

${DEFAULTDOCSTRINGSIGNATURE}

%Feature HAVE_GUI
%Feature HAVE_QSCI_SIP

%Import core/core.sip
Expand Down

0 comments on commit 51f25b7

Please sign in to comment.