mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 02:52:12 +01:00
Don't install Python extensions when Python support is disabled
This commit is contained in:
parent
43e886a1b0
commit
791c9f6b1d
|
@ -104,6 +104,9 @@ find_package(PythonLibs "3.0")
|
||||||
set_package_properties(PySide2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
set_package_properties(PySide2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
||||||
set_package_properties(Shiboken2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
set_package_properties(Shiboken2 PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
||||||
set_package_properties(PythonLibs PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
set_package_properties(PythonLibs PROPERTIES DESCRIPTION "Python plugins" TYPE OPTIONAL)
|
||||||
|
if (PySide2_FOUND AND Shiboken2_FOUND AND PythonLibs_FOUND)
|
||||||
|
set(ENABLE_PYTHON_PLUGINS TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Git revision
|
# Git revision
|
||||||
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
||||||
|
|
|
@ -19,7 +19,7 @@ if (KF5Wallet_FOUND)
|
||||||
add_subdirectory(KWalletPasswords)
|
add_subdirectory(KWalletPasswords)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (PySide2_FOUND AND Shiboken2_FOUND AND PythonLibs_FOUND)
|
if (ENABLE_PYTHON_PLUGINS)
|
||||||
add_subdirectory(PyFalkon)
|
add_subdirectory(PyFalkon)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
function(install_python_script name)
|
function(install_python_script name)
|
||||||
|
if (ENABLE_PYTHON_PLUGINS)
|
||||||
install(DIRECTORY ${name} DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python")
|
install(DIRECTORY ${name} DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python")
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
install_python_script(hellopython)
|
install_python_script(hellopython)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user