KDE/kdebase/runtime
Alexander Neundorf
neundorf at kde.org
Sun Oct 4 18:11:08 CEST 2009
On Sunday 04 October 2009, Michael Jansen wrote:
> SVN commit 1031229 by mjansen:
>
> GroundWork for FindKDE4Runtime.cmake. Copied and adapted from workspace.
>
> Needed for nepomuk-kde if kdelibs and kdebase/ are installed into different
> prefixes.
>
> Please comment. I will wait for an ok before changing nepomuk-kde.
>
> CCMAIL: kde-buildsystem at kde.org
> CCMAIL: neundorf at kde.org
>
> M +79 -0 CMakeLists.txt
> A KDE4RuntimeConfig.cmake.in
>
>
> --- trunk/KDE/kdebase/runtime/CMakeLists.txt #1031228:1031229
> @@ -1,5 +1,11 @@
> project(KDEBASE_RUNTIME)
>
> +# Used e.g. in KDE4RuntimeConfig.cmake, Alex
> +set(KDE4RUNTIME_VERSION_MAJOR 4)
> +set(KDE4RUNTIME_VERSION_MINOR 3)
> +set(KDE4RUNTIME_VERSION_PATCH 61)
> +set(KDE4RUNTIME_VERSION
> ${KDE4RUNTIME_VERSION_MAJOR}.${KDE4RUNTIME_VERSION_MINOR}.${KDE4RUNTIME_VER
>SION_PATCH} ) +
> # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is
> checked set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
> ${CMAKE_MODULE_PATH})
>
> @@ -120,3 +126,76 @@
>
> ########### install files ###############
> install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/kde4 DESTINATION
> ${BIN_INSTALL_DIR}) +
> +
> +# make the libraries installed from kdebase/runtime available to other
> projects +# by creating and installing a KDE4RuntimeConfig.cmake file,
> which will +# be searched and found by
> kdelibs/cmake/modules/FindKDE4Runtime.cmake. Alex +
> +# now create the KDE4RuntimeConfig.cmake file, which will be loaded by
> +# kdelibs/cmake/modules/FindKDE4Runtime.cmake and which has to contain all
> information +# about the libraries installed from kdebase/runtime/libs/
> anybody would like to have. Alex +
> +# we need the absolute directories where stuff will be installed too
> +# but since the variables which contain the destinations can be relative
> +# or absolute paths, we need this macro to make them all absoulte, Alex
> +macro(MAKE_INSTALL_PATH_ABSOLUTE out in)
> + if (IS_ABSOLUTE "${in}") # IS_ABSOLUTE is new since cmake 2.4.8
> + set(${out} "${in}")
> + else (IS_ABSOLUTE "${in}")
> + set(${out} "\${KDE4RUNTIME_INSTALL_DIR}/${in}")
> + endif (IS_ABSOLUTE "${in}")
> +endmacro(MAKE_INSTALL_PATH_ABSOLUTE out in)
> +
> +make_install_path_absolute(KDE4RUNTIME_LIB_DIR ${LIB_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_LIBEXEC_DIR ${LIBEXEC_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_INCLUDE_DIR ${INCLUDE_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_BIN_DIR ${BIN_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_SBIN_DIR ${SBIN_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_DATA_DIR ${DATA_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_HTML_DIR ${HTML_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_CONFIG_DIR ${CONFIG_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_ICON_DIR ${ICON_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_KCFG_DIR ${KCFG_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_LOCALE_DIR ${LOCALE_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_MIME_DIR ${MIME_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_SOUND_DIR ${SOUND_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_TEMPLATES_DIR
> ${TEMPLATES_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_WALLPAPER_DIR
> ${WALLPAPER_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_KCONF_UPDATE_DIR
> ${KCONF_UPDATE_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_AUTOSTART_DIR
> ${AUTOSTART_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_XDG_APPS_DIR
> ${XDG_APPS_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_XDG_DIRECTORY_DIR
> ${XDG_DIRECTORY_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_SYSCONF_DIR ${SYSCONF_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_MAN_DIR ${MAN_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_INFO_DIR ${INFO_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_DBUS_INTERFACES_DIR
> ${DBUS_INTERFACES_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_DBUS_SERVICES_DIR
> ${DBUS_SERVICES_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_SERVICES_DIR
> ${SERVICES_INSTALL_DIR})
> +make_install_path_absolute(KDE4RUNTIME_SERVICETYPES_DIR
> ${SERVICETYPES_INSTALL_DIR}) +
> +set(KDE4RUNTIME_TARGET_PREFIX KDE4Runtime__)
If there are no targets exported then KDE4RUNTIME_TARGET_PREFIX is not needed
(I didn't find any exported targets in kdebase/workspace/ )
Beside that it looks ok.
Maybe you should start with the minimum what's required, instead of putting
everything there, not sure.
But maybe Thiago is right and if there is something needed for building from
runtime/, then maybe this should be moved somewhere else instead.
Alex
More information about the Kde-buildsystem
mailing list