wfview/wfview.pro

174 wiersze
4.7 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
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
2021-06-14 18:09:51 +00:00
equals(QT_ARCH, i386): DEFINES += USE_SSE
equals(QT_ARCH, arm): DEFINES += USE_NEON
2021-03-09 17:22:16 +00:00
DEFINES += OUTSIDE_SPEEX
DEFINES += RANDOM_PREFIX=wf
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-06-06 16:56:48 +00:00
# DEFINES += PORTAUDIO
# RTAudio defines
win32:DEFINES += __WINDOWS_WASAPI__
#win32:DEFINES += __WINDOWS_DS__ # Requires DirectSound libraries
2021-06-02 11:58:11 +00:00
linux:DEFINES += __LINUX_ALSA__
#linux:DEFINES += __LINUX_OSS__
2021-06-02 11:58:11 +00:00
#linux:DEFINES += __LINUX_PULSE__
macx:DEFINES += __MACOSX_CORE__
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
2021-06-02 11:58:11 +00:00
#linux:LIBS += -L./ -l$$QCPLIB -lpulse -lpulse-simple -lpthread
2021-06-04 07:24:26 +00:00
linux:LIBS += -L./ -l$$QCPLIB
2021-05-27 11:27:17 +00:00
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread
2018-06-19 19:58:52 +00:00
2021-06-08 16:50:57 +00:00
#win32:SOURCES += rtaudio/RTAudio.cpp
#win32:HEADERS += rtaudio/RTAUdio.h
!linux:SOURCES += ../qcustomplot/qcustomplot.cpp
!linux:HEADERS += ../qcustomplot/qcustomplot.h
!linux:INCLUDEPATH += ../qcustomplot
2018-06-19 19:58:52 +00:00
INCLUDEPATH += resampler
!linux:INCLUDEPATH += rtaudio
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 \
udpserversetup.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 \
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 \
udpserversetup.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 \
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 \
udpserversetup.ui \
repeatersetup.ui \
2021-07-08 07:31:59 +00:00
transceiveradjustments.ui \
aboutbox.ui