chore: don't list date/expected_lite in about page if unused (#6694)
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
#include <boost/json.hpp>
|
#include <boost/json.hpp>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <version>
|
||||||
|
|
||||||
|
#if __cpp_lib_chrono < 201907L
|
||||||
|
# define CHATTERINO_USING_HOWARD_HINNANTS_DATE
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace chatterino::eventsub::lib {
|
namespace chatterino::eventsub::lib {
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#if __cpp_lib_expected >= 202202L
|
#if __cpp_lib_expected >= 202202L
|
||||||
# include <expected>
|
# include <expected>
|
||||||
#else
|
#else
|
||||||
|
# define CHATTERINO_USING_NONSTD_EXPECTED
|
||||||
# include <nonstd/expected.hpp>
|
# include <nonstd/expected.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
#include "common/Common.hpp"
|
#include "common/Common.hpp"
|
||||||
#include "common/QLogging.hpp"
|
#include "common/QLogging.hpp"
|
||||||
#include "common/Version.hpp"
|
#include "common/Version.hpp"
|
||||||
|
#include "util/Expected.hpp" // IWYU pragma: keep - this is being used to see if we're using the expected_lite library
|
||||||
#include "util/LayoutCreator.hpp"
|
#include "util/LayoutCreator.hpp"
|
||||||
#include "util/RemoveScrollAreaBackground.hpp"
|
#include "util/RemoveScrollAreaBackground.hpp"
|
||||||
#include "widgets/BasePopup.hpp"
|
#include "widgets/BasePopup.hpp"
|
||||||
#include "widgets/buttons/SignalLabel.hpp"
|
|
||||||
#include "widgets/layout/FlowLayout.hpp"
|
#include "widgets/layout/FlowLayout.hpp"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
#include <twitch-eventsub-ws/chrono.hpp> // IWYU pragma: keep - this is being used to see if we're using Howard Hinnant's date library
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
@@ -127,15 +128,19 @@ AboutPage::AboutPage()
|
|||||||
addLicense(form.getElement(), "Fluent icons",
|
addLicense(form.getElement(), "Fluent icons",
|
||||||
"https://github.com/microsoft/fluentui-system-icons",
|
"https://github.com/microsoft/fluentui-system-icons",
|
||||||
":/licenses/fluenticons.txt");
|
":/licenses/fluenticons.txt");
|
||||||
|
#ifdef CHATTERINO_USING_NONSTD_EXPECTED
|
||||||
addLicense(form.getElement(), "expected-lite",
|
addLicense(form.getElement(), "expected-lite",
|
||||||
"https://github.com/martinmoene/expected-lite",
|
"https://github.com/martinmoene/expected-lite",
|
||||||
":/licenses/expected-lite.txt");
|
":/licenses/expected-lite.txt");
|
||||||
|
#endif
|
||||||
addLicense(form.getElement(), "certify",
|
addLicense(form.getElement(), "certify",
|
||||||
"https://github.com/djarek/certify",
|
"https://github.com/djarek/certify",
|
||||||
":/licenses/certify.txt");
|
":/licenses/certify.txt");
|
||||||
|
#ifdef CHATTERINO_USING_HOWARD_HINNANTS_DATE
|
||||||
addLicense(form.getElement(), "Howard Hinnant's date.h",
|
addLicense(form.getElement(), "Howard Hinnant's date.h",
|
||||||
"https://github.com/HowardHinnant/date",
|
"https://github.com/HowardHinnant/date",
|
||||||
":/licenses/howard-hinnant-date.txt");
|
":/licenses/howard-hinnant-date.txt");
|
||||||
|
#endif
|
||||||
addLicense(form.getElement(), "{fmt}", "https://fmt.dev",
|
addLicense(form.getElement(), "{fmt}", "https://fmt.dev",
|
||||||
":/licenses/fmtlib.txt");
|
":/licenses/fmtlib.txt");
|
||||||
addLicense(form.getElement(), "Unicode",
|
addLicense(form.getElement(), "Unicode",
|
||||||
|
|||||||
Reference in New Issue
Block a user