2021-06-13 13:49:59 +02:00
|
|
|
set(LIBRARY_PROJECT "${PROJECT_NAME}-lib")
|
|
|
|
set(EXECUTABLE_PROJECT "${PROJECT_NAME}")
|
2022-11-10 20:11:40 +01:00
|
|
|
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
|
2021-06-13 13:49:59 +02:00
|
|
|
|
|
|
|
set(SOURCE_FILES
|
2021-03-28 16:58:51 +02:00
|
|
|
Application.cpp
|
|
|
|
Application.hpp
|
|
|
|
BaseSettings.cpp
|
|
|
|
BaseSettings.hpp
|
|
|
|
BrowserExtension.cpp
|
|
|
|
BrowserExtension.hpp
|
|
|
|
RunGui.cpp
|
|
|
|
RunGui.hpp
|
|
|
|
|
|
|
|
common/Args.cpp
|
|
|
|
common/Args.hpp
|
|
|
|
common/Channel.cpp
|
|
|
|
common/Channel.hpp
|
|
|
|
common/ChannelChatters.cpp
|
|
|
|
common/ChannelChatters.hpp
|
|
|
|
common/ChatterinoSetting.cpp
|
|
|
|
common/ChatterinoSetting.hpp
|
2021-05-24 12:13:59 +02:00
|
|
|
common/ChatterSet.cpp
|
|
|
|
common/ChatterSet.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
common/CompletionModel.cpp
|
|
|
|
common/CompletionModel.hpp
|
|
|
|
common/Credentials.cpp
|
|
|
|
common/Credentials.hpp
|
|
|
|
common/DownloadManager.cpp
|
|
|
|
common/DownloadManager.hpp
|
|
|
|
common/Env.cpp
|
|
|
|
common/Env.hpp
|
|
|
|
common/LinkParser.cpp
|
|
|
|
common/LinkParser.hpp
|
|
|
|
common/Modes.cpp
|
|
|
|
common/Modes.hpp
|
2021-04-17 13:49:19 +02:00
|
|
|
common/NetworkCommon.cpp
|
|
|
|
common/NetworkCommon.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
common/NetworkManager.cpp
|
|
|
|
common/NetworkManager.hpp
|
|
|
|
common/NetworkPrivate.cpp
|
|
|
|
common/NetworkPrivate.hpp
|
|
|
|
common/NetworkRequest.cpp
|
|
|
|
common/NetworkRequest.hpp
|
|
|
|
common/NetworkResult.cpp
|
|
|
|
common/NetworkResult.hpp
|
|
|
|
common/QLogging.cpp
|
|
|
|
common/QLogging.hpp
|
|
|
|
common/Version.cpp
|
|
|
|
common/Version.hpp
|
|
|
|
common/WindowDescriptors.cpp
|
|
|
|
common/WindowDescriptors.hpp
|
|
|
|
|
|
|
|
controllers/accounts/Account.cpp
|
|
|
|
controllers/accounts/Account.hpp
|
|
|
|
controllers/accounts/AccountController.cpp
|
|
|
|
controllers/accounts/AccountController.hpp
|
|
|
|
controllers/accounts/AccountModel.cpp
|
|
|
|
controllers/accounts/AccountModel.hpp
|
|
|
|
|
2022-11-06 13:07:54 +01:00
|
|
|
controllers/commands/builtin/twitch/ChatSettings.cpp
|
|
|
|
controllers/commands/builtin/twitch/ChatSettings.hpp
|
|
|
|
controllers/commands/CommandContext.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/commands/CommandController.cpp
|
|
|
|
controllers/commands/CommandController.hpp
|
2022-11-06 13:07:54 +01:00
|
|
|
controllers/commands/Command.cpp
|
|
|
|
controllers/commands/Command.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/commands/CommandModel.cpp
|
|
|
|
controllers/commands/CommandModel.hpp
|
|
|
|
|
|
|
|
controllers/filters/FilterModel.cpp
|
|
|
|
controllers/filters/FilterModel.hpp
|
2022-12-31 15:41:01 +01:00
|
|
|
controllers/filters/FilterRecord.cpp
|
|
|
|
controllers/filters/FilterRecord.hpp
|
|
|
|
controllers/filters/FilterSet.cpp
|
|
|
|
controllers/filters/FilterSet.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/filters/parser/FilterParser.cpp
|
|
|
|
controllers/filters/parser/FilterParser.hpp
|
|
|
|
controllers/filters/parser/Tokenizer.cpp
|
|
|
|
controllers/filters/parser/Tokenizer.hpp
|
|
|
|
controllers/filters/parser/Types.cpp
|
|
|
|
controllers/filters/parser/Types.hpp
|
|
|
|
|
2021-05-03 00:08:08 +02:00
|
|
|
controllers/highlights/BadgeHighlightModel.cpp
|
|
|
|
controllers/highlights/BadgeHighlightModel.hpp
|
|
|
|
controllers/highlights/HighlightBadge.cpp
|
|
|
|
controllers/highlights/HighlightBadge.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/highlights/HighlightBlacklistModel.cpp
|
|
|
|
controllers/highlights/HighlightBlacklistModel.hpp
|
2022-06-05 17:40:57 +02:00
|
|
|
controllers/highlights/HighlightController.cpp
|
|
|
|
controllers/highlights/HighlightController.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/highlights/HighlightModel.cpp
|
|
|
|
controllers/highlights/HighlightModel.hpp
|
|
|
|
controllers/highlights/HighlightPhrase.cpp
|
|
|
|
controllers/highlights/HighlightPhrase.hpp
|
|
|
|
controllers/highlights/UserHighlightModel.cpp
|
|
|
|
controllers/highlights/UserHighlightModel.hpp
|
|
|
|
|
2021-11-21 18:46:21 +01:00
|
|
|
controllers/hotkeys/ActionNames.hpp
|
|
|
|
controllers/hotkeys/Hotkey.cpp
|
|
|
|
controllers/hotkeys/Hotkey.hpp
|
|
|
|
controllers/hotkeys/HotkeyCategory.hpp
|
|
|
|
controllers/hotkeys/HotkeyController.cpp
|
|
|
|
controllers/hotkeys/HotkeyController.hpp
|
|
|
|
controllers/hotkeys/HotkeyHelpers.cpp
|
|
|
|
controllers/hotkeys/HotkeyHelpers.hpp
|
|
|
|
controllers/hotkeys/HotkeyModel.cpp
|
|
|
|
controllers/hotkeys/HotkeyModel.hpp
|
|
|
|
|
2021-08-01 15:44:04 +02:00
|
|
|
controllers/ignores/IgnoreController.cpp
|
|
|
|
controllers/ignores/IgnoreController.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/ignores/IgnoreModel.cpp
|
|
|
|
controllers/ignores/IgnoreModel.hpp
|
2022-12-18 15:36:39 +01:00
|
|
|
controllers/ignores/IgnorePhrase.cpp
|
|
|
|
controllers/ignores/IgnorePhrase.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
controllers/moderationactions/ModerationAction.cpp
|
|
|
|
controllers/moderationactions/ModerationAction.hpp
|
|
|
|
controllers/moderationactions/ModerationActionModel.cpp
|
|
|
|
controllers/moderationactions/ModerationActionModel.hpp
|
|
|
|
|
2023-01-15 12:47:22 +01:00
|
|
|
controllers/logging/ChannelLog.cpp
|
|
|
|
controllers/logging/ChannelLog.hpp
|
|
|
|
controllers/logging/ChannelLoggingModel.cpp
|
|
|
|
controllers/logging/ChannelLoggingModel.hpp
|
|
|
|
|
2021-07-31 16:15:43 +02:00
|
|
|
controllers/nicknames/NicknamesModel.cpp
|
|
|
|
controllers/nicknames/NicknamesModel.hpp
|
|
|
|
controllers/nicknames/Nickname.hpp
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
controllers/notifications/NotificationController.cpp
|
|
|
|
controllers/notifications/NotificationController.hpp
|
|
|
|
controllers/notifications/NotificationModel.cpp
|
|
|
|
controllers/notifications/NotificationModel.hpp
|
|
|
|
|
|
|
|
controllers/pings/MutedChannelModel.cpp
|
|
|
|
controllers/pings/MutedChannelModel.hpp
|
|
|
|
|
2023-01-29 20:49:46 +01:00
|
|
|
controllers/plugins/PluginController.hpp
|
|
|
|
controllers/plugins/PluginController.cpp
|
2023-01-30 21:19:29 +01:00
|
|
|
controllers/plugins/LuaUtilities.cpp
|
|
|
|
controllers/plugins/LuaUtilities.hpp
|
2023-01-29 20:49:46 +01:00
|
|
|
|
2022-11-13 18:21:21 +01:00
|
|
|
controllers/userdata/UserDataController.cpp
|
|
|
|
controllers/userdata/UserDataController.hpp
|
|
|
|
controllers/userdata/UserData.hpp
|
|
|
|
|
2023-01-29 10:36:25 +01:00
|
|
|
controllers/sound/SoundController.cpp
|
|
|
|
controllers/sound/SoundController.hpp
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
debug/Benchmark.cpp
|
|
|
|
debug/Benchmark.hpp
|
|
|
|
|
|
|
|
messages/Emote.cpp
|
|
|
|
messages/Emote.hpp
|
|
|
|
messages/Image.cpp
|
|
|
|
messages/Image.hpp
|
|
|
|
messages/ImageSet.cpp
|
|
|
|
messages/ImageSet.hpp
|
|
|
|
messages/Link.cpp
|
|
|
|
messages/Link.hpp
|
|
|
|
messages/Message.cpp
|
|
|
|
messages/Message.hpp
|
|
|
|
messages/MessageBuilder.cpp
|
|
|
|
messages/MessageBuilder.hpp
|
|
|
|
messages/MessageColor.cpp
|
|
|
|
messages/MessageColor.hpp
|
|
|
|
messages/MessageElement.cpp
|
|
|
|
messages/MessageElement.hpp
|
2022-07-31 12:45:25 +02:00
|
|
|
messages/MessageThread.cpp
|
|
|
|
messages/MessageThread.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
messages/SharedMessageBuilder.cpp
|
|
|
|
messages/SharedMessageBuilder.hpp
|
|
|
|
|
|
|
|
messages/layouts/MessageLayout.cpp
|
|
|
|
messages/layouts/MessageLayout.hpp
|
|
|
|
messages/layouts/MessageLayoutContainer.cpp
|
|
|
|
messages/layouts/MessageLayoutContainer.hpp
|
|
|
|
messages/layouts/MessageLayoutElement.cpp
|
|
|
|
messages/layouts/MessageLayoutElement.hpp
|
|
|
|
messages/search/AuthorPredicate.cpp
|
|
|
|
messages/search/AuthorPredicate.hpp
|
2022-10-01 14:30:29 +02:00
|
|
|
messages/search/BadgePredicate.cpp
|
|
|
|
messages/search/BadgePredicate.hpp
|
2021-04-17 13:18:22 +02:00
|
|
|
messages/search/ChannelPredicate.cpp
|
|
|
|
messages/search/ChannelPredicate.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
messages/search/LinkPredicate.cpp
|
|
|
|
messages/search/LinkPredicate.hpp
|
2021-05-01 14:21:45 +02:00
|
|
|
messages/search/MessageFlagsPredicate.cpp
|
|
|
|
messages/search/MessageFlagsPredicate.hpp
|
2021-10-17 14:36:44 +02:00
|
|
|
messages/search/RegexPredicate.cpp
|
|
|
|
messages/search/RegexPredicate.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
messages/search/SubstringPredicate.cpp
|
|
|
|
messages/search/SubstringPredicate.hpp
|
2022-10-01 14:30:29 +02:00
|
|
|
messages/search/SubtierPredicate.cpp
|
|
|
|
messages/search/SubtierPredicate.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
providers/IvrApi.cpp
|
|
|
|
providers/IvrApi.hpp
|
|
|
|
providers/LinkResolver.cpp
|
|
|
|
providers/LinkResolver.hpp
|
2022-08-06 18:18:34 +02:00
|
|
|
providers/RecentMessagesApi.cpp
|
|
|
|
providers/RecentMessagesApi.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
providers/bttv/BttvEmotes.cpp
|
|
|
|
providers/bttv/BttvEmotes.hpp
|
2023-01-21 15:06:55 +01:00
|
|
|
providers/bttv/BttvLiveUpdates.cpp
|
|
|
|
providers/bttv/BttvLiveUpdates.hpp
|
|
|
|
|
|
|
|
providers/bttv/liveupdates/BttvLiveUpdateMessages.cpp
|
|
|
|
providers/bttv/liveupdates/BttvLiveUpdateMessages.hpp
|
|
|
|
providers/bttv/liveupdates/BttvLiveUpdateSubscription.cpp
|
|
|
|
providers/bttv/liveupdates/BttvLiveUpdateSubscription.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
providers/chatterino/ChatterinoBadges.cpp
|
|
|
|
providers/chatterino/ChatterinoBadges.hpp
|
|
|
|
|
|
|
|
providers/colors/ColorProvider.cpp
|
|
|
|
providers/colors/ColorProvider.hpp
|
|
|
|
|
|
|
|
providers/emoji/Emojis.cpp
|
|
|
|
providers/emoji/Emojis.hpp
|
|
|
|
|
|
|
|
providers/ffz/FfzBadges.cpp
|
|
|
|
providers/ffz/FfzBadges.hpp
|
|
|
|
providers/ffz/FfzEmotes.cpp
|
|
|
|
providers/ffz/FfzEmotes.hpp
|
|
|
|
|
|
|
|
providers/irc/AbstractIrcServer.cpp
|
|
|
|
providers/irc/AbstractIrcServer.hpp
|
|
|
|
providers/irc/Irc2.cpp
|
|
|
|
providers/irc/Irc2.hpp
|
|
|
|
providers/irc/IrcAccount.cpp
|
|
|
|
providers/irc/IrcAccount.hpp
|
|
|
|
providers/irc/IrcChannel2.cpp
|
|
|
|
providers/irc/IrcChannel2.hpp
|
|
|
|
providers/irc/IrcCommands.cpp
|
|
|
|
providers/irc/IrcCommands.hpp
|
|
|
|
providers/irc/IrcConnection2.cpp
|
|
|
|
providers/irc/IrcConnection2.hpp
|
|
|
|
providers/irc/IrcMessageBuilder.cpp
|
|
|
|
providers/irc/IrcMessageBuilder.hpp
|
|
|
|
providers/irc/IrcServer.cpp
|
|
|
|
providers/irc/IrcServer.hpp
|
|
|
|
|
2022-10-29 14:01:01 +02:00
|
|
|
providers/liveupdates/BasicPubSubClient.hpp
|
|
|
|
providers/liveupdates/BasicPubSubManager.hpp
|
|
|
|
providers/liveupdates/BasicPubSubWebsocket.hpp
|
|
|
|
|
2022-10-16 13:22:17 +02:00
|
|
|
providers/seventv/SeventvBadges.cpp
|
|
|
|
providers/seventv/SeventvBadges.hpp
|
|
|
|
providers/seventv/SeventvEmotes.cpp
|
|
|
|
providers/seventv/SeventvEmotes.hpp
|
2022-11-13 12:07:41 +01:00
|
|
|
providers/seventv/SeventvEventAPI.cpp
|
|
|
|
providers/seventv/SeventvEventAPI.hpp
|
|
|
|
|
|
|
|
providers/seventv/eventapi/SeventvEventAPIClient.cpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPIClient.hpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPIDispatch.cpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPIDispatch.hpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPIMessage.cpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPIMessage.hpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPISubscription.cpp
|
|
|
|
providers/seventv/eventapi/SeventvEventAPISubscription.hpp
|
2022-10-16 13:22:17 +02:00
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
providers/twitch/ChannelPointReward.cpp
|
|
|
|
providers/twitch/ChannelPointReward.hpp
|
|
|
|
providers/twitch/IrcMessageHandler.cpp
|
|
|
|
providers/twitch/IrcMessageHandler.hpp
|
2022-05-07 17:22:39 +02:00
|
|
|
providers/twitch/PubSubActions.cpp
|
|
|
|
providers/twitch/PubSubActions.hpp
|
|
|
|
providers/twitch/PubSubClient.cpp
|
|
|
|
providers/twitch/PubSubClient.hpp
|
|
|
|
providers/twitch/PubSubClientOptions.hpp
|
|
|
|
providers/twitch/PubSubHelpers.hpp
|
|
|
|
providers/twitch/PubSubManager.cpp
|
|
|
|
providers/twitch/PubSubManager.hpp
|
|
|
|
providers/twitch/PubSubMessages.hpp
|
|
|
|
providers/twitch/PubSubWebsocket.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
providers/twitch/TwitchAccount.cpp
|
|
|
|
providers/twitch/TwitchAccount.hpp
|
|
|
|
providers/twitch/TwitchAccountManager.cpp
|
|
|
|
providers/twitch/TwitchAccountManager.hpp
|
|
|
|
providers/twitch/TwitchBadge.cpp
|
|
|
|
providers/twitch/TwitchBadge.hpp
|
|
|
|
providers/twitch/TwitchBadges.cpp
|
|
|
|
providers/twitch/TwitchBadges.hpp
|
|
|
|
providers/twitch/TwitchChannel.cpp
|
|
|
|
providers/twitch/TwitchChannel.hpp
|
|
|
|
providers/twitch/TwitchEmotes.cpp
|
|
|
|
providers/twitch/TwitchEmotes.hpp
|
|
|
|
providers/twitch/TwitchHelpers.cpp
|
|
|
|
providers/twitch/TwitchHelpers.hpp
|
|
|
|
providers/twitch/TwitchIrcServer.cpp
|
|
|
|
providers/twitch/TwitchIrcServer.hpp
|
|
|
|
providers/twitch/TwitchMessageBuilder.cpp
|
|
|
|
providers/twitch/TwitchMessageBuilder.hpp
|
|
|
|
providers/twitch/TwitchUser.cpp
|
|
|
|
providers/twitch/TwitchUser.hpp
|
|
|
|
|
2022-05-07 17:22:39 +02:00
|
|
|
providers/twitch/pubsubmessages/AutoMod.cpp
|
|
|
|
providers/twitch/pubsubmessages/AutoMod.hpp
|
|
|
|
providers/twitch/pubsubmessages/Base.cpp
|
|
|
|
providers/twitch/pubsubmessages/Base.hpp
|
|
|
|
providers/twitch/pubsubmessages/ChannelPoints.cpp
|
|
|
|
providers/twitch/pubsubmessages/ChannelPoints.hpp
|
|
|
|
providers/twitch/pubsubmessages/ChatModeratorAction.cpp
|
|
|
|
providers/twitch/pubsubmessages/ChatModeratorAction.hpp
|
|
|
|
providers/twitch/pubsubmessages/Listen.cpp
|
|
|
|
providers/twitch/pubsubmessages/Listen.hpp
|
|
|
|
providers/twitch/pubsubmessages/Message.hpp
|
|
|
|
providers/twitch/pubsubmessages/Unlisten.cpp
|
|
|
|
providers/twitch/pubsubmessages/Unlisten.hpp
|
|
|
|
providers/twitch/pubsubmessages/Whisper.cpp
|
|
|
|
providers/twitch/pubsubmessages/Whisper.hpp
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
providers/twitch/api/Helix.cpp
|
|
|
|
providers/twitch/api/Helix.hpp
|
|
|
|
|
|
|
|
singletons/Badges.cpp
|
|
|
|
singletons/Badges.hpp
|
|
|
|
singletons/Emotes.cpp
|
|
|
|
singletons/Emotes.hpp
|
|
|
|
singletons/Fonts.cpp
|
|
|
|
singletons/Fonts.hpp
|
|
|
|
singletons/Logging.cpp
|
|
|
|
singletons/Logging.hpp
|
|
|
|
singletons/NativeMessaging.cpp
|
|
|
|
singletons/NativeMessaging.hpp
|
|
|
|
singletons/Paths.cpp
|
|
|
|
singletons/Paths.hpp
|
|
|
|
singletons/Resources.cpp
|
|
|
|
singletons/Resources.hpp
|
|
|
|
singletons/Settings.cpp
|
|
|
|
singletons/Settings.hpp
|
|
|
|
singletons/Theme.cpp
|
|
|
|
singletons/Theme.hpp
|
|
|
|
singletons/Toasts.cpp
|
|
|
|
singletons/Toasts.hpp
|
|
|
|
singletons/Updates.cpp
|
|
|
|
singletons/Updates.hpp
|
|
|
|
singletons/WindowManager.cpp
|
|
|
|
singletons/WindowManager.hpp
|
|
|
|
|
|
|
|
singletons/helper/GifTimer.cpp
|
|
|
|
singletons/helper/GifTimer.hpp
|
|
|
|
singletons/helper/LoggingChannel.cpp
|
|
|
|
singletons/helper/LoggingChannel.hpp
|
|
|
|
|
|
|
|
util/AttachToConsole.cpp
|
|
|
|
util/AttachToConsole.hpp
|
|
|
|
util/Clipboard.cpp
|
|
|
|
util/Clipboard.hpp
|
2022-12-31 15:41:01 +01:00
|
|
|
util/ConcurrentMap.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
util/DebugCount.cpp
|
|
|
|
util/DebugCount.hpp
|
2021-05-03 00:08:08 +02:00
|
|
|
util/DisplayBadge.cpp
|
|
|
|
util/DisplayBadge.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
util/FormatTime.cpp
|
|
|
|
util/FormatTime.hpp
|
|
|
|
util/FunctionEventFilter.cpp
|
|
|
|
util/FunctionEventFilter.hpp
|
|
|
|
util/FuzzyConvert.cpp
|
|
|
|
util/FuzzyConvert.hpp
|
|
|
|
util/Helpers.cpp
|
|
|
|
util/Helpers.hpp
|
|
|
|
util/IncognitoBrowser.cpp
|
|
|
|
util/IncognitoBrowser.hpp
|
|
|
|
util/InitUpdateButton.cpp
|
|
|
|
util/InitUpdateButton.hpp
|
|
|
|
util/LayoutHelper.cpp
|
|
|
|
util/LayoutHelper.hpp
|
|
|
|
util/NuulsUploader.cpp
|
|
|
|
util/NuulsUploader.hpp
|
|
|
|
util/RapidjsonHelpers.cpp
|
|
|
|
util/RapidjsonHelpers.hpp
|
2021-08-04 23:18:34 +02:00
|
|
|
util/RatelimitBucket.cpp
|
|
|
|
util/RatelimitBucket.hpp
|
2022-05-29 14:53:22 +02:00
|
|
|
util/SampleData.cpp
|
|
|
|
util/SampleData.hpp
|
2022-12-31 15:41:01 +01:00
|
|
|
util/SharedPtrElementLess.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
util/SplitCommand.cpp
|
|
|
|
util/SplitCommand.hpp
|
|
|
|
util/StreamLink.cpp
|
|
|
|
util/StreamLink.hpp
|
|
|
|
util/StreamerMode.cpp
|
|
|
|
util/StreamerMode.hpp
|
2022-12-24 11:32:08 +01:00
|
|
|
util/ThreadGuard.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
util/Twitch.cpp
|
|
|
|
util/Twitch.hpp
|
2022-08-06 13:38:10 +02:00
|
|
|
util/TypeName.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
util/WindowsHelper.cpp
|
|
|
|
util/WindowsHelper.hpp
|
|
|
|
|
2022-11-13 18:21:21 +01:00
|
|
|
util/serialize/Container.hpp
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/AccountSwitchPopup.cpp
|
|
|
|
widgets/AccountSwitchPopup.hpp
|
|
|
|
widgets/AccountSwitchWidget.cpp
|
|
|
|
widgets/AccountSwitchWidget.hpp
|
|
|
|
widgets/AttachedWindow.cpp
|
|
|
|
widgets/AttachedWindow.hpp
|
|
|
|
widgets/BasePopup.cpp
|
|
|
|
widgets/BasePopup.hpp
|
|
|
|
widgets/BaseWidget.cpp
|
|
|
|
widgets/BaseWidget.hpp
|
|
|
|
widgets/BaseWindow.cpp
|
|
|
|
widgets/BaseWindow.hpp
|
2022-07-31 12:45:25 +02:00
|
|
|
widgets/DraggablePopup.cpp
|
|
|
|
widgets/DraggablePopup.hpp
|
2021-04-17 16:15:23 +02:00
|
|
|
widgets/FramelessEmbedWindow.cpp
|
|
|
|
widgets/FramelessEmbedWindow.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/Label.cpp
|
|
|
|
widgets/Label.hpp
|
|
|
|
widgets/Notebook.cpp
|
|
|
|
widgets/Notebook.hpp
|
|
|
|
widgets/Scrollbar.cpp
|
|
|
|
widgets/Scrollbar.hpp
|
|
|
|
widgets/StreamView.cpp
|
|
|
|
widgets/StreamView.hpp
|
|
|
|
widgets/TooltipWidget.cpp
|
|
|
|
widgets/TooltipWidget.hpp
|
|
|
|
widgets/Window.cpp
|
|
|
|
widgets/Window.hpp
|
|
|
|
|
2021-05-03 00:08:08 +02:00
|
|
|
widgets/dialogs/BadgePickerDialog.cpp
|
|
|
|
widgets/dialogs/BadgePickerDialog.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/dialogs/ChannelFilterEditorDialog.cpp
|
|
|
|
widgets/dialogs/ChannelFilterEditorDialog.hpp
|
|
|
|
widgets/dialogs/ColorPickerDialog.cpp
|
|
|
|
widgets/dialogs/ColorPickerDialog.hpp
|
2021-11-21 18:46:21 +01:00
|
|
|
widgets/dialogs/EditHotkeyDialog.cpp
|
|
|
|
widgets/dialogs/EditHotkeyDialog.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/dialogs/EmotePopup.cpp
|
|
|
|
widgets/dialogs/EmotePopup.hpp
|
|
|
|
widgets/dialogs/IrcConnectionEditor.cpp
|
|
|
|
widgets/dialogs/IrcConnectionEditor.hpp
|
|
|
|
widgets/dialogs/IrcConnectionEditor.ui
|
|
|
|
widgets/dialogs/LastRunCrashDialog.cpp
|
|
|
|
widgets/dialogs/LastRunCrashDialog.hpp
|
|
|
|
widgets/dialogs/LoginDialog.cpp
|
|
|
|
widgets/dialogs/LoginDialog.hpp
|
|
|
|
widgets/dialogs/NotificationPopup.cpp
|
|
|
|
widgets/dialogs/NotificationPopup.hpp
|
|
|
|
widgets/dialogs/QualityPopup.cpp
|
|
|
|
widgets/dialogs/QualityPopup.hpp
|
2022-07-31 12:45:25 +02:00
|
|
|
widgets/dialogs/ReplyThreadPopup.cpp
|
|
|
|
widgets/dialogs/ReplyThreadPopup.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/dialogs/SelectChannelDialog.cpp
|
|
|
|
widgets/dialogs/SelectChannelDialog.hpp
|
|
|
|
widgets/dialogs/SelectChannelFiltersDialog.cpp
|
|
|
|
widgets/dialogs/SelectChannelFiltersDialog.hpp
|
|
|
|
widgets/dialogs/SettingsDialog.cpp
|
|
|
|
widgets/dialogs/SettingsDialog.hpp
|
|
|
|
widgets/dialogs/UpdateDialog.cpp
|
|
|
|
widgets/dialogs/UpdateDialog.hpp
|
|
|
|
widgets/dialogs/UserInfoPopup.cpp
|
|
|
|
widgets/dialogs/UserInfoPopup.hpp
|
|
|
|
widgets/dialogs/WelcomeDialog.cpp
|
|
|
|
widgets/dialogs/WelcomeDialog.hpp
|
2022-06-25 13:00:32 +02:00
|
|
|
widgets/dialogs/switcher/NewPopupItem.cpp
|
|
|
|
widgets/dialogs/switcher/NewPopupItem.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/dialogs/switcher/NewTabItem.cpp
|
|
|
|
widgets/dialogs/switcher/NewTabItem.hpp
|
|
|
|
widgets/dialogs/switcher/QuickSwitcherModel.cpp
|
|
|
|
widgets/dialogs/switcher/QuickSwitcherModel.hpp
|
|
|
|
widgets/dialogs/switcher/QuickSwitcherPopup.cpp
|
|
|
|
widgets/dialogs/switcher/QuickSwitcherPopup.hpp
|
|
|
|
widgets/dialogs/switcher/SwitchSplitItem.cpp
|
|
|
|
widgets/dialogs/switcher/SwitchSplitItem.hpp
|
|
|
|
|
|
|
|
widgets/helper/Button.cpp
|
|
|
|
widgets/helper/Button.hpp
|
|
|
|
widgets/helper/ChannelView.cpp
|
|
|
|
widgets/helper/ChannelView.hpp
|
|
|
|
widgets/helper/ColorButton.cpp
|
|
|
|
widgets/helper/ColorButton.hpp
|
|
|
|
widgets/helper/ComboBoxItemDelegate.cpp
|
|
|
|
widgets/helper/ComboBoxItemDelegate.hpp
|
|
|
|
widgets/helper/DebugPopup.cpp
|
|
|
|
widgets/helper/DebugPopup.hpp
|
|
|
|
widgets/helper/EditableModelView.cpp
|
|
|
|
widgets/helper/EditableModelView.hpp
|
|
|
|
widgets/helper/EffectLabel.cpp
|
|
|
|
widgets/helper/EffectLabel.hpp
|
|
|
|
widgets/helper/NotebookButton.cpp
|
|
|
|
widgets/helper/NotebookButton.hpp
|
|
|
|
widgets/helper/NotebookTab.cpp
|
|
|
|
widgets/helper/NotebookTab.hpp
|
|
|
|
widgets/helper/QColorPicker.cpp
|
|
|
|
widgets/helper/QColorPicker.hpp
|
2022-05-08 12:27:25 +02:00
|
|
|
widgets/helper/RegExpItemDelegate.cpp
|
|
|
|
widgets/helper/RegExpItemDelegate.hpp
|
2022-05-16 11:42:17 +02:00
|
|
|
widgets/helper/TrimRegExpValidator.cpp
|
|
|
|
widgets/helper/TrimRegExpValidator.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/helper/ResizingTextEdit.cpp
|
|
|
|
widgets/helper/ResizingTextEdit.hpp
|
|
|
|
widgets/helper/ScrollbarHighlight.cpp
|
|
|
|
widgets/helper/ScrollbarHighlight.hpp
|
|
|
|
widgets/helper/SearchPopup.cpp
|
|
|
|
widgets/helper/SearchPopup.hpp
|
|
|
|
widgets/helper/SettingsDialogTab.cpp
|
|
|
|
widgets/helper/SettingsDialogTab.hpp
|
|
|
|
widgets/helper/SignalLabel.cpp
|
|
|
|
widgets/helper/SignalLabel.hpp
|
|
|
|
widgets/helper/TitlebarButton.cpp
|
|
|
|
widgets/helper/TitlebarButton.hpp
|
|
|
|
|
|
|
|
widgets/listview/GenericItemDelegate.cpp
|
|
|
|
widgets/listview/GenericItemDelegate.hpp
|
|
|
|
widgets/listview/GenericListItem.cpp
|
|
|
|
widgets/listview/GenericListItem.hpp
|
|
|
|
widgets/listview/GenericListModel.cpp
|
|
|
|
widgets/listview/GenericListModel.hpp
|
|
|
|
widgets/listview/GenericListView.cpp
|
|
|
|
widgets/listview/GenericListView.hpp
|
|
|
|
|
|
|
|
widgets/settingspages/AboutPage.cpp
|
|
|
|
widgets/settingspages/AboutPage.hpp
|
|
|
|
widgets/settingspages/AccountsPage.cpp
|
|
|
|
widgets/settingspages/AccountsPage.hpp
|
|
|
|
widgets/settingspages/CommandPage.cpp
|
|
|
|
widgets/settingspages/CommandPage.hpp
|
|
|
|
widgets/settingspages/ExternalToolsPage.cpp
|
|
|
|
widgets/settingspages/ExternalToolsPage.hpp
|
|
|
|
widgets/settingspages/FiltersPage.cpp
|
|
|
|
widgets/settingspages/FiltersPage.hpp
|
|
|
|
widgets/settingspages/GeneralPage.cpp
|
|
|
|
widgets/settingspages/GeneralPage.hpp
|
|
|
|
widgets/settingspages/GeneralPageView.cpp
|
|
|
|
widgets/settingspages/GeneralPageView.hpp
|
|
|
|
widgets/settingspages/HighlightingPage.cpp
|
|
|
|
widgets/settingspages/HighlightingPage.hpp
|
|
|
|
widgets/settingspages/IgnoresPage.cpp
|
|
|
|
widgets/settingspages/IgnoresPage.hpp
|
|
|
|
widgets/settingspages/KeyboardSettingsPage.cpp
|
|
|
|
widgets/settingspages/KeyboardSettingsPage.hpp
|
|
|
|
widgets/settingspages/ModerationPage.cpp
|
|
|
|
widgets/settingspages/ModerationPage.hpp
|
2021-07-31 16:15:43 +02:00
|
|
|
widgets/settingspages/NicknamesPage.cpp
|
|
|
|
widgets/settingspages/NicknamesPage.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/settingspages/NotificationPage.cpp
|
|
|
|
widgets/settingspages/NotificationPage.hpp
|
|
|
|
widgets/settingspages/SettingsPage.cpp
|
|
|
|
widgets/settingspages/SettingsPage.hpp
|
|
|
|
|
|
|
|
widgets/splits/ClosedSplits.cpp
|
|
|
|
widgets/splits/ClosedSplits.hpp
|
2022-12-25 12:09:25 +01:00
|
|
|
widgets/splits/DraggedSplit.cpp
|
|
|
|
widgets/splits/DraggedSplit.hpp
|
2021-06-19 18:29:17 +02:00
|
|
|
widgets/splits/InputCompletionItem.cpp
|
|
|
|
widgets/splits/InputCompletionItem.hpp
|
|
|
|
widgets/splits/InputCompletionPopup.cpp
|
|
|
|
widgets/splits/InputCompletionPopup.hpp
|
2021-03-28 16:58:51 +02:00
|
|
|
widgets/splits/Split.cpp
|
|
|
|
widgets/splits/Split.hpp
|
|
|
|
widgets/splits/SplitContainer.cpp
|
|
|
|
widgets/splits/SplitContainer.hpp
|
|
|
|
widgets/splits/SplitHeader.cpp
|
|
|
|
widgets/splits/SplitHeader.hpp
|
|
|
|
widgets/splits/SplitInput.cpp
|
|
|
|
widgets/splits/SplitInput.hpp
|
|
|
|
widgets/splits/SplitOverlay.cpp
|
|
|
|
widgets/splits/SplitOverlay.hpp
|
|
|
|
|
|
|
|
${CMAKE_SOURCE_DIR}/resources/resources.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
# clang-cl doesn't support resource files
|
|
|
|
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
list(APPEND SOURCE_FILES "${CMAKE_SOURCE_DIR}/resources/windows.rc")
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
elseif (APPLE)
|
|
|
|
set(MACOS_BUNDLE_ICON_FILE "${CMAKE_SOURCE_DIR}/resources/chatterino.icns")
|
|
|
|
list(APPEND SOURCE_FILES "${MACOS_BUNDLE_ICON_FILE}")
|
|
|
|
set_source_files_properties(${MACOS_BUNDLE_ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
# Generate source groups for use in IDEs
|
2021-04-03 16:49:24 +02:00
|
|
|
source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${SOURCE_FILES})
|
2021-03-28 16:58:51 +02:00
|
|
|
|
2022-11-19 12:29:12 +01:00
|
|
|
# Add autogenerated files
|
|
|
|
list(APPEND SOURCE_FILES ${RES_AUTOGEN_FILES})
|
|
|
|
|
2021-06-13 13:49:59 +02:00
|
|
|
add_library(${LIBRARY_PROJECT} OBJECT ${SOURCE_FILES})
|
|
|
|
|
2022-11-05 11:04:35 +01:00
|
|
|
if (CHATTERINO_GENERATE_COVERAGE)
|
|
|
|
include(CodeCoverage)
|
|
|
|
append_coverage_compiler_flags_to_target(${LIBRARY_PROJECT})
|
|
|
|
target_link_libraries(${LIBRARY_PROJECT} PUBLIC gcov)
|
|
|
|
message(STATUS "project source dir: ${PROJECT_SOURCE_DIR}/src")
|
|
|
|
setup_target_for_coverage_lcov(
|
|
|
|
NAME coverage
|
|
|
|
EXECUTABLE ./bin/chatterino-test
|
|
|
|
BASE_DIRECTORY ${PROJECT_SOURCE_DIR}/src
|
|
|
|
EXCLUDE "/usr/include/*"
|
|
|
|
EXCLUDE "build-*/*"
|
|
|
|
EXCLUDE "lib/*"
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2023-01-30 17:00:30 +01:00
|
|
|
|
|
|
|
#add_dependencies(${LIBRARY_PROJECT} Lua)
|
|
|
|
#target_include_directories(${LIBRARY_PROJECT}
|
|
|
|
# PUBLIC "${CMAKE_SOURCE_DIR}/lib/lua/"
|
|
|
|
# )
|
2021-06-13 13:49:59 +02:00
|
|
|
target_link_libraries(${LIBRARY_PROJECT}
|
|
|
|
PUBLIC
|
2021-08-08 12:37:37 +02:00
|
|
|
Qt${MAJOR_QT_VERSION}::Core
|
|
|
|
Qt${MAJOR_QT_VERSION}::Widgets
|
|
|
|
Qt${MAJOR_QT_VERSION}::Gui
|
|
|
|
Qt${MAJOR_QT_VERSION}::Network
|
|
|
|
Qt${MAJOR_QT_VERSION}::Svg
|
|
|
|
Qt${MAJOR_QT_VERSION}::Concurrent
|
2021-06-13 13:49:59 +02:00
|
|
|
|
|
|
|
LibCommuni::LibCommuni
|
|
|
|
Pajlada::Serialize
|
|
|
|
Pajlada::Settings
|
|
|
|
Pajlada::Signals
|
|
|
|
websocketpp::websocketpp
|
|
|
|
Threads::Threads
|
|
|
|
RapidJSON::RapidJSON
|
|
|
|
LRUCache
|
2022-05-07 17:22:39 +02:00
|
|
|
MagicEnum
|
2023-01-30 17:00:30 +01:00
|
|
|
lua
|
2021-06-13 13:49:59 +02:00
|
|
|
)
|
2023-01-29 20:49:46 +01:00
|
|
|
|
2021-10-31 20:45:23 +01:00
|
|
|
if (BUILD_WITH_QTKEYCHAIN)
|
|
|
|
target_link_libraries(${LIBRARY_PROJECT}
|
|
|
|
PUBLIC
|
|
|
|
qt${MAJOR_QT_VERSION}keychain
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
target_compile_definitions(${LIBRARY_PROJECT}
|
|
|
|
PUBLIC
|
|
|
|
NO_QTKEYCHAIN
|
|
|
|
)
|
|
|
|
endif()
|
2021-06-13 13:49:59 +02:00
|
|
|
|
|
|
|
if (BUILD_APP)
|
2022-06-25 10:42:50 +02:00
|
|
|
if (APPLE)
|
|
|
|
add_executable(${EXECUTABLE_PROJECT} ${MACOS_BUNDLE_ICON_FILE} main.cpp)
|
|
|
|
else()
|
|
|
|
add_executable(${EXECUTABLE_PROJECT} main.cpp)
|
|
|
|
endif()
|
2021-06-13 13:49:59 +02:00
|
|
|
add_sanitizers(${EXECUTABLE_PROJECT})
|
|
|
|
|
2022-11-19 12:29:12 +01:00
|
|
|
target_include_directories(${EXECUTABLE_PROJECT} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/autogen/)
|
2021-06-13 13:49:59 +02:00
|
|
|
|
|
|
|
target_link_libraries(${EXECUTABLE_PROJECT} PUBLIC ${LIBRARY_PROJECT})
|
|
|
|
|
|
|
|
set_target_properties(${EXECUTABLE_PROJECT}
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
)
|
|
|
|
|
2023-01-29 11:52:45 +01:00
|
|
|
if (WIN32)
|
|
|
|
if (NOT WINDEPLOYQT_PATH)
|
2023-01-09 19:43:36 +01:00
|
|
|
get_target_property(Qt_Core_Location Qt${MAJOR_QT_VERSION}::Core LOCATION)
|
|
|
|
get_filename_component(QT_BIN_DIR ${Qt_Core_Location} DIRECTORY)
|
2023-01-29 11:52:45 +01:00
|
|
|
string(APPEND WINDEPLOYQT_PATH ${QT_BIN_DIR} /windeployqt.exe)
|
|
|
|
else()
|
|
|
|
file(TO_CMAKE_PATH "${WINDEPLOYQT_PATH}" WINDEPLOYQT_PATH)
|
|
|
|
endif()
|
2021-06-13 13:49:59 +02:00
|
|
|
|
2023-01-29 11:52:45 +01:00
|
|
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
|
set(WINDEPLOYQT_MODE --debug)
|
|
|
|
else()
|
|
|
|
set(WINDEPLOYQT_MODE --release)
|
|
|
|
endif()
|
2021-06-13 13:49:59 +02:00
|
|
|
|
2023-01-29 11:52:45 +01:00
|
|
|
set(WINDEPLOYQT_COMMAND_ARGV "${WINDEPLOYQT_PATH}" "$<TARGET_FILE:${EXECUTABLE_PROJECT}>" ${WINDEPLOYQT_MODE} --no-compiler-runtime --no-translations --no-opengl-sw)
|
|
|
|
string(REPLACE ";" " " WINDEPLOYQT_COMMAND "${WINDEPLOYQT_COMMAND_ARGV}")
|
|
|
|
|
|
|
|
if (X_VCPKG_APPLOCAL_DEPS_INSTALL)
|
|
|
|
install(TARGETS ${EXECUTABLE_PROJECT} RUNTIME DESTINATION .)
|
|
|
|
else()
|
|
|
|
install(TARGETS ${EXECUTABLE_PROJECT}
|
|
|
|
RUNTIME_DEPENDENCIES
|
|
|
|
PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-"
|
|
|
|
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll"
|
|
|
|
DIRECTORIES ${QT_BIN_DIR}
|
|
|
|
RUNTIME DESTINATION .)
|
|
|
|
install(CODE "message(\"-- Running: ${WINDEPLOYQT_COMMAND} --dir \\\"\${CMAKE_INSTALL_PREFIX}\\\"\")")
|
|
|
|
install(CODE "execute_process(COMMAND ${WINDEPLOYQT_COMMAND} --dir \"\${CMAKE_INSTALL_PREFIX}\" COMMAND_ERROR_IS_FATAL ANY)")
|
2023-01-09 19:43:36 +01:00
|
|
|
endif()
|
2021-06-13 13:49:59 +02:00
|
|
|
elseif (APPLE)
|
|
|
|
install(TARGETS ${EXECUTABLE_PROJECT}
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
BUNDLE DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib/static
|
|
|
|
)
|
|
|
|
else ()
|
|
|
|
install(TARGETS ${EXECUTABLE_PROJECT}
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib/static
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/resources/com.chatterino.chatterino.desktop
|
|
|
|
DESTINATION share/applications
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/resources/icon.png
|
|
|
|
RENAME com.chatterino.chatterino.png
|
|
|
|
DESTINATION share/icons/hicolor/256x256/apps
|
|
|
|
)
|
|
|
|
endif ()
|
2022-12-24 18:42:59 +01:00
|
|
|
|
|
|
|
if(CHATTERINO_ENABLE_LTO)
|
|
|
|
message(STATUS "Enabling LTO for ${EXECUTABLE_PROJECT}")
|
|
|
|
set_property(TARGET ${EXECUTABLE_PROJECT}
|
|
|
|
PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
|
|
endif()
|
2021-06-13 13:49:59 +02:00
|
|
|
endif ()
|
2021-03-28 16:58:51 +02:00
|
|
|
|
2021-05-08 15:57:00 +02:00
|
|
|
if (USE_PRECOMPILED_HEADERS)
|
2021-10-30 14:24:43 +02:00
|
|
|
message(STATUS "Building with precompiled headers")
|
2021-06-13 13:49:59 +02:00
|
|
|
target_precompile_headers(${LIBRARY_PROJECT} PRIVATE PrecompiledHeader.hpp)
|
2021-10-30 14:24:43 +02:00
|
|
|
else ()
|
|
|
|
message(STATUS "Building without precompiled headers")
|
2021-05-08 15:57:00 +02:00
|
|
|
endif ()
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
# Enable autogeneration of Qts MOC/RCC/UIC
|
2021-06-13 13:49:59 +02:00
|
|
|
set_target_properties(${LIBRARY_PROJECT}
|
2021-03-28 16:58:51 +02:00
|
|
|
PROPERTIES
|
|
|
|
AUTOMOC ON
|
|
|
|
AUTORCC ON
|
|
|
|
AUTOUIC ON
|
|
|
|
)
|
|
|
|
|
2022-01-07 17:25:57 +01:00
|
|
|
# Used to provide a date of build in the About page (for nightly builds). Getting the actual time of
|
|
|
|
# compilation in CMake is a more involved, as documented in https://stackoverflow.com/q/24292898.
|
|
|
|
# For CI runs, however, the date of build file generation should be consistent with the date of
|
|
|
|
# compilation so this approximation is "good enough" for our purpose.
|
2022-06-05 16:44:20 +02:00
|
|
|
if (DEFINED ENV{CHATTERINO_SKIP_DATE_GEN})
|
|
|
|
set(cmake_gen_date "1970-01-01")
|
|
|
|
else ()
|
|
|
|
string(TIMESTAMP cmake_gen_date "%Y-%m-%d")
|
|
|
|
endif ()
|
2022-01-07 17:25:57 +01:00
|
|
|
|
2021-06-13 13:49:59 +02:00
|
|
|
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC
|
2021-03-28 16:58:51 +02:00
|
|
|
CHATTERINO
|
|
|
|
UNICODE
|
|
|
|
AB_CUSTOM_SETTINGS
|
|
|
|
IRC_STATIC
|
|
|
|
IRC_NAMESPACE=Communi
|
2021-06-13 13:49:59 +02:00
|
|
|
|
|
|
|
CHATTERINO_GIT_HASH=\"${GIT_HASH}\"
|
|
|
|
CHATTERINO_GIT_RELEASE=\"${GIT_RELEASE}\"
|
|
|
|
CHATTERINO_GIT_COMMIT=\"${GIT_COMMIT}\"
|
2022-01-07 17:25:57 +01:00
|
|
|
|
|
|
|
CHATTERINO_CMAKE_GEN_DATE=\"${cmake_gen_date}\"
|
2021-03-28 16:58:51 +02:00
|
|
|
)
|
2022-06-04 21:00:42 +02:00
|
|
|
if (GIT_MODIFIED)
|
|
|
|
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC
|
|
|
|
CHATTERINO_GIT_MODIFIED
|
|
|
|
)
|
|
|
|
endif ()
|
2021-08-08 12:37:37 +02:00
|
|
|
if (USE_SYSTEM_QTKEYCHAIN)
|
2021-06-13 13:49:59 +02:00
|
|
|
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC
|
2021-03-28 16:58:51 +02:00
|
|
|
CMAKE_BUILD
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
if (WIN32)
|
2021-06-13 13:49:59 +02:00
|
|
|
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC
|
2021-03-28 16:58:51 +02:00
|
|
|
USEWINSDK
|
|
|
|
)
|
2021-06-13 13:49:59 +02:00
|
|
|
if (BUILD_APP)
|
|
|
|
set_target_properties(${EXECUTABLE_PROJECT} PROPERTIES WIN32_EXECUTABLE TRUE)
|
|
|
|
endif ()
|
2021-03-28 16:58:51 +02:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (MSVC)
|
2022-05-15 17:57:31 +02:00
|
|
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC /EHsc /bigobj)
|
2021-03-28 16:58:51 +02:00
|
|
|
endif ()
|
|
|
|
|
2021-06-13 13:49:59 +02:00
|
|
|
if (APPLE AND BUILD_APP)
|
|
|
|
set_target_properties(${EXECUTABLE_PROJECT} PROPERTIES MACOSX_BUNDLE TRUE)
|
|
|
|
set_target_properties(${EXECUTABLE_PROJECT}
|
2021-03-28 16:58:51 +02:00
|
|
|
PROPERTIES
|
|
|
|
MACOSX_BUNDLE_BUNDLE_NAME "Chatterino"
|
|
|
|
MACOSX_BUNDLE_GUI_IDENTIFIER "com.chatterino"
|
|
|
|
MACOSX_BUNDLE_INFO_STRING "Chat client for Twitch"
|
|
|
|
MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}"
|
|
|
|
MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
|
|
|
|
MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
|
|
|
|
MACOSX_BUNDLE_ICON_FILE chatterino.icns
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2022-11-19 12:29:12 +01:00
|
|
|
target_include_directories(${LIBRARY_PROJECT} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/autogen/)
|
2021-03-28 16:58:51 +02:00
|
|
|
|
2023-01-26 19:22:48 +01:00
|
|
|
# semver dependency https://github.com/Neargye/semver
|
|
|
|
target_include_directories(${LIBRARY_PROJECT} PUBLIC ${CMAKE_SOURCE_DIR}/lib/semver/include)
|
|
|
|
|
2023-01-29 10:36:25 +01:00
|
|
|
# miniaudio dependency https://github.com/mackron/miniaudio
|
|
|
|
target_include_directories(${LIBRARY_PROJECT} PUBLIC ${CMAKE_SOURCE_DIR}/lib/miniaudio)
|
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
if (CMAKE_DL_LIBS)
|
|
|
|
# libdl is a requirement for miniaudio on Linux
|
|
|
|
message(STATUS "Linking with CMake DL libs: '${CMAKE_DL_LIBS}'")
|
|
|
|
target_link_libraries(${LIBRARY_PROJECT} PUBLIC ${CMAKE_DL_LIBS})
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
if (WinToast_FOUND)
|
2021-06-13 13:49:59 +02:00
|
|
|
target_link_libraries(${LIBRARY_PROJECT}
|
|
|
|
PUBLIC
|
2021-03-28 16:58:51 +02:00
|
|
|
WinToast)
|
|
|
|
endif ()
|
|
|
|
|
2023-01-29 14:10:39 +01:00
|
|
|
target_link_libraries(${LIBRARY_PROJECT}
|
2021-06-13 13:49:59 +02:00
|
|
|
PUBLIC
|
2022-05-15 17:57:31 +02:00
|
|
|
${Boost_LIBRARIES}
|
2021-03-28 16:58:51 +02:00
|
|
|
)
|
|
|
|
|
2023-01-29 14:10:39 +01:00
|
|
|
target_link_libraries(${LIBRARY_PROJECT}
|
2021-06-13 13:49:59 +02:00
|
|
|
PUBLIC
|
2021-03-28 16:58:51 +02:00
|
|
|
OpenSSL::SSL
|
|
|
|
OpenSSL::Crypto
|
|
|
|
)
|
|
|
|
|
2021-06-13 13:49:59 +02:00
|
|
|
target_include_directories(${LIBRARY_PROJECT} PUBLIC ${RapidJSON_INCLUDE_DIRS})
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
if (LIBRT)
|
2021-06-13 13:49:59 +02:00
|
|
|
target_link_libraries(${LIBRARY_PROJECT}
|
|
|
|
PUBLIC
|
2021-03-28 16:58:51 +02:00
|
|
|
${LIBRT}
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2022-07-30 12:39:13 +02:00
|
|
|
# Configure compiler warnings
|
|
|
|
if (MSVC)
|
2022-11-21 19:49:16 +01:00
|
|
|
# Someone adds /W3 before we add /W4.
|
|
|
|
# This makes sure, only /W4 is specified.
|
|
|
|
string(REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
2022-12-24 12:56:11 +01:00
|
|
|
# 4505 - "unreferenced local version has been removed"
|
|
|
|
# Although this might give hints on dead code,
|
|
|
|
# there are some cases where it's distracting.
|
|
|
|
#
|
|
|
|
# 4100 - "unreferenced formal parameter"
|
|
|
|
# There are a lot of functions and methods where
|
|
|
|
# an argument was given a name but never used.
|
|
|
|
# There's a clang-tidy rule that will catch this
|
|
|
|
# for new/updated functions/methods.
|
|
|
|
#
|
|
|
|
# 4267 - "possible loss of data in return"
|
|
|
|
# These are implicit conversions from size_t to int/qsizetype.
|
|
|
|
# We don't use size_t in a lot of cases, since
|
|
|
|
# Qt doesn't use it - it uses int (or qsizetype in Qt6).
|
2022-07-30 12:39:13 +02:00
|
|
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
|
|
|
/W4
|
2022-12-24 12:56:11 +01:00
|
|
|
# 5038 - warnings about initialization order
|
|
|
|
/w15038
|
|
|
|
# 4855 - implicit capture of 'this' via '[=]' is deprecated
|
|
|
|
/w14855
|
|
|
|
# Disable the following warnings (see reasoning above)
|
2022-07-30 12:39:13 +02:00
|
|
|
/wd4505
|
|
|
|
/wd4100
|
|
|
|
/wd4267
|
|
|
|
)
|
2022-12-24 12:56:11 +01:00
|
|
|
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC NOMINMAX)
|
2022-07-30 12:39:13 +02:00
|
|
|
else ()
|
|
|
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
|
|
|
-Wall
|
|
|
|
# Disable the following warnings
|
|
|
|
-Wno-unused-function
|
|
|
|
-Wno-switch
|
|
|
|
-Wno-deprecated-declarations
|
|
|
|
-Wno-sign-compare
|
|
|
|
-Wno-unused-variable
|
|
|
|
|
|
|
|
# Disabling strict-aliasing warnings for now, although we probably want to re-enable this in the future
|
|
|
|
-Wno-strict-aliasing
|
|
|
|
|
|
|
|
-Werror=return-type
|
2022-09-03 18:12:44 +02:00
|
|
|
-Werror=reorder
|
2022-07-30 12:39:13 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
|
|
|
-Wno-unused-local-typedef
|
|
|
|
-Wno-unused-private-field
|
2023-01-08 14:32:52 +01:00
|
|
|
-Werror=inconsistent-missing-override
|
|
|
|
-Werror=final-dtor-non-final-class
|
|
|
|
-Werror=ambiguous-reversed-operator
|
|
|
|
|
2022-07-30 12:39:13 +02:00
|
|
|
)
|
|
|
|
else ()
|
|
|
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
|
|
|
-Wno-class-memaccess
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif ()
|
2022-12-24 18:42:59 +01:00
|
|
|
|
|
|
|
if(CHATTERINO_ENABLE_LTO)
|
|
|
|
message(STATUS "Enabling LTO for ${LIBRARY_PROJECT}")
|
|
|
|
set_property(TARGET ${LIBRARY_PROJECT}
|
|
|
|
PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
|
|
endif()
|