mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
generic: make use of upstream PythonLibs CMake module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fdadefd2ff
commit
5f3274abe9
3 changed files with 27 additions and 21 deletions
|
@ -115,8 +115,8 @@ set_package_properties(Fontconfig PROPERTIES
|
|||
)
|
||||
|
||||
#### Python support ( plasma scriptengines ) ####
|
||||
macro_optional_find_package(PythonLibrary)
|
||||
set_package_properties(PythonLibrary PROPERTIES
|
||||
macro_optional_find_package(PythonLibs)
|
||||
set_package_properties(PythonLibs PROPERTIES
|
||||
DESCRIPTION "Python scripting language"
|
||||
URL "http://python.org"
|
||||
TYPE OPTIONAL
|
||||
|
|
|
@ -2,10 +2,10 @@ macro_optional_add_subdirectory(ruby)
|
|||
|
||||
if(QT_QTWEBKIT_FOUND)
|
||||
macro_optional_add_subdirectory(webkit)
|
||||
endif(QT_QTWEBKIT_FOUND)
|
||||
endif()
|
||||
|
||||
if (PYTHONLIBRARY_FOUND)
|
||||
if (PYTHONLIBS_FOUND)
|
||||
macro_optional_add_subdirectory(python)
|
||||
endif (PYTHONLIBRARY_FOUND)
|
||||
endif()
|
||||
|
||||
macro_optional_add_subdirectory(javascript)
|
|
@ -1,23 +1,29 @@
|
|||
project(plasma-python)
|
||||
|
||||
include(PythonMacros)
|
||||
|
||||
# install the library, .desktop, and plasma.py
|
||||
python_install(pyappletscript.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
|
||||
python_install(plasma_importer.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
|
||||
python_install(pydataengine.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
|
||||
python_install(pyrunner.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
|
||||
python_install(pywallpaper.py ${DATA_INSTALL_DIR}/plasma_scriptengine_python)
|
||||
python_install(plasmascript.py ${PYTHON_SITE_PACKAGES_DIR}/PyKDE4)
|
||||
install(
|
||||
FILES
|
||||
pyappletscript.py
|
||||
plasma_importer.py
|
||||
pydataengine.py
|
||||
pyrunner.py
|
||||
pywallpaper.py
|
||||
DESTINATION
|
||||
${DATA_INSTALL_DIR}/plasma_scriptengine_python
|
||||
)
|
||||
install(
|
||||
FILES plasmascript.py
|
||||
DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/PyKDE4
|
||||
)
|
||||
|
||||
install(FILES plasma-scriptengine-applet-python.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR})
|
||||
install(FILES plasma-scriptengine-dataengine-python.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR})
|
||||
install(FILES plasma-scriptengine-runner-python.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR})
|
||||
install(FILES plasma-scriptengine-wallpaper-python.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR})
|
||||
install(
|
||||
FILES
|
||||
plasma-scriptengine-applet-python.desktop
|
||||
plasma-scriptengine-dataengine-python.desktop
|
||||
plasma-scriptengine-runner-python.desktop
|
||||
plasma-scriptengine-wallpaper-python.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
)
|
||||
|
||||
###########################################################################
|
||||
# Test plasmoids
|
||||
|
|
Loading…
Add table
Reference in a new issue