Files
kdenlive/data/CMakeLists.txt
Jean-Baptiste Mardelle 046018bcd7 Switch Kdenlive layouts to separate json files for each layout.
The Kdenlive layouts are currently stored in a config file (`kdenlive-kddlayoutsrc` in ~/.config).
This is rather ugly as it means we have full layout data in the form of:

`kdenlive_editing={"allDockWidgets": [{"lastCloseReason": 0.. }`

With lines having more than 15'000 characters length.
This MR changes this to have each layout stored in its own json file in `~/.local/share/kdenlive/layouts`.

The code change is rather long and maybe not perfect, but I think it would be great to make the switch now as we are introducing a new layout format with KDDockWidgets.
2025-11-13 11:05:36 +01:00

54 lines
1.9 KiB
CMake

# SPDX-License-Identifier: BSD-2-Clause
# SPDX-FileCopyrightText: Vincent PINON <vincent.pinon@laposte.net>, Jean-Baptiste Mardelle <jb@kdenlive.org>, Julius Künzel <julius.kuenzel@kde.org>
add_subdirectory(effects)
add_subdirectory(generators)
add_subdirectory(layouts)
add_subdirectory(transitions)
add_subdirectory(icons)
add_subdirectory(knewstuff)
add_subdirectory(lumas)
add_subdirectory(scripts)
add_subdirectory(man)
add_subdirectory(titles)
add_subdirectory(profiles)
add_subdirectory(resourceproviders)
add_subdirectory(shortcuts)
add_subdirectory(luts)
if (APPLE)
# Apple app package
set_target_properties(kdenlive PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
set_target_properties(kdenlive PROPERTIES
MACOSX_BUNDLE_DISPLAY_NAME "Kdenlive"
MACOSX_BUNDLE_BUNDLE_NAME "Kdenlive"
MACOSX_BUNDLE_LONG_VERSION_STRING "Kdenlive ${RELEASE_SERVICE_VERSION}"
MACOSX_BUNDLE_SHORT_VERSION_STRING "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}"
MACOSX_BUNDLE_BUNDLE_VERSION "${RELEASE_SERVICE_VERSION}"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Kdenlive"
MACOSX_BUNDLE_COPYRIGHT "2000-2022 The Kdenlive Authors")
endif()
install(FILES
meta_magiclantern.png
encodingprofiles.rc
externalproxies.rc
kdenliveeffectscategory.rc
kdenlivetranscodingrc
slideanimations.rc
clipjobsettings.rc
DESTINATION ${KDE_INSTALL_DATADIR}${DATA_INSTALL_PREFIX})
install(FILES kdenlive.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
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 ${KDE_INSTALL_APPDIR})
find_package(SharedMimeInfo REQUIRED)
install(FILES org.kde.kdenlive.xml westley.xml DESTINATION ${KDE_INSTALL_MIMEDIR})
update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR})