From 24134c972e375bebad45c860c413233b60863852 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 12 Dec 2017 16:34:39 +0100 Subject: Introduce INSTALL_PREFIX_SCRIPT to easily set up prefixes Summary: If enabled it will install a prefix.sh script to the root of the prefix. This file will be useful to be able to easily set up a prefix to be used by integrating the environment variables it exports. Test Plan: ``` $ cat prefix.sh export PATH=/home/apol/devel/kde5/bin:$PATH export LD_LIBRARY_PATH=/home/apol/devel/kde5/lib64:$LD_LIBRARY_PATH export XDG_DATA_DIRS=/home/apol/devel/kde5/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/} export XDG_CONFIG_DIRS=/home/apol/devel/kde5/etc/xdg:${XDG_CONFIG_DIRS:-/etc/xdg} export QT_PLUGIN_PATH=/home/apol/devel/kde5/lib64/plugins:$QT_PLUGIN_PATH export QML2_IMPORT_PATH=/home/apol/devel/kde5/lib64/qml:$QML2_IMPORT_PATH ``` Reviewers: #frameworks, sitter Reviewed By: sitter Subscribers: kfunk, bcooksley, ngraham, sitter, cgiboudeaux, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D9299 --- kde-modules/prefix.sh.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 kde-modules/prefix.sh.cmake (limited to 'kde-modules/prefix.sh.cmake') diff --git a/kde-modules/prefix.sh.cmake b/kde-modules/prefix.sh.cmake new file mode 100644 index 00000000..bddebeb5 --- /dev/null +++ b/kde-modules/prefix.sh.cmake @@ -0,0 +1,8 @@ +export PATH=@KDE_INSTALL_FULL_BINDIR@:$PATH +export LD_LIBRARY_PATH=@KDE_INSTALL_FULL_LIBDIR@:$LD_LIBRARY_PATH + +export XDG_DATA_DIRS=@KDE_INSTALL_FULL_DATADIR@:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/} +export XDG_CONFIG_DIRS=@KDE_INSTALL_FULL_CONFDIR@:${XDG_CONFIG_DIRS:-/etc/xdg} + +export QT_PLUGIN_PATH=@KDE_INSTALL_FULL_QTPLUGINDIR@:$QT_PLUGIN_PATH +export QML2_IMPORT_PATH=@KDE_INSTALL_FULL_QMLDIR@:$QML2_IMPORT_PATH -- cgit v1.2.1