2022-01-17 17:23:55 +00:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2018-05-26T16:57:32
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += core serialport network multimedia
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
|
|
|
|
|
|
|
TARGET = wfserver
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
CONFIG += console
|
|
|
|
|
2022-04-14 06:20:48 +00:00
|
|
|
DEFINES += WFVIEW_VERSION=\\\"1.2e\\\"
|
2022-01-17 17:23:55 +00:00
|
|
|
|
2022-01-18 09:03:41 +00:00
|
|
|
DEFINES += BUILD_WFSERVER
|
2022-01-17 17:23:55 +00:00
|
|
|
|
|
|
|
|
2022-05-12 00:46:20 +00:00
|
|
|
CONFIG(debug, release|debug) {
|
|
|
|
# For Debug builds only:
|
|
|
|
QMAKE_CXXFLAGS += -faligned-new
|
|
|
|
win32:DESTDIR = wfview-release
|
2022-05-20 17:24:28 +00:00
|
|
|
win32:LIBS += -L../portaudio/msvc/Win32/Debug/ -lportaudio_x86 -ole32
|
2022-01-17 17:23:55 +00:00
|
|
|
} else {
|
2022-05-12 00:46:20 +00:00
|
|
|
# For Release builds only:
|
|
|
|
linux:QMAKE_CXXFLAGS += -s
|
|
|
|
QMAKE_CXXFLAGS += -fvisibility=hidden
|
|
|
|
QMAKE_CXXFLAGS += -fvisibility-inlines-hidden
|
|
|
|
QMAKE_CXXFLAGS += -faligned-new
|
|
|
|
linux:QMAKE_LFLAGS += -O2 -s
|
|
|
|
win32:DESTDIR = wfview-debug
|
2022-05-20 17:24:28 +00:00
|
|
|
win32:LIBS += -L../portaudio/msvc/Win32/Release/ -lportaudio_x86 -lole32
|
2022-01-17 17:23:55 +00:00
|
|
|
}
|
|
|
|
|
2022-05-12 00:46:20 +00:00
|
|
|
# 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__
|
2022-05-14 14:05:48 +00:00
|
|
|
!linux:SOURCES += ../rtaudio/RTAudio.cpp
|
|
|
|
!linux:HEADERS += ../rtaudio/RTAUdio.h
|
2022-05-12 00:46:20 +00:00
|
|
|
!linux:INCLUDEPATH += ../rtaudio
|
|
|
|
linux:LIBS += -lpulse -lpulse-simple -lrtaudio -lpthread
|
|
|
|
|
|
|
|
win32:INCLUDEPATH += ../portaudio/include
|
|
|
|
!win32:LIBS += -lportaudio
|
|
|
|
|
2022-01-17 17:23:55 +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
|
|
|
|
|
|
|
|
|
|
|
|
# These defines are used for the resampler
|
|
|
|
equals(QT_ARCH, i386): DEFINES += USE_SSE
|
|
|
|
equals(QT_ARCH, i386): DEFINES += USE_SSE2
|
|
|
|
equals(QT_ARCH, arm): DEFINES += USE_NEON
|
|
|
|
DEFINES += OUTSIDE_SPEEX
|
|
|
|
DEFINES += RANDOM_PREFIX=wf
|
|
|
|
|
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr/local
|
|
|
|
}
|
|
|
|
|
2022-04-04 10:12:06 +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
|
|
|
|
|
2022-01-17 17:23:55 +00:00
|
|
|
DEFINES += PREFIX=\\\"$$PREFIX\\\"
|
|
|
|
|
|
|
|
macx:INCLUDEPATH += /usr/local/include /opt/local/include
|
|
|
|
macx:LIBS += -L/usr/local/lib -L/opt/local/lib
|
|
|
|
|
|
|
|
macx:ICON = ../wfview/resources/wfview.icns
|
|
|
|
win32:RC_ICONS = ../wfview/resources/wfview.ico
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
|
|
|
|
QMAKE_TARGET_BUNDLE_PREFIX = org.wfview
|
|
|
|
MY_ENTITLEMENTS.name = CODE_SIGN_ENTITLEMENTS
|
|
|
|
MY_ENTITLEMENTS.value = ../wfview/resources/wfview.entitlements
|
|
|
|
QMAKE_MAC_XCODE_SETTINGS += MY_ENTITLEMENTS
|
|
|
|
QMAKE_INFO_PLIST = ../wfview/resources/Info.plist
|
|
|
|
|
|
|
|
!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
|
|
|
|
|
|
|
|
# Do not do this, it will hang on start:
|
|
|
|
# CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
|
|
|
|
CONFIG(debug, release|debug) {
|
|
|
|
win32:LIBS += -L../opus/win32/VS2015/Win32/Debug/ -lopus
|
|
|
|
} else {
|
|
|
|
win32:LIBS += -L../opus/win32/VS2015/Win32/Release/ -lopus
|
|
|
|
}
|
|
|
|
|
2022-01-18 09:06:23 +00:00
|
|
|
linux:LIBS += -L./ -lopus
|
2022-01-17 17:23:55 +00:00
|
|
|
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
|
|
|
|
|
|
|
|
!linux:INCLUDEPATH += ../opus/include
|
|
|
|
|
2022-04-04 10:12:06 +00:00
|
|
|
!linux:INCLUDEPATH += ../eigen
|
|
|
|
!linux:INCLUDEPATH += ../r8brain-free-src
|
|
|
|
|
2022-01-17 17:23:55 +00:00
|
|
|
INCLUDEPATH += resampler
|
|
|
|
|
|
|
|
SOURCES += main.cpp\
|
|
|
|
servermain.cpp \
|
|
|
|
commhandler.cpp \
|
|
|
|
rigcommander.cpp \
|
|
|
|
freqmemory.cpp \
|
|
|
|
rigidentities.cpp \
|
2022-05-10 23:11:29 +00:00
|
|
|
udpbase.cpp \
|
2022-01-17 17:23:55 +00:00
|
|
|
udphandler.cpp \
|
2022-05-10 23:11:29 +00:00
|
|
|
udpcivdata.cpp \
|
|
|
|
udpaudio.cpp \
|
2022-01-17 17:23:55 +00:00
|
|
|
logcategories.cpp \
|
2022-05-12 00:46:20 +00:00
|
|
|
pahandler.cpp \
|
|
|
|
rthandler.cpp \
|
2022-01-17 17:23:55 +00:00
|
|
|
audiohandler.cpp \
|
2022-05-06 22:15:32 +00:00
|
|
|
audioconverter.cpp \
|
2022-01-17 17:23:55 +00:00
|
|
|
udpserver.cpp \
|
|
|
|
pttyhandler.cpp \
|
|
|
|
resampler/resample.c \
|
|
|
|
rigctld.cpp \
|
2022-04-04 10:12:06 +00:00
|
|
|
tcpserver.cpp \
|
2022-04-13 11:55:59 +00:00
|
|
|
keyboard.cpp
|
2022-01-17 17:23:55 +00:00
|
|
|
|
|
|
|
HEADERS += servermain.h \
|
|
|
|
commhandler.h \
|
|
|
|
rigcommander.h \
|
|
|
|
freqmemory.h \
|
|
|
|
rigidentities.h \
|
2022-05-10 23:11:29 +00:00
|
|
|
udpbase.h \
|
2022-01-17 17:23:55 +00:00
|
|
|
udphandler.h \
|
2022-05-10 23:11:29 +00:00
|
|
|
udpcivdata.h \
|
|
|
|
udpaudio.h \
|
2022-01-17 17:23:55 +00:00
|
|
|
logcategories.h \
|
2022-05-12 00:46:20 +00:00
|
|
|
pahandler.h \
|
|
|
|
rthandler.h \
|
2022-01-17 17:23:55 +00:00
|
|
|
audiohandler.h \
|
2022-05-06 22:15:32 +00:00
|
|
|
audioconverter.h \
|
2022-01-17 17:23:55 +00:00
|
|
|
udpserver.h \
|
|
|
|
packettypes.h \
|
|
|
|
pttyhandler.h \
|
|
|
|
resampler/speex_resampler.h \
|
|
|
|
resampler/arch.h \
|
|
|
|
resampler/resample_sse.h \
|
|
|
|
repeaterattributes.h \
|
|
|
|
rigctld.h \
|
|
|
|
ulaw.h \
|
2022-04-04 10:12:06 +00:00
|
|
|
tcpserver.h \
|
2022-04-13 11:55:59 +00:00
|
|
|
audiotaper.h \
|
|
|
|
keyboard.h
|