wfview/wfview.pro

159 wiersze
4.4 KiB
Prolog
Czysty Zwykły widok Historia

2018-06-19 19:58:52 +00:00
#-------------------------------------------------
#
# Project created by QtCreator 2018-05-26T16:57:32
#
#-------------------------------------------------
QT += core gui serialport network multimedia
2018-06-19 19:58:52 +00:00
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
TARGET = wfview
TEMPLATE = app
CONFIG(debug, release|debug) {
# For Debug builds only:
} else {
# For Release builds only:
QMAKE_CXXFLAGS += -s
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CXXFLAGS += -fvisibility-inlines-hidden
QMAKE_LFLAGS += -O2 -s
}
2018-06-19 19:58:52 +00:00
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QCUSTOMPLOT_COMPILE_LIBRARY
2021-03-09 17:22:16 +00:00
# These defines are used for the resampler
DEFINES += OUTSIDE_SPEEX
DEFINES += RANDOM_PREFIX=wf
# RTAudio defines
win32:DEFINES += __WINDOWS_WASAPI__
#win32:DEFINES += __WINDOWS_DS__ # Requires DirectSound libraries
linux:DEFINES += __LINUX_ALSA__
#linux:DEFINES += __LINUX_OSS__
#linux:DEFINES += __LINUX_PULSE__
macx:DEFINES += __MACOSX_CORE__
2021-05-23 22:04:35 +00:00
#option(RTAUDIO_API_DS "Build DirectSound API" OFF)
#option(RTAUDIO_API_ASIO "Build ASIO API" OFF)
#option(RTAUDIO_API_WASAPI "Build WASAPI API" ${WIN32})
#option(RTAUDIO_API_OSS "Build OSS4 API" ${xBSD})
#option(RTAUDIO_API_ALSA "Build ALSA API" ${LINUX})
#option(RTAUDIO_API_PULSE "Build PulseAudio API" ${pulse_FOUND})
#option(RTAUDIO_API_JACK "Build JACK audio server API" ${HAVE_JACK})
#option(RTAUDIO_API_CORE "Build CoreAudio API" ${APPLE})
macx:INCLUDEPATH += /usr/local/include /opt/local/include
macx:LIBS += -L/usr/local/lib -L/opt/local/lib
2021-03-19 10:44:05 +00:00
macx:ICON = ../wfview/resources/wfview.icns
win32:RC_ICONS = ../wfview/resources/wfview.ico
2021-05-09 12:13:34 +00:00
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
2021-05-17 16:12:51 +00:00
QMAKE_TARGET_BUNDLE_PREFIX = org.wfview
MY_ENTITLEMENTS.name = CODE_SIGN_ENTITLEMENTS
MY_ENTITLEMENTS.value = ../wfview/resources/wfview.entitlements
2021-05-17 16:12:51 +00:00
QMAKE_MAC_XCODE_SETTINGS += MY_ENTITLEMENTS
QMAKE_INFO_PLIST = ../wfview/resources/Info.plist
2021-03-13 09:33:39 +00:00
!win32:DEFINES += HOST=\\\"`hostname`\\\" UNAME=\\\"`whoami`\\\"
!win32:DEFINES += GITSHORT="\\\"$(shell git -C $$PWD rev-parse --short HEAD)\\\""
win32:DEFINES += GITSHORT=\\\"$$system(git -C $$PWD rev-parse --short HEAD)\\\"
win32:DEFINES += HOST=\\\"wfview.org\\\"
win32:DEFINES += UNAME=\\\"build\\\"
RESOURCES += qdarkstyle/style.qrc \
resources/resources.qrc
# Why doesn't this seem to do anything?
2020-03-13 03:13:29 +00:00
DISTFILES += resources/wfview.png \
resources/install.sh
DISTFILES += resources/wfview.desktop
linux:QMAKE_POST_LINK += cp ../wfview/resources/wfview.png .;
linux:QMAKE_POST_LINK += cp ../wfview/resources/wfview.desktop .;
linux:QMAKE_POST_LINK += cp ../wfview/resources/install.sh .;
linux:QMAKE_POST_LINK += cp -r ../wfview/qdarkstyle .;
linux:QMAKE_POST_LINK += chmod 755 install.sh;
linux:QMAKE_POST_LINK += echo; echo; echo "Run install.sh as root from the build directory to install."; echo; echo;
2018-11-29 22:32:59 +00:00
# Do not do this, it will hang on start:
# CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
2018-11-07 23:54:03 +00:00
CONFIG(debug, release|debug) {
linux: QCPLIB = qcustomplotd
2018-11-07 23:54:03 +00:00
} else {
linux: QCPLIB = qcustomplot
2018-11-07 23:54:03 +00:00
}
2018-06-19 19:58:52 +00:00
linux:LIBS += -L./ -l$$QCPLIB
2018-06-19 19:58:52 +00:00
!linux:SOURCES += ../qcustomplot/qcustomplot.cpp
!linux:HEADERS += ../qcustomplot/qcustomplot.h
!linux:INCLUDEPATH += ../qcustomplot
2018-06-19 19:58:52 +00:00
SOURCES += main.cpp\
wfmain.cpp \
commhandler.cpp \
2018-11-07 23:54:03 +00:00
rigcommander.cpp \
freqmemory.cpp \
rigidentities.cpp \
2021-02-07 20:07:26 +00:00
udphandler.cpp \
2021-02-08 08:31:48 +00:00
logcategories.cpp \
2021-02-11 20:22:40 +00:00
audiohandler.cpp \
calibrationwindow.cpp \
2021-02-14 18:32:58 +00:00
satellitesetup.cpp \
udpserversetup.cpp \
udpserver.cpp \
meter.cpp \
2021-03-04 20:19:05 +00:00
qledlabel.cpp \
2021-03-09 17:22:16 +00:00
pttyhandler.cpp \
resampler/resample.c \
repeatersetup.cpp \
rigctld.cpp \
2021-05-23 22:04:35 +00:00
rtaudio/RtAudio.cpp
2018-06-19 19:58:52 +00:00
HEADERS += wfmain.h \
commhandler.h \
2018-11-07 23:54:03 +00:00
rigcommander.h \
freqmemory.h \
rigidentities.h \
2021-02-07 20:07:26 +00:00
udphandler.h \
2021-02-08 08:31:48 +00:00
logcategories.h \
2021-02-11 20:22:40 +00:00
audiohandler.h \
calibrationwindow.h \
2021-02-14 18:32:58 +00:00
satellitesetup.h \
udpserversetup.h \
udpserver.h \
packettypes.h \
meter.h \
2021-03-04 20:19:05 +00:00
qledlabel.h \
2021-03-09 17:22:16 +00:00
pttyhandler.h \
resampler/speex_resampler.h \
resampler/arch.h \
resampler/resample_sse.h \
repeatersetup.h \
repeaterattributes.h \
rigctld.h \
2021-05-23 22:04:35 +00:00
rtaudio/RtAudio.h
2018-06-19 19:58:52 +00:00
FORMS += wfmain.ui \
calibrationwindow.ui \
2021-02-14 18:32:58 +00:00
satellitesetup.ui \
udpserversetup.ui \
repeatersetup.ui