Skip to content

Commit

Permalink
qmake: Allow packagers to set DENG_LIB_DIR
Browse files Browse the repository at this point in the history
Only a Linux distribution knows the exact value of libdir, since
that depends on the userspace environment.
  • Loading branch information
jengelh authored and skyjake committed Feb 17, 2013
1 parent b49d191 commit 11f6221
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions doomsday/config_unix.pri
Expand Up @@ -29,15 +29,17 @@ isEmpty(PREFIX) {
DENG_BIN_DIR = $$PREFIX/bin

# Library location.
DENG_LIB_DIR = $$PREFIX/lib

contains(QMAKE_HOST.arch, x86_64) {
exists($$PREFIX/lib64) {
DENG_LIB_DIR = $$PREFIX/lib64
}
exists($$PREFIX/lib/x86_64-linux-gnu) {
DENG_LIB_DIR = $$PREFIX/lib/x86_64-linux-gnu
}
isEmpty(DENG_LIB_DIR) {
DENG_LIB_DIR = $$PREFIX/lib

contains(QMAKE_HOST.arch, x86_64) {
exists($$PREFIX/lib64) {
DENG_LIB_DIR = $$PREFIX/lib64
}
exists($$PREFIX/lib/x86_64-linux-gnu) {
DENG_LIB_DIR = $$PREFIX/lib/x86_64-linux-gnu
}
}
}

# Target location for plugin libraries.
Expand Down

0 comments on commit 11f6221

Please sign in to comment.