/
config_unix.pri
54 lines (42 loc) · 1.3 KB
/
config_unix.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# The Doomsday Engine Project
# Copyright (c) 2011-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
# Copyright (c) 2011-2012 Daniel Swanson <danij@dengine.net>
#
# Unix configuration (non-Mac).
include(config_unix_any.pri)
CONFIG += deng_nofixedasm
!deng_nosnowberry: CONFIG += deng_snowberry
exists(/etc/apt) {
# Choose the apt repository to include in the distribution.
isStableRelease(): CONFIG += deng_aptstable
else: CONFIG += deng_aptunstable
}
# Link against standard math library.
LIBS += -lm
# Install prefix.
isEmpty(PREFIX) {
freebsd-*: PREFIX = /usr/local
else: PREFIX = /usr
}
# Binary location.
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
}
}
# When installing libraries to a non-standard location, instruct
# the linker where to find them.
!contains(DENG_LIB_DIR, ^/usr/.*) {
QMAKE_LFLAGS += -Wl,-rpath,$$DENG_LIB_DIR
}
DENG_BASE_DIR = $$PREFIX/share/doomsday
DENG_DATA_DIR = $$DENG_BASE_DIR/data
echo(Binary directory: $$DENG_BIN_DIR)
echo(Library directory: $$DENG_LIB_DIR)
echo(Doomsday base directory: $$DENG_BASE_DIR)