Repository navigation
Expand file tree
/
Copy pathconfig.pri
More file actions
57 lines (46 loc) · 1.42 KB
/
Copy pathconfig.pri
File metadata and controls
57 lines (46 loc) · 1.42 KB
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
55
56
57
# Linker optimization for release build
QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
# Compiler warnings are error if the build type is debug.
# Except when we pass a CONFIG+=no-werror as a workaround for QTBUG-18092
no-werror {
QMAKE_CXXFLAGS_DEBUG+=-O0
} else {
QMAKE_CXXFLAGS_DEBUG+=-Werror -O0
}
CONFIG += no_keywords
# The feature maliit-defines initializes some variables related for MALIIT, such as installation paths
# here have to load it early, to start using the defines immediately
#!load(maliit-defines) {
# error(Cannot find $$[QT_INSTALL_DATA]/mkspecs/features/maliit-defines.prf. Probably Maliit framework not installed)
#}
MALIIT_PREFIX=/usr
MALIIT_PLUGINS_DIR = /usr/lib/maliit/plugins
MALIIT_PLUGINS_DATA_DIR = /usr/share/maliit/plugins
MALIIT_INSTALL_LIBS = /usr/lib
# This enables the maliit library for C++ code
CONFIG += maliit-plugins
isEmpty(PREFIX) {
PREFIX = $$MALIIT_PREFIX
}
isEmpty(LIBDIR) {
LIBDIR = $$PREFIX/lib
}
isEmpty(MALIIT_DEFAULT_PROFILE) {
MALIIT_DEFAULT_PROFILE = nokia-n9
}
isEmpty(HUNSPELL_DICT_PATH) {
HUNSPELL_DICT_PATH = $$PREFIX/share/hunspell
}
contains(QT_CONFIG, embedded) {
CONFIG += qws
}
INSTALL_BIN = $$PREFIX/bin
INSTALL_LIBS = $$LIBDIR
INSTALL_HEADERS = $$PREFIX/include
INSTALL_DOCS = $$PREFIX/share/doc
enable-opengl {
QT += opengl
DEFINES += MALIIT_KEYBOARD_HAVE_OPENGL
}
MALIIT_PACKAGENAME = maliit-plugins
MALIIT_VERSION = $$system(cat $$PWD/VERSION)