]> sigrok.org Git - sigrok-qt.git/blame - sigrok-qt.pro
Add "Copyright and license" section.
[sigrok-qt.git] / sigrok-qt.pro
CommitLineData
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 21TARGET = sigrok-qt
be52b11e
UH
22TEMPLATE = app
23
bf2e3407 24# The sigrok-qt version number. Define APP_VERSION macro for use in the code.
27fca4dc 25VERSION = 0.1.0
be52b11e
UH
26DEFINES += APP_VERSION=\\\"$$VERSION\\\"
27
28UNAME = $$system(uname -s)
29
30SOURCES += main.cpp \
31 mainwindow.cpp \
32 configform.cpp \
be52b11e 33 channelform.cpp \
023dffaf
UH
34 decodersform.cpp \
35 decoderstackform.cpp
be52b11e
UH
36
37HEADERS += mainwindow.h \
38 configform.h \
be52b11e 39 channelform.h \
023dffaf
UH
40 decodersform.h \
41 decoderstackform.h
be52b11e
UH
42
43FORMS += mainwindow.ui \
44 configform.ui \
45 channelform.ui \
023dffaf
UH
46 decodersform.ui \
47 decoderstackform.ui
be52b11e 48
bf2e3407
UH
49TRANSLATIONS = locale/sigrok-qt_de_DE.ts \
50 locale/sigrok-qt_nl_NL.ts \
51 locale/sigrok-qt_fr_FR.ts
be52b11e
UH
52
53CONFIG += release warn_on
54
bf2e3407 55RESOURCES += 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
59win32 {
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
74PREFIX = /usr/local
75target.path = $$PREFIX/bin
76locale.path = $$PREFIX/share/sigrok-qt/translations
bf2e3407 77locale.extra = lrelease sigrok-qt.pro
72d2b043 78locale.files = locale/*.qm
8a14a326 79man.path = $$PREFIX/man/man1
184b16b9
UH
80man.files = doc/sigrok-qt.1
81INSTALLS += target locale man
be52b11e
UH
82
83win32 {
bf2e3407 84 RC_FILE = sigrok-qt.rc
be52b11e
UH
85}
86
87# TODO: This may need fixes.
88macx {
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}