wfview/wfview.pro

223 wiersze
5.8 KiB
Prolog
Czysty Zwykły widok Historia

2018-06-19 19:58:52 +00:00
#-------------------------------------------------
#
# Project created by QtCreator 2018-05-26T16:57:32
#
#-------------------------------------------------
2021-06-04 07:24:26 +00:00
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
2021-11-19 18:26:45 +00:00
DEFINES += WFVIEW_VERSION=\\\"1.2d\\\"
DEFINES += BUILD_WFVIEW
CONFIG(debug, release|debug) {
# For Debug builds only:
2021-06-02 11:10:21 +00:00
QMAKE_CXXFLAGS += -faligned-new
} else {
# For Release builds only:
2021-05-24 17:00:38 +00:00
linux:QMAKE_CXXFLAGS += -s
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CXXFLAGS += -fvisibility-inlines-hidden
2021-06-02 11:10:21 +00:00
QMAKE_CXXFLAGS += -faligned-new
linux: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-06-14 18:09:51 +00:00
2021-03-09 17:22:16 +00:00
# These defines are used for the resampler
2022-03-23 17:27:47 +00:00
equals(QT_ARCH, i386): win32:DEFINES += USE_SSE
equals(QT_ARCH, i386): win32:DEFINES += USE_SSE2
equals(QT_ARCH, x86_64): DEFINES += USE_SSE
equals(QT_ARCH, x86_64): DEFINES += USE_SSE2
2021-06-14 18:09:51 +00:00
equals(QT_ARCH, arm): DEFINES += USE_NEON
2021-03-09 17:22:16 +00:00
DEFINES += OUTSIDE_SPEEX
DEFINES += RANDOM_PREFIX=wf
2022-03-23 17:27:47 +00:00
# These defines are used for the Eigen library
DEFINES += EIGEN_MPL2_ONLY
DEFINES += EIGEN_DONT_VECTORIZE #Clear vector flags
equals(QT_ARCH, i386): win32:DEFINES += EIGEN_VECTORIZE_SSE3
equals(QT_ARCH, x86_64): DEFINES += EIGEN_VECTORIZE_SSE3
isEmpty(PREFIX) {
PREFIX = /usr/local
}
DEFINES += PREFIX=\\\"$$PREFIX\\\"
2021-06-06 16:56:48 +00:00
# Choose audio system, uses QTMultimedia if both are commented out.
2021-06-06 16:57:56 +00:00
# DEFINES += RTAUDIO
2021-11-01 20:39:12 +00:00
# DEFINES += PORTAUDIO
2021-06-06 16:56:48 +00:00
contains(DEFINES, RTAUDIO) {
# 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__
win32:SOURCES += ../rtaudio/RTAudio.cpp
win32:HEADERS += ../rtaudio/RTAUdio.h
!linux:INCLUDEPATH += ../rtaudio
2021-11-07 09:58:41 +00:00
linux:LIBS += -lpulse -lpulse-simple -lrtaudio -lpthread
}
contains(DEFINES, PORTAUDIO) {
CONFIG(debug, release|debug) {
win32:LIBS += -L../portaudio/msvc/Win32/Debug/ -lportaudio_x86
} else {
win32:LIBS += -L../portaudio/msvc/Win32/Release/ -lportaudio_x86
}
win32:INCLUDEPATH += ../portaudio/include
!win32:LIBS += -lportaudio
}
2022-03-23 17:27:47 +00:00
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
unix:target.path = $$PREFIX/bin
INSTALLS += target
# Why doesn't this seem to do anything?
2022-01-21 23:58:18 +00:00
unix:DISTFILES += resources/wfview.png \
2020-03-13 03:13:29 +00:00
resources/install.sh
2022-01-21 23:58:18 +00:00
unix:DISTFILES += resources/wfview.desktop
unix:applications.files = resources/wfview.desktop
unix:applications.path = $$PREFIX/share/applications
INSTALLS += applications
unix:pixmaps.files = resources/wfview.png
unix:pixmaps.path = $$PREFIX/share/pixmaps
INSTALLS += pixmaps
unix:stylesheets.files = qdarkstyle
unix:stylesheets.path = $$PREFIX/share/wfview
INSTALLS += stylesheets
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
2021-06-16 08:49:38 +00:00
win32:LIBS += -L../opus/win32/VS2015/Win32/Debug/ -lopus
2018-11-07 23:54:03 +00:00
} else {
linux: QCPLIB = qcustomplot
2021-06-16 08:49:38 +00:00
win32:LIBS += -L../opus/win32/VS2015/Win32/Release/ -lopus
2018-11-07 23:54:03 +00:00
}
2018-06-19 19:58:52 +00:00
2021-06-16 08:49:38 +00:00
linux:LIBS += -L./ -l$$QCPLIB -lopus
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
2018-06-19 19:58:52 +00:00
2021-06-08 16:50:57 +00:00
!linux:SOURCES += ../qcustomplot/qcustomplot.cpp
!linux:HEADERS += ../qcustomplot/qcustomplot.h
!linux:INCLUDEPATH += ../qcustomplot
2018-06-19 19:58:52 +00:00
2021-06-16 08:49:38 +00:00
!linux:INCLUDEPATH += ../opus/include
2022-04-03 19:16:52 +00:00
!linux:INCLUDEPATH += ../eigen
!linux:INCLUDEPATH += ../r8brain-free-src
2022-03-23 17:27:47 +00:00
INCLUDEPATH += resampler
2021-05-24 17:00:38 +00:00
2018-06-19 19:58:52 +00:00
SOURCES += main.cpp\
2021-05-27 10:45:58 +00:00
wfmain.cpp \
2018-06-19 19:58:52 +00:00
commhandler.cpp \
2018-11-07 23:54:03 +00:00
rigcommander.cpp \
freqmemory.cpp \
rigidentities.cpp \
2021-05-27 10:45:58 +00:00
udphandler.cpp \
logcategories.cpp \
2021-02-11 20:22:40 +00:00
audiohandler.cpp \
calibrationwindow.cpp \
2021-02-14 18:32:58 +00:00
satellitesetup.cpp \
udpserver.cpp \
meter.cpp \
2021-03-04 20:19:05 +00:00
qledlabel.cpp \
2021-05-27 10:45:58 +00:00
pttyhandler.cpp \
resampler/resample.c \
repeatersetup.cpp \
2021-05-27 10:45:58 +00:00
rigctld.cpp \
ring/ring.cpp \
2021-07-08 07:31:59 +00:00
transceiveradjustments.cpp \
selectradio.cpp \
2022-04-03 19:16:52 +00:00
tcpserver.cpp \
aboutbox.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-05-27 10:45:58 +00:00
udphandler.h \
logcategories.h \
2021-02-11 20:22:40 +00:00
audiohandler.h \
calibrationwindow.h \
2021-02-14 18:32:58 +00:00
satellitesetup.h \
2021-05-27 10:45:58 +00:00
udpserver.h \
packettypes.h \
meter.h \
2021-05-27 10:45:58 +00:00
qledlabel.h \
pttyhandler.h \
resampler/speex_resampler.h \
resampler/arch.h \
resampler/resample_sse.h \
repeatersetup.h \
repeaterattributes.h \
2021-05-27 10:45:58 +00:00
rigctld.h \
ulaw.h \
ring/ring.h \
transceiveradjustments.h \
2021-07-08 07:31:59 +00:00
audiotaper.h \
selectradio.h \
2022-04-03 19:16:52 +00:00
tcpserver.h \
audiocommon.h \
2021-07-08 07:31:59 +00:00
aboutbox.h
2018-06-19 19:58:52 +00:00
FORMS += wfmain.ui \
calibrationwindow.ui \
2021-02-14 18:32:58 +00:00
satellitesetup.ui \
selectradio.ui \
repeatersetup.ui \
2021-07-08 07:31:59 +00:00
transceiveradjustments.ui \
aboutbox.ui