Add -config profile to enable a gprof-capable build.
[quassel.git] / build / buildconf.pri
index 6df7b13..d10ba14 100644 (file)
@@ -1,10 +1,14 @@
+# This file contains global build settings. Note that you can add stuff to CONFIG
+# by using qmake -config stuff 
+# Notable examples:
+# 
+# -config debug (or release or debug_and_release)
+# -config verbose (to enable verbose compiling)
+
 CONFIG += warn_on uic resources qt silent
-# CONFIG += incremental link_prl nostrip qt_no_framework
 
-release {
-  CONFIG *= release strip
-} else {
-  CONFIG *= debug
+verbose {
+  CONFIG -= silent
 }
 
 win32 { 
@@ -19,3 +23,13 @@ mac:Tiger {
  QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
  CONFIG += x86 ppc
 }
+
+sputdev {
+  DEFINES *= SPUTDEV
+}
+
+profile {
+  CONFIG += debug
+  QMAKE_CXXFLAGS_DEBUG += -pg
+  QMAKE_LFLAGS_DEBUG += -pg
+}