From 948e0889ed457ba01982b4ff4fd3ec24f98595cd Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Wed, 15 Jun 2022 17:56:02 +0200 Subject: [PATCH] #24 Make Drats a build option --- .vscode/tasks.json | 1 + DStarGateway/DStarGatewayApp.cpp | 2 ++ Makefile | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 587d251..e1ed666 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,6 +11,7 @@ "-j3", "ENABLE_DEBUG=1", "USE_GPSD=1", + "USE_DRATS=1", "all" ], "group": "build", diff --git a/DStarGateway/DStarGatewayApp.cpp b/DStarGateway/DStarGatewayApp.cpp index 940fc8f..16c7f52 100644 --- a/DStarGateway/DStarGatewayApp.cpp +++ b/DStarGateway/DStarGatewayApp.cpp @@ -240,9 +240,11 @@ bool CDStarGatewayApp::createThread() delete restrictList; } +#ifdef USE_DRATS // Drats TDRats drats; m_config->getDRats(drats); +#endif // Setup the repeaters bool ddEnabled = false; diff --git a/Makefile b/Makefile index d9f7720..28e98c0 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,9 @@ export CPPFLAGS+= -DUSE_GPSD export LDFLAGS+= -lgps endif +ifeq ($(USE_DRATS), 1) export CPPFLAGS+= -DUSE_DRATS +endif .PHONY: all all: DStarGateway/dstargateway DGWRemoteControl/dgwremotecontrol DGWTextTransmit/dgwtexttransmit DGWTimeServer/dgwtimeserver DGWVoiceTransmit/dgwvoicetransmit #tests