- Added buildconf.pri to hold the master-level build options.
[qtrapids] / src / engine / engine.pro
index eae2f6c..0c1c471 100644 (file)
@@ -1,9 +1,10 @@
 include (../../includes.pri)
+include (../../buildconf.pri)
 
 TEMPLATE = lib
 
-CONFIG += dll \
- debug
+CONFIG += dll
+
 
 VERSION = 0.1
 
@@ -17,8 +18,6 @@ SOURCES += AlertWaiterThread.cpp \
 
 QT -= gui
 
-CONFIG -= release
-
 TARGET = qtbittorrent
 
 DESTDIR = ../../bin
@@ -28,3 +27,9 @@ LIBS += -ltorrent-rasterbar \
   -lboost_date_time-mt \
   -lboost_thread-mt
 
+# Check build mode and print result in console
+debug {
+  message( "DEBUG" )
+} else {
+  message( "RELEASE" )
+}