-
Notifications
You must be signed in to change notification settings - Fork 0
/
synthclone.pri
80 lines (75 loc) · 1.92 KB
/
synthclone.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
CONFIG += no_include_pwd warn_on
SYNTHCLONE_APP_SUFFIX = bin
SYNTHCLONE_DATA_SUFFIX = share
SYNTHCLONE_DOC_SUFFIX = doc
SYNTHCLONE_HEADER_SUFFIX = include/synthclone
SYNTHCLONE_LIBRARY_SUFFIX = lib
SYNTHCLONE_PLUGIN_SUFFIX = lib/synthclone/plugins
!isEmpty(DEBUG) {
CONFIG += debug
DEFINES += SYNTHCLONE_DEBUG
}
isEmpty(MAJOR_VERSION) {
MAJOR_VERSION = 0
}
isEmpty(MINOR_VERSION) {
MINOR_VERSION = 3
}
isEmpty(REVISION) {
REVISION = 0
}
SYNTHCLONE_VERSION = $${MAJOR_VERSION}.$${MINOR_VERSION}.$${REVISION}
macx {
CONFIG += x86_64
CONFIG -= app_bundle
DEFINES += SYNTHCLONE_PLATFORM_MACX
} else:unix {
DEFINES += SYNTHCLONE_PLATFORM_UNIX
} else:win32 {
DEFINES += SYNTHCLONE_PLATFORM_WIN32
} else {
warning(Your platform has not been detected successfully. Expect errors.)
}
isEmpty(PREFIX) {
win32 {
PREFIX = C:/Program Files/synthclone
} else {
PREFIX = /usr/local
}
}
isEmpty(DATAROOTDIR) {
DATAROOTDIR = $${PREFIX}/$${SYNTHCLONE_DATA_SUFFIX}
}
isEmpty(EXECPREFIX) {
EXECPREFIX = $${PREFIX}
}
isEmpty(BINDIR) {
SYNTHCLONE_APP_INSTALL_PATH = $${EXECPREFIX}/$${SYNTHCLONE_APP_SUFFIX}
} else {
SYNTHCLONE_APP_INSTALL_PATH = $${BINDIR}
}
isEmpty(DATADIR) {
SYNTHCLONE_DATA_INSTALL_PATH = $${DATAROOTDIR}
} else {
SYNTHCLONE_DATA_INSTALL_PATH = $${DATADIR}
}
isEmpty(DOCDIR) {
SYNTHCLONE_DOC_INSTALL_PATH = $${DATAROOTDIR}/$${SYNTHCLONE_DOC_SUFFIX}
} else {
SYNTHCLONE_DOC_INSTALL_PATH = $${DOCDIR}
}
isEmpty(INCLUDEDIR) {
INCLUDEDIR = $${PREFIX}/include
}
SYNTHCLONE_HEADER_INSTALL_PATH = $${INCLUDEDIR}/synthclone
isEmpty(LIBDIR) {
SYNTHCLONE_LIBRARY_INSTALL_PATH = \
$${EXECPREFIX}/$${SYNTHCLONE_LIBRARY_SUFFIX}
} else {
SYNTHCLONE_LIBRARY_INSTALL_PATH = $${LIBDIR}
}
isEmpty(PLUGINDIR) {
SYNTHCLONE_PLUGIN_INSTALL_PATH = $${EXECPREFIX}/$${SYNTHCLONE_PLUGIN_SUFFIX}
} else {
SYNTHCLONE_PLUGIN_INSTALL_PATH = $${PLUGINDIR}
}