forked from jlaine/qdjango
-
Notifications
You must be signed in to change notification settings - Fork 3
/
qdjango.pri
40 lines (37 loc) · 921 Bytes
/
qdjango.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
# Common definitions
QDJANGO_VERSION=0.6.2
# Determine library type (shared or staticlib)
isEmpty(QDJANGO_LIBRARY_TYPE) {
android {
QDJANGO_LIBRARY_TYPE = staticlib
} else {
QDJANGO_LIBRARY_TYPE = shared
}
}
# Libraries for apps which use QDjango
QDJANGO_INCLUDEPATH = $$PWD/src/db $$PWD/src/http
QDJANGO_DB_LIBS = -lqdjango-db
QDJANGO_HTTP_LIBS = -lqdjango-http
contains(QDJANGO_LIBRARY_TYPE,staticlib) {
DEFINES += QDJANGO_STATIC
} else {
# Windows needs the major library version
win32 {
QDJANGO_DB_LIBS = -lqdjango-db0
QDJANGO_HTTP_LIBS = -lqdjango-http0
}
DEFINES += QDJANGO_SHARED
}
# Installation prefix and library directory
isEmpty(PREFIX) {
contains(MEEGO_EDITION,harmattan) {
PREFIX = /usr
} else:unix {
PREFIX = /usr/local
} else {
PREFIX = $$[QT_INSTALL_PREFIX]
}
}
isEmpty(LIBDIR) {
LIBDIR=lib
}