summaryrefslogtreecommitdiff
path: root/packages/libopie/libopie2
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2005-03-08 23:34:29 +0000
committerHolger Freyther <zecke@selfish.org>2005-03-08 23:34:29 +0000
commitf6700ace7dcd2e8527798cc52bfd97088f878745 (patch)
tree5e4bb601e075bf036ca53f1a3383eb93d12bc3d0 /packages/libopie/libopie2
parent8e3c9beb2d530d8c2c8ea3f12f8945cb83e52428 (diff)
Opie Quicklaunchanble:
-Correct the test to check if the used compiler supports changing of the visibility of symbols. -The error was recognized by Vitaliy Pronkin and a patch proposed BKrev: 422e3685lbAXZp2N3gJLNEkpuxJHzw
Diffstat (limited to 'packages/libopie/libopie2')
-rw-r--r--packages/libopie/libopie2/include-cvs.pro36
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/libopie/libopie2/include-cvs.pro b/packages/libopie/libopie2/include-cvs.pro
index e69de29bb2..119d298ad4 100644
--- a/packages/libopie/libopie2/include-cvs.pro
+++ b/packages/libopie/libopie2/include-cvs.pro
@@ -0,0 +1,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