Skip to content

Commit ab0dfff

Browse files
authored
Merge pull request #3117 from pljones/patch/omit-gui-acknowledgements-from-headless-startup-log
#2975 Headless _builds_ use fewer libraries
2 parents f9bf6d4 + 1a84370 commit ab0dfff

File tree

1 file changed

+54
-29
lines changed

1 file changed

+54
-29
lines changed

src/util.cpp

Lines changed: 54 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -593,27 +593,45 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : CBaseDlg ( parent )
593593
"</font></p>" );
594594

595595
// libraries used by this compilation
596-
txvLibraries->setText (
597-
tr ( "This app uses the following libraries, resources or code snippets:" ) + "<br><p>" + tr ( "Qt cross-platform application framework" ) +
598-
", <i><a href=\"https://www.qt.io\">https://www.qt.io</a></i></p>"
599-
"<p>Opus Interactive Audio Codec"
600-
", <i><a href=\"https://www.opus-codec.org\">https://www.opus-codec.org</a></i></p>"
601-
# if defined( _WIN32 ) && !defined( WITH_JACK )
602-
"<p>ASIO (Audio Stream I/O) SDK"
603-
", <i><a href=\"https://www.steinberg.net/developers/\">https://www.steinberg.net/developers</a></i><br>" +
604-
"ASIO is a trademark and software of Steinberg Media Technologies GmbH</p>"
596+
txvLibraries->setText ( tr ( "This app uses the following libraries, resources or code snippets:" ) + "<p>" +
597+
tr ( "Qt cross-platform application framework" ) + QString ( " %1" ).arg ( QT_VERSION_STR ) +
598+
", <i><a href=\"https://www.qt.io\">https://www.qt.io</a></i>"
599+
"</p>"
600+
"<p>"
601+
"Opus Interactive Audio Codec"
602+
", <i><a href=\"https://www.opus-codec.org\">https://www.opus-codec.org</a></i>"
603+
"</p>"
604+
# ifndef SERVER_ONLY
605+
# if defined( _WIN32 ) && !defined( WITH_JACK )
606+
"<p>"
607+
"ASIO (Audio Stream I/O) SDK"
608+
", <i><a href=\"https://www.steinberg.net/developers/\">https://www.steinberg.net/developers</a></i>"
609+
"<br>"
610+
"ASIO is a trademark and software of Steinberg Media Technologies GmbH"
611+
"</p>"
612+
# endif
613+
# ifndef HEADLESS
614+
"<p>" +
615+
tr ( "Audio reverberation code by Perry R. Cook and Gary P. Scavone" ) +
616+
", 1995 - 2021"
617+
", The Synthesis ToolKit in C++ (STK)"
618+
", <i><a href=\"https://ccrma.stanford.edu/software/stk\">https://ccrma.stanford.edu/software/stk</a></i>"
619+
"</p>"
620+
"<p>" +
621+
QString ( tr ( "Some pixmaps are from the %1" ) ).arg ( "Open Clip Art Library (OCAL)" ) +
622+
", <i><a href=\"https://openclipart.org\">https://openclipart.org</a></i>"
623+
"</p>"
624+
"<p>" +
625+
tr ( "Flag icons by Mark James" ) +
626+
", <i><a href=\"http://www.famfamfam.com\">http://www.famfamfam.com</a></i>"
627+
"</p>"
628+
"<p>" +
629+
QString ( tr ( "Some sound samples are from %1" ) ).arg ( "Freesound" ) +
630+
", <i><a href=\"https://freesound.org\">https://freesound.org</a></i>"
631+
"</p>"
632+
# endif
605633
# endif
606-
"<p>" +
607-
tr ( "Audio reverberation code by Perry R. Cook and Gary P. Scavone" ) +
608-
", 1995 - 2021, <i><a href=\"https://ccrma.stanford.edu/software/stk\">"
609-
"The Synthesis ToolKit in C++ (STK)</a></i></p>"
610-
"<p>" +
611-
tr ( "Some pixmaps are from the" ) +
612-
" Open Clip Art Library (OCAL), "
613-
"<i><a href=\"https://openclipart.org\">https://openclipart.org</a></i></p>"
614-
"<p>" +
615-
tr ( "Flag icons by Mark James" ) + ", <i><a href=\"http://www.famfamfam.com\">http://www.famfamfam.com</a></i></p>" + "<p>" +
616-
tr ( "Some sound samples are from" ) + " Freesound, " + "<i><a href=\"https://freesound.org\">https://freesound.org</a></i></p>" );
634+
);
617635

618636
// contributors list
619637
txvContributors->setText (
@@ -1705,31 +1723,38 @@ QString GetVersionAndNameStr ( const bool bDisplayInGui )
17051723
strVersionText += "\n *** Foundation; either version 2 of the License, or (at your option) any later version.";
17061724
strVersionText += "\n *** There is NO WARRANTY, to the extent permitted by law.";
17071725
strVersionText += "\n *** ";
1708-
strVersionText += "\n *** Using the following libraries, resources or code snippets:";
1726+
1727+
strVersionText += "\n *** " + QCoreApplication::tr ( "This app uses the following libraries, resources or code snippets:" );
17091728
strVersionText += "\n *** ";
1710-
strVersionText += QString ( "\n *** Qt framework %1" ).arg ( QT_VERSION_STR );
1711-
strVersionText += "\n *** <https://doc.qt.io/qt-5/lgpl.html>";
1729+
strVersionText += "\n *** " + QCoreApplication::tr ( "Qt cross-platform application framework" ) + QString ( " %1" ).arg ( QT_VERSION_STR );
1730+
strVersionText += "\n *** <https://www.qt.io>";
17121731
strVersionText += "\n *** ";
17131732
strVersionText += "\n *** Opus Interactive Audio Codec";
17141733
strVersionText += "\n *** <https://www.opus-codec.org>";
17151734
strVersionText += "\n *** ";
1716-
#if defined( _WIN32 ) && !defined( WITH_JACK )
1735+
#ifndef SERVER_ONLY
1736+
# if defined( _WIN32 ) && !defined( WITH_JACK )
17171737
strVersionText += "\n *** ASIO (Audio Stream I/O) SDK";
17181738
strVersionText += "\n *** <https://www.steinberg.net/developers>";
1739+
strVersionText += "\n *** ASIO is a trademark and software of Steinberg Media Technologies GmbH";
17191740
strVersionText += "\n *** ";
1720-
#endif
1721-
strVersionText += "\n *** Audio reverberation code by Perry R. Cook and Gary P. Scavone";
1741+
# endif
1742+
# ifndef HEADLESS
1743+
strVersionText += "\n *** " + QCoreApplication::tr ( "Audio reverberation code by Perry R. Cook and Gary P. Scavone" ) +
1744+
", 1995 - 2021, The Synthesis ToolKit in C++ (STK)";
17221745
strVersionText += "\n *** <https://ccrma.stanford.edu/software/stk>";
17231746
strVersionText += "\n *** ";
1724-
strVersionText += "\n *** Some pixmaps are from the Open Clip Art Library (OCAL)";
1747+
strVersionText += "\n *** " + QString ( QCoreApplication::tr ( "Some pixmaps are from the %1" ) ).arg ( " Open Clip Art Library (OCAL)" );
17251748
strVersionText += "\n *** <https://openclipart.org>";
17261749
strVersionText += "\n *** ";
1727-
strVersionText += "\n *** Flag icons by Mark James";
1750+
strVersionText += "\n *** " + QCoreApplication::tr ( "Flag icons by Mark James" );
17281751
strVersionText += "\n *** <http://www.famfamfam.com>";
17291752
strVersionText += "\n *** ";
1730-
strVersionText += "\n *** Some sound samples are from Freesound";
1753+
strVersionText += "\n *** " + QString ( QCoreApplication::tr ( "Some sound samples are from %1" ) ).arg ( "Freesound" );
17311754
strVersionText += "\n *** <https://freesound.org>";
17321755
strVersionText += "\n *** ";
1756+
# endif
1757+
#endif
17331758
strVersionText += "\n *** Copyright © 2005-2023 The Jamulus Development Team";
17341759
strVersionText += "\n";
17351760
}

0 commit comments

Comments
 (0)