Created a custom about box with scrollable space for the supported list
[pulseview.git] / sigrok-qt2.pro
index ad1d4312b5a00decbeceef1e8ef53f827684f5a1..b10f6cbb81158ed038debfa41295e8eca6e4119f 100644 (file)
@@ -9,10 +9,34 @@ QT       += core gui
 TARGET = sigrok-qt2
 TEMPLATE = app
 
+# The sigrok-qt version number. Define APP_VERSION macro for use in the code.
+VERSION       = 0.1.0
+DEFINES      += APP_VERSION=\\\"$$VERSION\\\"
 
 SOURCES += main.cpp\
-        mainwindow.cpp
+        mainwindow.cpp \
+    about.cpp
 
-HEADERS  += mainwindow.h
+HEADERS  += mainwindow.h \
+    about.h
 
-FORMS    += mainwindow.ui
+FORMS    += mainwindow.ui \
+    about.ui
+
+RESOURCES    += sigrok-qt2.qrc
+
+# libsigrok and libsigrokdecode
+# TODO: Check for the minimum versions of libsigrok/libsigrokdecode we need.
+win32 {
+       # On Windows/MinGW we need to use '--libs --static'.
+       # We also need to strip some stray '\n' characters here.
+       QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode \
+                         libsigrok | sed s/\n//g)
+       LIBS           += $$system(pkg-config --libs --static libsigrokdecode \
+                         libsigrok | sed s/\n//g)
+} else {
+       QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode)
+       QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrok)
+       LIBS           += $$system(pkg-config --libs libsigrokdecode)
+       LIBS           += $$system(pkg-config --libs libsigrok)
+}