]>
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\ | |
40eb2ff4 JH |
17 | mainwindow.cpp \ |
18 | about.cpp | |
d7bed479 | 19 | |
40eb2ff4 JH |
20 | HEADERS += mainwindow.h \ |
21 | about.h | |
d7bed479 | 22 | |
40eb2ff4 JH |
23 | FORMS += mainwindow.ui \ |
24 | about.ui | |
664fca5c | 25 | |
f1bf525a JH |
26 | RESOURCES += sigrok-qt2.qrc |
27 | ||
664fca5c JH |
28 | # libsigrok and libsigrokdecode |
29 | # TODO: Check for the minimum versions of libsigrok/libsigrokdecode we need. | |
30 | win32 { | |
31 | # On Windows/MinGW we need to use '--libs --static'. | |
32 | # We also need to strip some stray '\n' characters here. | |
33 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode \ | |
34 | libsigrok | sed s/\n//g) | |
35 | LIBS += $$system(pkg-config --libs --static libsigrokdecode \ | |
36 | libsigrok | sed s/\n//g) | |
37 | } else { | |
38 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode) | |
39 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrok) | |
40 | LIBS += $$system(pkg-config --libs libsigrokdecode) | |
41 | LIBS += $$system(pkg-config --libs libsigrok) | |
42 | } |