mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
9828237159
It is no longer needed to load the library to retrieve metadata.
28 lines
756 B
CMake
28 lines
756 B
CMake
function(install_python_script name)
|
|
if (ENABLE_PYTHON_PLUGINS)
|
|
install(
|
|
DIRECTORY ${name}
|
|
DESTINATION ${FALKON_INSTALL_PLUGINDIR}
|
|
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
|
|
)
|
|
install(FILES i18n.py DESTINATION "${FALKON_INSTALL_PLUGINDIR}/${name}")
|
|
endif()
|
|
endfunction()
|
|
|
|
function(install_qml_script name)
|
|
install(
|
|
DIRECTORY ${name}
|
|
DESTINATION ${FALKON_INSTALL_PLUGINDIR}
|
|
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
|
|
)
|
|
endfunction()
|
|
|
|
install_python_script(runaction)
|
|
install_python_script(middleclickloader)
|
|
|
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
install_python_script(hellopython)
|
|
install_qml_script(helloqml)
|
|
endif()
|
|
|