Skip to content

Commit

Permalink
Feature: Start server by default on "serveronly" build
Browse files Browse the repository at this point in the history
Follow up for jamulussoftware#2551
  • Loading branch information
ann0see committed Apr 2, 2022
1 parent a9deb22 commit ab18f57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab18f57

Please sign in to comment.