Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
add3e331
Commit
add3e331
authored
Oct 28, 2022
by
Christoph Cullmann
🍨
Browse files
move all python stuff really to the python addon
avoids any polution outside of the skeleton plugin
parent
91990314
Pipeline
#257110
failed with stage
in 60 minutes and 15 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
add3e331
...
...
@@ -18,8 +18,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
option
(
BUILD_PYTHON_BINDINDS
"Enable building python bindings"
OFF
)
# We need some parts of the ECM CMake helpers.
find_package
(
ECM
${
KF5_DEP_VERSION
}
QUIET REQUIRED NO_MODULE
)
...
...
addons/CMakeLists.txt
View file @
add3e331
...
...
@@ -5,7 +5,8 @@ endfunction()
# Most plugins will need to link against KF5TextEditor to have access to its plugin interface.
find_package
(
KF5TextEditor
${
KF5_DEP_VERSION
}
QUIET REQUIRED
)
# python plugin
# python plugin, purely optional ATM
option
(
BUILD_PYTHON_BINDINDS
"Enable building python bindings"
OFF
)
if
(
BUILD_PYTHON_BINDINDS
)
ecm_optional_add_subdirectory
(
python
)
endif
()
...
...
addons/python/CMakeLists.txt
View file @
add3e331
...
...
@@ -2,6 +2,9 @@
# Kate Python bindings
#
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
list
(
APPEND CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
remove_definitions
(
-DQT_STRICT_ITERATORS
)
set
(
PYTHON_BINDING_NAMESPACE
"PyKate"
)
...
...
cmake/FindPySide2.cmake
→
addons/python/
cmake/FindPySide2.cmake
View file @
add3e331
File moved
cmake/FindShiboken2.cmake
→
addons/python/
cmake/FindShiboken2.cmake
View file @
add3e331
File moved
cmake/PySide2ModuleBuild.cmake
→
addons/python/
cmake/PySide2ModuleBuild.cmake
View file @
add3e331
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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