This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.pri
136 lines (116 loc) · 3.9 KB
/
config.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# build mode
CONFIG *= qt warn_on thread x11 windows rtti release
CONFIG -= warn_off debug debug_and_release x86 x86_64 ppc ppc64
QT *= xml sql
# Mac universal build from 10.4 to up to 10.5
mac {
greaterThan(QT_MAJOR_VERSION, 4) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
greaterThan(QT_MINOR_VERSION, 0) {
QMAKE_MAC_SDK = macosx
} else {
QMAKE_MAC_SDK = $$system("xcrun --show-sdk-path")
}
} else {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
#QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
#CONFIG *= ppc
#CONFIG *= ppc64
}
#CONFIG *= x86
#CONFIG *= x86_64
# this link is required for building the ppc port to avoid the undefined __Unwind_Resume symbol
CONFIG( ppc ):LIBS *= -lgcc_eh
}
# get current path
PACKAGE_PWD = $$PWD
# helpers functions
include( $${PACKAGE_PWD}/functions.pri )
# package name
PACKAGE_TARGET = $$targetForMode( monkeystudio )
mac:PACKAGE_TARGET = $$targetForMode( "MonkeyStudio" )
TARGET = $$targetForMode( $${TARGET} )
# package destdir and build dir
isEqual(IS_SHADOWED_BUILD, 1) {
PACKAGE_DESTDIR = $${PACKAGE_DESTDIR_SHADOWED}
PACKAGE_BUILD_PATH = $${PACKAGE_BUILD_PATH_SHADOWED}
} else {
PACKAGE_DESTDIR = $${PWD}/bin
PACKAGE_BUILD_PATH = $${PWD}/build
}
greaterThan( QT_MAJOR_VERSION, 4 )|!isEmpty( top_srcdir ) {
setTemporaryDirectories( $${PACKAGE_BUILD_PATH} )
}
# define config mode paths
CONFIG( debug, debug|release ) {
message( Building in DEBUG for $${Q_TARGET_ARCH} )
CONFIG *= console
} else {
message( Building in RELEASE for $${Q_TARGET_ARCH} )
}
INCLUDEPATH *= $${UI_DIR} # some qmake versions has bug and do not do it automatically
# define some usefull values
QMAKE_TARGET_COMPANY = "The Monkey Studio Team"
QMAKE_TARGET_PRODUCT = "Monkey Studio IDE"
QMAKE_TARGET_DESCRIPTION = "Crossplatform Integrated Development Environment"
greaterThan(QT_MAJOR_VERSION, 4):QMAKE_TARGET_COPYRIGHT = "© 2005 - 2016 Filipe Azevedo and $$QMAKE_TARGET_COMPANY"
else:QMAKE_TARGET_COPYRIGHT = "\\251 2005 - 2016 Filipe Azevedo and $$QMAKE_TARGET_COMPANY"
QMAKE_TARGET_DOMAIN = "monkeystudio.org"
QMAKE_TARGET_VERSION = 1.9.1.0
CONFIG( debug, debug|release ) {
QMAKE_TARGET_VERSION_STR = $${QMAKE_TARGET_VERSION}svn_debug
} else {
QMAKE_TARGET_VERSION_STR = $${QMAKE_TARGET_VERSION}svn_release
}
QMAKE_TARGET_VERSION_STR = $${QMAKE_TARGET_VERSION}
# get package install paths
unix:!mac {
# default prefix path
isEmpty( prefix ):prefix = /usr/local
!isEmpty( prefix ) {
# plugins path
isEmpty( plugins ) {
isEqual( QT_ARCH, "i386" ) {
plugins = $${prefix}/lib
} else {
plugins = $${prefix}/lib64
}
}
# datas path
isEmpty( datas ) {
datas = $${prefix}/share
}
# docs path
isEmpty( docs ) {
docs = $${datas}/doc
}
}
} else:mac {
prefix = $${PACKAGE_DESTDIR}/$${PACKAGE_TARGET}.app/Contents
plugins = $${prefix}/plugins
datas = $${prefix}/Resources
docs = $${datas}
} else:win32 {
prefix = $${PACKAGE_DESTDIR}
plugins = $${prefix}/plugins
datas = $${prefix}
docs = $${datas}
}
unix:!mac {
PACKAGE_PREFIX = $$quote($${prefix}/bin)
PACKAGE_PLUGINS = $$quote($${plugins}/$${PACKAGE_TARGET})
PACKAGE_DATAS = $$quote($${datas}/$${PACKAGE_TARGET})
PACKAGE_DOCS = $$quote($${docs}/$${PACKAGE_TARGET})
} else:mac {
PACKAGE_PREFIX = $$quote($${prefix}/MacOS)
PACKAGE_PLUGINS = $$quote($${plugins})
PACKAGE_DATAS = $$quote($${datas})
PACKAGE_DOCS = $$quote($${docs})
} else:win32 {
PACKAGE_PREFIX = $$quote($${prefix})
PACKAGE_PLUGINS = $$quote($${plugins})
PACKAGE_DATAS = $$quote($${datas})
PACKAGE_DOCS = $$quote($${docs})
}
# qscintilla library
include( qscintilla/qscintilla_check.pri )