## ## This file is part of the sigrok-qt project. ## ## Copyright (C) 2010-2011 Uwe Hermann ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## TARGET = sigrok-qt TEMPLATE = app # The sigrok-qt version number. Define APP_VERSION macro for use in the code. VERSION = 0.1.0 DEFINES += APP_VERSION=\\\"$$VERSION\\\" UNAME = $$system(uname -s) SOURCES += main.cpp \ mainwindow.cpp \ configform.cpp \ channelform.cpp \ decodersform.cpp \ decoderstackform.cpp HEADERS += mainwindow.h \ configform.h \ channelform.h \ decodersform.h \ decoderstackform.h FORMS += mainwindow.ui \ configform.ui \ channelform.ui \ decodersform.ui \ decoderstackform.ui TRANSLATIONS = locale/sigrok-qt_de_DE.ts \ locale/sigrok-qt_nl_NL.ts \ locale/sigrok-qt_fr_FR.ts CONFIG += release warn_on RESOURCES += sigrok-qt.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) } # Installation PREFIX = /usr/local target.path = $$PREFIX/bin locale.path = $$PREFIX/share/sigrok-qt/translations locale.extra = lrelease sigrok-qt.pro locale.files = locale/*.qm man.path = $$PREFIX/man/man1 man.files = doc/sigrok-qt.1 INSTALLS += target locale man win32 { RC_FILE = sigrok-qt.rc } # TODO: This may need fixes. macx { ICON = icons/sigrok-qt.icns #FILETYPES.files = ../lib/libsigrok.dylib #FILETYPES.path = Contents/Frameworks #QMAKE_BUNDLE_DATA += FILETYPES }