]>
Commit | Line | Data |
---|---|---|
d7bed479 JH |
1 | #------------------------------------------------- |
2 | # | |
3 | # Project created by QtCreator 2012-05-10T21:19:20 | |
4 | # | |
5 | #------------------------------------------------- | |
6 | ||
7 | QT += core gui | |
8 | ||
9 | TARGET = sigrok-qt2 | |
10 | TEMPLATE = app | |
11 | ||
640e5565 JH |
12 | # The sigrok-qt version number. Define APP_VERSION macro for use in the code. |
13 | VERSION = 0.1.0 | |
14 | DEFINES += APP_VERSION=\\\"$$VERSION\\\" | |
d7bed479 JH |
15 | |
16 | SOURCES += main.cpp\ | |
17 | mainwindow.cpp | |
18 | ||
19 | HEADERS += mainwindow.h | |
20 | ||
21 | FORMS += mainwindow.ui | |
664fca5c JH |
22 | |
23 | # libsigrok and libsigrokdecode | |
24 | # TODO: Check for the minimum versions of libsigrok/libsigrokdecode we need. | |
25 | win32 { | |
26 | # On Windows/MinGW we need to use '--libs --static'. | |
27 | # We also need to strip some stray '\n' characters here. | |
28 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode \ | |
29 | libsigrok | sed s/\n//g) | |
30 | LIBS += $$system(pkg-config --libs --static libsigrokdecode \ | |
31 | libsigrok | sed s/\n//g) | |
32 | } else { | |
33 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode) | |
34 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrok) | |
35 | LIBS += $$system(pkg-config --libs libsigrokdecode) | |
36 | LIBS += $$system(pkg-config --libs libsigrok) | |
37 | } |