1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[Building] Don't require ending slash in USE_LIBPATH and QUPZILLA_PREFIX options

This commit is contained in:
nowrep 2014-03-03 15:06:22 +01:00
parent a7d382ee42
commit 29f20ae520
3 changed files with 16 additions and 17 deletions

View File

@ -58,7 +58,7 @@ MAC OS X
After successful compilation, you need to run macdeploy.sh script to correctly After successful compilation, you need to run macdeploy.sh script to correctly
build the application bundle. You will do it with following command: build the application bundle. You will do it with following command:
$ ./scripts/macdeploy.sh <path-to-macdeployqt> $ ./mac/macdeploy.sh <path-to-macdeployqt>
You need to specifiy path to macdeployqt (usually in QTDIR/bin/macdeployqt) only You need to specifiy path to macdeployqt (usually in QTDIR/bin/macdeployqt) only
if it is not in PATH. if it is not in PATH.
@ -152,7 +152,7 @@ Available Defines
Linux / Unix specific defines: Linux / Unix specific defines:
NO_X11 Disable all direct X11 calls. NO_X11 Disable all direct X11 calls.
Enable when building for Wayland. Enable this when building for Wayland.
example: example:
$ export NO_X11="true" $ export NO_X11="true"
@ -173,10 +173,10 @@ Available Defines
USE_LIBPATH By default, /usr/lib/ is used for libQupZilla and /usr/lib/qupzilla USE_LIBPATH By default, /usr/lib/ is used for libQupZilla and /usr/lib/qupzilla
for plugins. for plugins.
You can change it by setting this define. Ending slash is needed! You can change it by setting this define.
example: example:
$ export USE_LIBPATH="/usr/lib64/" $ export USE_LIBPATH="/usr/lib64"
NO_SYSTEM_DATAPATH By default, QupZilla is using /usr/share/qupzilla/ path NO_SYSTEM_DATAPATH By default, QupZilla is using /usr/share/qupzilla/ path
for storing themes and translations. for storing themes and translations.
@ -186,15 +186,14 @@ Available Defines
example: example:
$ export NO_SYSTEM_DATAPATH="true" $ export NO_SYSTEM_DATAPATH="true"
QUPZILLA_PREFIX You can define different prefix. Prefix must contain ending slash. QUPZILLA_PREFIX You can define different prefix.
(default prefix is "/usr/")
QupZilla binary will then be moved to PREFIX/bin/, use QupZilla binary will then be moved to PREFIX/bin/, use
PREFIX/share/qupzilla/ as datadir, PREFIX/share/applications for PREFIX/share/qupzilla/ as datadir, PREFIX/share/applications for
desktop launcher and PREFIX/share/pixmaps for icon. desktop launcher and PREFIX/share/pixmaps for icon.
Ending slash is needed! (default prefix is "/usr/")
example: example:
$ export QUPZILLA_PREFIX="/usr/" $ export QUPZILLA_PREFIX="/usr"
DISABLE_DBUS Build without QtDBus module. Native desktop notifications DISABLE_DBUS Build without QtDBus module. Native desktop notifications
will be disabled. will be disabled.

View File

@ -109,18 +109,18 @@ equals(d_disable_updates_check, "true") { DEFINES *= DISABLE_UPDATES_CHECK }
hicolor_folder = /usr/share/icons/hicolor hicolor_folder = /usr/share/icons/hicolor
!equals(d_prefix, "") { !equals(d_prefix, "") {
binary_folder = "$$d_prefix"bin binary_folder = "$$d_prefix"/bin
library_folder = "$$d_prefix"lib library_folder = "$$d_prefix"/lib
data_folder = "$$d_prefix"share/qupzilla data_folder = "$$d_prefix"/share/qupzilla
launcher_folder = "$$d_prefix"share/applications launcher_folder = "$$d_prefix"/share/applications
icon_folder = "$$d_prefix"share/pixmaps icon_folder = "$$d_prefix"/share/pixmaps
hicolor_folder = "$$d_prefix"share/icons/hicolor hicolor_folder = "$$d_prefix"/share/icons/hicolor
} }
!equals(d_use_lib_path, ""):library_folder = $$d_use_lib_path !equals(d_use_lib_path, ""):library_folder = $$d_use_lib_path
DEFINES *= USE_LIBPATH=\\\"""$$library_folder/"\\\"" DEFINES *= USE_LIBPATH=\\\"""$$library_folder"\\\""
DEFINES *= USE_DATADIR=\\\"""$$data_folder/"\\\"" DEFINES *= USE_DATADIR=\\\"""$$data_folder"\\\""
# Git revision # Git revision
rev = $$system(cd ../ && sh $$PWD/../scripts/getrevision.sh) rev = $$system(cd ../ && sh $$PWD/../scripts/getrevision.sh)

View File

@ -123,7 +123,7 @@ MainApplication::MainApplication(int &argc, char** argv)
setOrganizationDomain("qupzilla"); setOrganizationDomain("qupzilla");
#if defined(Q_OS_UNIX) && !defined(NO_SYSTEM_DATAPATH) #if defined(Q_OS_UNIX) && !defined(NO_SYSTEM_DATAPATH)
DATADIR = USE_DATADIR; DATADIR = USE_DATADIR "/";
#else #else
DATADIR = qApp->applicationDirPath() + "/"; DATADIR = qApp->applicationDirPath() + "/";
#endif #endif