From ab18f57874e115402a293b4559e8262655623aea Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Sat, 2 Apr 2022 22:17:31 +0200 Subject: [PATCH] Feature: Start server by default on "serveronly" build Follow up for https://github.com/jamulussoftware/jamulus/pull/2551 --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 05f245afc3..0bc792376b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -72,9 +72,10 @@ int main ( int argc, char** argv ) // initialize all flags and string which might be changed by command line // arguments -#if defined( SERVER_BUNDLE ) && defined( Q_OS_MACX ) - // if we are on MacOS and we are building a server bundle, starts Jamulus in server mode +#if ( defined( SERVER_BUNDLE ) && defined( Q_OS_MACX ) ) || defined( SERVER_ONLY ) + // if we are on MacOS and we are building a server bundle or requested build with serveronly, start Jamulus in server mode bool bIsClient = false; + qInfo() << "- Starting in server mode by default (due to compile time option)"; #else bool bIsClient = true; #endif