wfview/wfview.pro

386 wiersze
13 KiB
Prolog

2018-06-19 19:58:52 +00:00
#-------------------------------------------------
#
# Project created by QtCreator 2018-05-26T16:57:32
#
#-------------------------------------------------
QT += core gui serialport network multimedia xml
2022-10-05 11:45:25 +00:00
#QT += sql
#DEFINES += USESQL
2018-06-19 19:58:52 +00:00
2023-01-12 20:16:23 +00:00
#Uncomment The following line to enable USB controllers (Shuttle/RC-28 etc.)
2023-01-30 16:27:40 +00:00
DEFINES += USB_CONTROLLER
2023-01-12 20:16:23 +00:00
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport websockets
2018-06-19 19:58:52 +00:00
contains(DEFINES,USB_CONTROLLER){
2024-01-28 09:42:50 +00:00
lessThan(QT_MAJOR_VERSION, 6): QT += gamepad
2023-01-12 20:16:23 +00:00
}
2018-06-19 19:58:52 +00:00
TARGET = wfview
TEMPLATE = app
2024-04-28 04:59:53 +00:00
DEFINES += WFVIEW_VERSION=\\\"1.90\\\"
DEFINES += BUILD_WFVIEW
CONFIG(debug, release|debug) {
# For Debug builds only:
2023-01-30 21:43:47 +00:00
linux:QMAKE_CXXFLAGS += -faligned-new
win32:DESTDIR = wfview-release
} else {
# For Release builds only:
linux:QMAKE_CXXFLAGS += -s
2023-01-30 21:43:47 +00:00
linux:QMAKE_CXXFLAGS += -fvisibility=hidden
linux:QMAKE_CXXFLAGS += -fvisibility-inlines-hidden
linux:QMAKE_CXXFLAGS += -faligned-new
linux:QMAKE_LFLAGS += -O2 -s
win32:DESTDIR = wfview-debug
}
2022-08-22 22:09:09 +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
!linux:INCLUDEPATH += ../rtaudio
2022-05-14 14:05:48 +00:00
2023-04-11 19:25:29 +00:00
linux:LIBS += -lpulse -lpulse-simple -lrtaudio -lpthread -ludev
win32:INCLUDEPATH += ../portaudio/include
!win32:LIBS += -lportaudio
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
2021-11-18 14:08:40 +00:00
DEFINES += QCUSTOMPLOT_USE_LIBRARY
2018-06-19 19:58:52 +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\\\"
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
2024-05-05 13:34:27 +00:00
macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15
macx:QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
macx:MY_ENTITLEMENTS.name = CODE_SIGN_ENTITLEMENTS
macx:MY_ENTITLEMENTS.value = ../wfview/resources/wfview.entitlements
macx:QMAKE_MAC_XCODE_SETTINGS += MY_ENTITLEMENTS
macx:QMAKE_INFO_PLIST = ../wfview/resources/Info.plist
2024-05-05 13:34:27 +00:00
macx{
rigFiles.files = rigs
rigFiles.path = Contents/MacOS
QMAKE_BUNDLE_DATA += rigFiles
}
2021-05-17 16:12:51 +00:00
QMAKE_TARGET_BUNDLE_PREFIX = org.wfview
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?
unix:DISTFILES += resources/unix_icons/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:DISTFILES += resources/org.wfview.wfview.metainfo.xml
unix:applications.files = resources/wfview.desktop
unix:applications.path = $$PREFIX/share/applications
INSTALLS += applications
unix:icons.files = resources/unix_icons/wfview.png
unix:icons.path = $$PREFIX/share/icons/hicolor/256x256/apps
INSTALLS += icons
unix:metainfo.files = resources/org.wfview.wfview.metainfo.xml
unix:metainfo.path = $$PREFIX/share/metainfo
INSTALLS += metainfo
unix:stylesheets.files = qdarkstyle
unix:stylesheets.path = $$PREFIX/share/wfview
INSTALLS += stylesheets
2023-04-27 18:56:25 +00:00
unix:rigs.files = rigs/*
unix:rigs.path = $$PREFIX/share/wfview/rigs
INSTALLS += rigs
2023-01-14 11:23:19 +00:00
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
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) {
2023-12-17 19:41:22 +00:00
lessThan(QT_MAJOR_VERSION, 6) {
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libQCustomPlotd.so/ {print \"-lQCustomPlotd\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplotd2.so/ {print \"-lqcustomplotd2\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplotd.so/ {print \"-lqcustomplotd\"}'")
} else {
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libQCustomPlotdQt6.so/ {print \"-lQCustomPlotdQt6\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplotd2qt6.so/ {print \"-lqcustomplotd2qt6\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplotdqt6.so/ {print \"-lqcustomplotdqt6\"}'")
}
2023-04-27 16:52:20 +00:00
macos:LIBS += -lqcustomplotd
win32:LIBS += -lqcustomplotd2
win32 {
contains(QMAKE_TARGET.arch, x86_64) {
2023-02-03 23:10:40 +00:00
LIBS += -L../opus/win32/VS2015/x64/DebugDLL/
LIBS += -L../qcustomplot/x64
2023-01-30 21:43:47 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\qcustomplot\x64\qcustomplotd2.dll wfview-debug $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\portaudio\msvc\x64\Debug\portaudio_x64.dll wfview-debug $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\hidapi\windows\X64\Debug\hidapi.dll wfview-debug $$escape_expand(\\n\\t))
2024-03-25 10:43:23 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\opus\win32\VS2015\x64\DebugDLL\opus-0.dll wfview-debug $$escape_expand(\\n\\t))
2023-04-27 23:31:41 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c xcopy /s/y ..\wfview\rigs\*.* wfview-debug\rigs\*.* $$escape_expand(\\n\\t))
2023-02-03 23:10:40 +00:00
LIBS += -L../portaudio/msvc/X64/Debug/ -lportaudio_x64
2023-01-30 19:06:23 +00:00
contains(DEFINES,USB_CONTROLLER){
2023-02-03 23:10:40 +00:00
LIBS += -L../hidapi/windows/x64/debug -lhidapi
2023-01-30 19:06:23 +00:00
}
} else {
2023-02-03 23:10:40 +00:00
LIBS += -L../opus/win32/VS2015/win32/DebugDLL/
LIBS += -L../qcustomplot/win32
2023-02-03 23:10:40 +00:00
LIBS += -L../portaudio/msvc/Win32/Debug/ -lportaudio_x86
2023-01-30 21:43:47 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y .\qcustomplot\win32\qcustomplotd2.dll wfview-debug $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\portaudio\msvc\win32\Debug\portaudio_x86.dll wfview-debug\$$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\hidapi\windows\Debug\hidapi.dll wfview-debug $$escape_expand(\\n\\t))
2024-03-25 10:43:23 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\opus\win32\VS2015\win32\DebugDLL\opus-0.dll wfview-debug $$escape_expand(\\n\\t))
2023-04-27 23:31:41 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c xcopy /s/y ..\wfview\rigs\*.* wfview-debug\rigs\*.* $$escape_expand(\\n\\t))
2023-02-03 23:10:40 +00:00
contains(DEFINES,USB_CONTROLLER){
LIBS += -L../hidapi/windows/debug -lhidapi
2023-01-30 19:06:23 +00:00
}
}
}
2018-11-07 23:54:03 +00:00
} else {
2023-12-17 19:41:22 +00:00
lessThan(QT_MAJOR_VERSION, 6) {
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libQCustomPlot.so/ {print \"-lQCustomPlot\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplot2.so/ {print \"-lqcustomplot2\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplot.so/ {print \"-lqcustomplot\"}'")
} else {
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libQCustomPlotQt6.so/ {print \"-lQCustomPlotQt6\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplot2qt6.so/ {print \"-lqcustomplot2qt6\"}'")
linux:LIBS += $$system("/sbin/ldconfig -p | awk '/libqcustomplotqt6.so/ {print \"-lqcustomplotqt6\"}'")
}
2023-04-27 16:52:20 +00:00
macos:LIBS += -lqcustomplot
win32:LIBS += -lqcustomplot2
win32 {
contains(QMAKE_TARGET.arch, x86_64) {
2024-03-25 10:43:23 +00:00
LIBS += -L../opus/win32/VS2015/x64/ReleaseDLL/
LIBS += -L../qcustomplot/x64
2023-02-03 23:10:40 +00:00
LIBS += -L../portaudio/msvc/X64/Release/ -lportaudio_x64
2023-01-30 21:43:47 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\qcustomplot\x64\qcustomplot2.dll wfview-release $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\portaudio\msvc\x64\Release\portaudio_x64.dll wfview-release $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\hidapi\windows\X64\Release\hidapi.dll wfview-release $$escape_expand(\\n\\t))
2024-03-25 10:43:23 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\opus\win32\VS2015\x64\ReleaseDLL\opus-0.dll wfview-release $$escape_expand(\\n\\t))
2023-04-27 23:31:41 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c xcopy /s/y ..\wfview\rigs\*.* wfview-release\rigs\*.* $$escape_expand(\\n\\t))
2023-01-30 19:06:23 +00:00
contains(DEFINES,USB_CONTROLLER){
2023-02-03 23:10:40 +00:00
LIBS += -L../hidapi/windows/x64/release -lhidapi
2023-01-30 19:06:23 +00:00
}
} else {
2024-03-25 10:43:23 +00:00
LIBS += -L../opus/win32/VS2015/win32/ReleaseDLL/
LIBS += -L../qcustomplot/win32
2023-02-03 23:10:40 +00:00
LIBS += -L../portaudio/msvc/Win32/Release/ -lportaudio_x86
2023-01-30 21:43:47 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\qcustomplot\win32\qcustomplot2.dll wfview-release $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\portaudio\msvc\win32\Release\portaudio_x86.dll wfview-release $$escape_expand(\\n\\t))
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\hidapi\windows\Release\hidapi.dll wfview-release $$escape_expand(\\n\\t))
2024-03-25 10:43:23 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c copy /y ..\opus\win32\VS2015\win32\ReleaseDLL\opus-0.dll wfview-release $$escape_expand(\\n\\t))
2023-04-27 23:31:41 +00:00
QMAKE_POST_LINK +=$$quote(cmd /c xcopy /s/y ..\wfview\rigs\*.* wfview-release\rigs\*.* $$escape_expand(\\n\\t))
2023-01-30 19:06:23 +00:00
contains(DEFINES,USB_CONTROLLER){
win32:LIBS += -L../hidapi/windows/release -lhidapi
}
}
}
2018-11-07 23:54:03 +00:00
}
2018-06-19 19:58:52 +00:00
contains(DEFINES,USB_CONTROLLER){
2023-04-27 16:52:20 +00:00
linux:LIBS += -L./ -lhidapi-libusb
2023-01-14 11:23:19 +00:00
macx:LIBS += -lhidapi
2023-01-12 20:16:23 +00:00
win32:INCLUDEPATH += ../hidapi/hidapi
}
2023-04-27 16:52:20 +00:00
!win32:LIBS += -L./ -lopus
win32:LIBS += -lopus -lole32 -luser32
#macx:SOURCES += ../qcustomplot/qcustomplot.cpp
#macx:HEADERS += ../qcustomplot/qcustomplot.h
2023-01-14 11:23:19 +00:00
win32:INCLUDEPATH += ../qcustomplot
2021-06-16 08:49:38 +00:00
!linux:INCLUDEPATH += ../opus/include
2023-01-14 11:23:19 +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\
2023-02-09 06:14:55 +00:00
bandbuttons.cpp \
2023-05-11 23:24:01 +00:00
cachingqueue.cpp \
cwsender.cpp \
firsttimesetup.cpp \
2023-07-22 23:26:56 +00:00
freqctrl.cpp \
2023-02-12 02:39:02 +00:00
frequencyinputwidget.cpp \
cwsidetone.cpp \
2023-05-15 09:53:52 +00:00
debugwindow.cpp \
2024-05-05 12:47:20 +00:00
icomcommander.cpp \
loggingwindow.cpp \
scrolltest.cpp \
settingswidget.cpp \
2023-05-01 20:56:52 +00:00
memories.cpp \
2023-04-19 13:51:23 +00:00
rigcreator.cpp \
2023-06-01 16:57:44 +00:00
spectrumscope.cpp \
2023-04-19 13:51:23 +00:00
tablewidget.cpp \
tciaudiohandler.cpp \
tciserver.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 \
udpbase.cpp \
2021-05-27 10:45:58 +00:00
udphandler.cpp \
udpcivdata.cpp \
udpaudio.cpp \
2021-05-27 10:45:58 +00:00
logcategories.cpp \
pahandler.cpp \
rthandler.cpp \
2021-02-11 20:22:40 +00:00
audiohandler.cpp \
2022-05-08 09:19:21 +00:00
audioconverter.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 \
2022-04-22 10:11:21 +00:00
usbcontroller.cpp \
2022-10-22 19:55:08 +00:00
controllersetup.cpp \
# transceiveradjustments.cpp \
selectradio.cpp \
2022-04-03 19:16:52 +00:00
tcpserver.cpp \
2022-09-29 16:17:51 +00:00
cluster.cpp \
database.cpp \
aboutbox.cpp \
audiodevices.cpp
2018-06-19 19:58:52 +00:00
2023-05-01 20:56:52 +00:00
HEADERS += wfmain.h \
2023-02-09 06:14:55 +00:00
bandbuttons.h \
2023-05-11 23:24:01 +00:00
cachingqueue.h \
2023-05-01 20:56:52 +00:00
colorprefs.h \
commhandler.h \
cwsender.h \
firsttimesetup.h \
2023-07-22 23:26:56 +00:00
freqctrl.h \
2023-02-12 02:39:02 +00:00
frequencyinputwidget.h \
2023-05-01 20:56:52 +00:00
cwsidetone.h \
2023-05-15 09:53:52 +00:00
debugwindow.h \
2024-05-05 12:47:20 +00:00
icomcommander.h \
2023-05-01 20:56:52 +00:00
loggingwindow.h \
memories.h \
prefs.h \
printhex.h \
rigcommander.h \
freqmemory.h \
rigcreator.h \
rigidentities.h \
scrolltest.h \
settingswidget.h \
2023-05-01 20:56:52 +00:00
sidebandchooser.h \
2023-06-01 16:57:44 +00:00
spectrumscope.h \
2023-05-01 20:56:52 +00:00
tablewidget.h \
tciaudiohandler.h \
tciserver.h \
2023-05-01 20:56:52 +00:00
udpbase.h \
udphandler.h \
udpcivdata.h \
udpaudio.h \
logcategories.h \
pahandler.h \
rthandler.h \
audiohandler.h \
audioconverter.h \
calibrationwindow.h \
satellitesetup.h \
udpserver.h \
packettypes.h \
meter.h \
qledlabel.h \
pttyhandler.h \
resampler/speex_resampler.h \
resampler/arch.h \
resampler/resample_sse.h \
repeatersetup.h \
repeaterattributes.h \
rigctld.h \
ulaw.h \
usbcontroller.h \
controllersetup.h \
# transceiveradjustments.h \
2023-05-01 20:56:52 +00:00
audiotaper.h \
selectradio.h \
tcpserver.h \
cluster.h \
database.h \
aboutbox.h \
wfviewtypes.h \
audiodevices.h
FORMS += wfmain.ui \
2023-02-09 06:14:55 +00:00
bandbuttons.ui \
2023-05-01 20:56:52 +00:00
calibrationwindow.ui \
cwsender.ui \
firsttimesetup.ui \
2023-02-12 02:39:02 +00:00
frequencyinputwidget.ui \
2023-05-15 09:53:52 +00:00
debugwindow.ui \
2023-05-01 20:56:52 +00:00
loggingwindow.ui \
memories.ui \
rigcreator.ui \
satellitesetup.ui \
selectradio.ui \
repeatersetup.ui \
settingswidget.ui \
# transceiveradjustments.ui \
2023-05-01 20:56:52 +00:00
controllersetup.ui \
aboutbox.ui