Commit f66d9b7c authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

[Build System] Port away from deprecated ECM path variables

parent 4c274dbc
Pipeline #170443 passed with stage
in 5 minutes and 40 seconds
......@@ -31,14 +31,18 @@ install(FILES
kdenlivedefaultlayouts.rc
slideanimations.rc
DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX})
install(FILES kdenlive.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
DESTINATION ${KDE_INSTALL_DATADIR}${DATA_INSTALL_PREFIX})
install(FILES profiles.xml DESTINATION ${DATA_INSTALL_DIR}${DATA_INSTALL_PREFIX}/export)
if (ECM_VERSION VERSION_GREATER_EQUAL "5.89.0")
install(FILES kdenlive.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
else()
install(FILES kdenlive.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR})
endif()
install(FILES profiles.xml DESTINATION ${KDE_INSTALL_DATADIR}${DATA_INSTALL_PREFIX}/export)
install(FILES org.kde.kdenlive.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES org.kde.kdenlive.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(FILES org.kde.kdenlive.desktop DESTINATION ${KDE_INSTALL_APPDIR})
find_package(SharedMimeInfo REQUIRED)
install(FILES org.kde.kdenlive.xml westley.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
install(FILES org.kde.kdenlive.xml westley.xml DESTINATION ${KDE_INSTALL_MIMEDIR})
update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR})
......@@ -33,7 +33,7 @@ ecm_install_icons(ICONS
sc-mimetypes-application-x-kdenlivetitle.svgz
sc-mimetypes-application-x-kdenlive.svgz
sc-mimetypes-video-mlt-playlist.svgz
DESTINATION ${ICON_INSTALL_DIR})
DESTINATION ${KDE_INSTALL_ICONDIR})
if(OLD_FALLBACK_ICONS)
ecm_install_icons(ICONS
......@@ -96,5 +96,5 @@ if(OLD_FALLBACK_ICONS)
sc-actions-kdenlive-zindex-up.svgz
sc-actions-kdenlive-zone-end.svgz
sc-actions-kdenlive-zone-start.svgz
DESTINATION ${ICON_INSTALL_DIR})
DESTINATION ${KDE_INSTALL_ICONDIR})
endif()
......@@ -78,7 +78,7 @@ list(REMOVE_ITEM top_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
list(APPEND kdenlive_SRCS ${top_SRCS})
## Others special cases
kconfig_add_kcfg_files(kdenlive_SRCS kdenlivesettings.kcfgc)
install(FILES kdenlivesettings.kcfg DESTINATION ${KCFG_INSTALL_DIR})
install(FILES kdenlivesettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
ecm_qt_declare_logging_category(kdenlive_SRCS HEADER kdenlive_debug.h IDENTIFIER KDENLIVE_LOG CATEGORY_NAME org.kde.multimedia.kdenlive)
if(NOT NODBUS)
if(USE_VERSIONLESS_TARGETS)
......
......@@ -18,4 +18,8 @@ target_link_libraries(mltpreview
)
#FIXME: For some reason the plugin only seems to work if installed in $lib/qt5/plugins and not in $lib/plugins like KF5 recommends
install(TARGETS mltpreview DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES mltpreview.desktop DESTINATION ${SERVICES_INSTALL_DIR})
if (ECM_VERSION VERSION_GREATER_EQUAL "5.89.0")
install(FILES mltpreview.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
else()
install(FILES mltpreview.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment