Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win64
mingw64-extra-cmake-modules
0001-Add-support-for-using-share-as-data-root-o...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Add-support-for-using-share-as-data-root-on-windows-by.patch of Package mingw64-extra-cmake-modules
From 5b491284ffa671d7990e3aecc5663b1ecc6bb252 Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@blendertest.wh.sag.de> Date: Wed, 15 Aug 2018 11:31:15 +0200 Subject: [PATCH] Add support for using share as data root on windows by specifing KDE_INSTALL_DIRS_SHARE_ROOT --- kde-modules/KDEInstallDirs.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kde-modules/KDEInstallDirs.cmake b/kde-modules/KDEInstallDirs.cmake index 52b2eb2..2b3f7eb 100644 --- a/kde-modules/KDEInstallDirs.cmake +++ b/kde-modules/KDEInstallDirs.cmake @@ -143,6 +143,13 @@ # module, the deprecated variables (listed in the square brackets above) are # not defined. # +# If ``KDE_INSTALL_DIRS_SHARE_ROOT`` is set to TRUE before using this module, +# under Windows the data root directory is defined under 'share' instead of +# 'bin/data' to simplify the porting of native obs spec files. +# Please note that this support requires a patched QStandardPath implementation +# to use the correct paths (see +# https://build.opensuse.org/package/show/home:rhabacker:branches:windows:mingw:win32:Qt59/mingw32-libqt5-qtbase) +# # In addition, for each ``KDE_INSTALL_*`` variable, an equivalent # ``CMAKE_INSTALL_*`` variable is defined. If # ``KDE_INSTALL_DIRS_NO_DEPRECATED`` is set to TRUE, only those variables @@ -528,7 +535,7 @@ _define_absolute(SHAREDSTATEDIR "com" -if (WIN32) +if (WIN32 AND NOT KDE_INSTALL_DIRS_SHARE_ROOT) _define_relative(DATAROOTDIR BINDIR "data" "read-only architecture-independent data root" SHARE_INSTALL_PREFIX) -- 2.13.7
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor