blob: c76634a2395cf723e88b80d640549deab2c9c1c0 (
plain)
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
|
# we don't want to modify subdir .pro's
!contains( TEMPLATE, subdirs ) {
# if it's already a lib, we ignore it
!contains( TEMPLATE, lib ) {
contains( CONFIG, quick-app ) {
message ( Building a quicklaunch application )
TEMPLATE = lib
CONFIG += plugin
DEFINES += OPIE_APP_INTERFACE
DEFINES += QUICKAPP_NAME="\"$${TARGET}\""
system ( touch visibility_qmake_test.c )
# Test if the compiler supports visibility
system ( $$(CC) -fvisibility=hidden -c -o visibility_qmake_test.o visibility_qmake_test.c ) {
message ( "Your compiler does support visibility, we will use it" )
DEFINES += GCC_SUPPORTS_VISIBILITY
QMAKE_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
system ( rm visibility_qmake_test.o )
}
system ( rm visibility_qmake_test.c )
}
!contains ( CONFIG, quick-app ) {
message( Building a standalone application )
TEMPLATE = app
DEFINES -= OPIE_APP_INTERFACE
DEFINES += QUICKAPP_NAME="\"$${TARGET}\""
}
}
}
DEFINES += OPIE_NEW_MALLOC
DEFINES += OPIE_NO_ERASE_RECT_HACKFIX
|