-
Notifications
You must be signed in to change notification settings - Fork 14
/
settings.pri
27 lines (24 loc) · 1.09 KB
/
settings.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
include(variables.pri)
MSK_SOURCE_BASE = $$PWD
QT += widgets printsupport svg
CONFIG += silent c++14
lessThan(QT_MAJOR_VERSION,5): QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -Wsuggest-override
buildVars = $$cat(buildvariables)
for(line, $$list($$split(buildVars, $$escape_expand(\\n)))) {
name = $$getVarName(line)
!exists($$OUT_PWD/../buildvars/$$name) {
$$name = $$getVarDefault(line)
message("Could not find file with value of $$name, assuming default value: $$eval($$name)")
}
$$name = $$cat($$OUT_PWD/../buildvars/$$name)
# The only variable used in code is MSK_INSTALL_DOCS
!equals($$name, false) : DEFINES += "$${name}=\"\\\"$$eval($$name)\\\"\""
}
VERSION = $$cat(version)
CONFIG(static) : DEFINES += QT_STATIC_BUILD
contains(QT_ARCH, ".*64.*") : MSK_INSTALL_LIBS = $${MSK_INSTALL_LIBS64}
OBABEL_IFACE_NAME = libobabeliface.so
win* : OBABEL_IFACE_NAME = obabeliface.dll
isEmpty(RELATIVE_OBABELIFACE) : DEFINES += "OBABEL_IFACE_LOCATION=\"\\\"$$MSK_INSTALL_LIBS/$$OBABEL_IFACE_NAME\\\"\""
!isEmpty(RELATIVE_OBABELIFACE) : DEFINES += "OBABEL_IFACE_LOCATION=\"\\\"obabeliface\\\"\""