]>
Commit | Line | Data |
---|---|---|
be52b11e | 1 | ## |
efec8eaa | 2 | ## This file is part of the sigrok-qt project. |
be52b11e UH |
3 | ## |
4 | ## Copyright (C) 2010-2011 Uwe Hermann <uwe@hermann-uwe.de> | |
5 | ## | |
6 | ## This program is free software; you can redistribute it and/or modify | |
7 | ## it under the terms of the GNU General Public License as published by | |
8 | ## the Free Software Foundation; either version 2 of the License, or | |
9 | ## (at your option) any later version. | |
10 | ## | |
11 | ## This program is distributed in the hope that it will be useful, | |
12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ## GNU General Public License for more details. | |
15 | ## | |
16 | ## You should have received a copy of the GNU General Public License | |
17 | ## along with this program; if not, write to the Free Software | |
18 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
19 | ## | |
20 | ||
bf2e3407 | 21 | TARGET = sigrok-qt |
be52b11e UH |
22 | TEMPLATE = app |
23 | ||
bf2e3407 | 24 | # The sigrok-qt version number. Define APP_VERSION macro for use in the code. |
27fca4dc | 25 | VERSION = 0.1.0 |
be52b11e UH |
26 | DEFINES += APP_VERSION=\\\"$$VERSION\\\" |
27 | ||
28 | UNAME = $$system(uname -s) | |
29 | ||
30 | SOURCES += main.cpp \ | |
31 | mainwindow.cpp \ | |
32 | configform.cpp \ | |
be52b11e | 33 | channelform.cpp \ |
023dffaf UH |
34 | decodersform.cpp \ |
35 | decoderstackform.cpp | |
be52b11e UH |
36 | |
37 | HEADERS += mainwindow.h \ | |
38 | configform.h \ | |
be52b11e | 39 | channelform.h \ |
023dffaf UH |
40 | decodersform.h \ |
41 | decoderstackform.h | |
be52b11e UH |
42 | |
43 | FORMS += mainwindow.ui \ | |
44 | configform.ui \ | |
45 | channelform.ui \ | |
023dffaf UH |
46 | decodersform.ui \ |
47 | decoderstackform.ui | |
be52b11e | 48 | |
bf2e3407 UH |
49 | TRANSLATIONS = locale/sigrok-qt_de_DE.ts \ |
50 | locale/sigrok-qt_nl_NL.ts \ | |
51 | locale/sigrok-qt_fr_FR.ts | |
be52b11e UH |
52 | |
53 | CONFIG += release warn_on | |
54 | ||
bf2e3407 | 55 | RESOURCES += sigrok-qt.qrc |
be52b11e UH |
56 | |
57 | # libsigrok and libsigrokdecode | |
0c5617ec | 58 | # TODO: Check for the minimum versions of libsigrok/libsigrokdecode we need. |
be52b11e UH |
59 | win32 { |
60 | # On Windows/MinGW we need to use '--libs --static'. | |
61 | # We also need to strip some stray '\n' characters here. | |
62 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode \ | |
63 | libsigrok | sed s/\n//g) | |
64 | LIBS += $$system(pkg-config --libs --static libsigrokdecode \ | |
65 | libsigrok | sed s/\n//g) | |
66 | } else { | |
67 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode) | |
68 | QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrok) | |
69 | LIBS += $$system(pkg-config --libs libsigrokdecode) | |
70 | LIBS += $$system(pkg-config --libs libsigrok) | |
71 | } | |
72 | ||
73 | # Installation | |
8a14a326 UH |
74 | PREFIX = /usr/local |
75 | target.path = $$PREFIX/bin | |
76 | locale.path = $$PREFIX/share/sigrok-qt/translations | |
bf2e3407 | 77 | locale.extra = lrelease sigrok-qt.pro |
72d2b043 | 78 | locale.files = locale/*.qm |
8a14a326 | 79 | man.path = $$PREFIX/man/man1 |
184b16b9 UH |
80 | man.files = doc/sigrok-qt.1 |
81 | INSTALLS += target locale man | |
be52b11e UH |
82 | |
83 | win32 { | |
bf2e3407 | 84 | RC_FILE = sigrok-qt.rc |
be52b11e UH |
85 | } |
86 | ||
87 | # TODO: This may need fixes. | |
88 | macx { | |
bf2e3407 | 89 | ICON = icons/sigrok-qt.icns |
be52b11e UH |
90 | #FILETYPES.files = ../lib/libsigrok.dylib |
91 | #FILETYPES.path = Contents/Frameworks | |
92 | #QMAKE_BUNDLE_DATA += FILETYPES | |
93 | } |