Added build script of Debian
[qtrapids] / src / gui / gui.pro
index 9c23ca1..3945159 100644 (file)
@@ -1,3 +1,6 @@
+include (../../includes.pri)
+include (../../buildconf.pri)
+
 SOURCES += DownloadView.cpp \
 MainWindow.cpp \
 SeedView.cpp \
@@ -7,20 +10,17 @@ HEADERS += DownloadView.h \
 MainWindow.h \
 SeedView.h \
  PreferencesDialog.h
+
 TEMPLATE = app
 
 TARGET = qtrapids
 
-CONFIG -= release
-
-CONFIG += debug \
- qtestlib
-
-
+CONFIG += qtestlib
 
 DESTDIR = ../../bin
 
-INCLUDEPATH += ../engine
+INCLUDEPATH += ../engine \
+       ../plugins
 
 LIBS += -L../../bin \
   -lqtbittorrent \
@@ -28,6 +28,12 @@ LIBS += -L../../bin \
   -L../engine
 
 QMAKE_LFLAGS_DEBUG += -L.
-TARGETDEPS += ../engine/liblibqtbittorrent.so \
-  ../../bin/libqtbittorrent.so
+TARGETDEPS += ../../bin/libqtbittorrent.so
+
+# Check build mode and print to console
+debug {
+  message( "DEBUG" )
+} else {
+  message( "RELEASE" )
+}