Add Discord Rich Presence for macOS

This commit is contained in:
Cameron Gutman
2019-06-29 17:55:21 -07:00
parent 0a5051f959
commit e1a697658e
4 changed files with 121 additions and 6 deletions
+8 -6
View File
@@ -107,11 +107,7 @@ win32 {
CONFIG += ffmpeg
}
win32:!winrt {
CONFIG += soundio
# Discord RPC for rich presence
LIBS += -ldiscord-rpc
DEFINES += HAVE_DISCORD
CONFIG += soundio discord-rpc
}
macx {
LIBS += -lssl -lcrypto -lavcodec.58 -lavutil.56 -lopus -framework SDL2 -framework SDL2_ttf
@@ -120,7 +116,7 @@ macx {
# For libsoundio
LIBS += -framework CoreAudio -framework AudioUnit
CONFIG += ffmpeg soundio
CONFIG += ffmpeg soundio discord-rpc
}
SOURCES += \
@@ -281,6 +277,12 @@ soundio {
SOURCES += streaming/audio/renderers/soundioaudiorenderer.cpp
HEADERS += streaming/audio/renderers/soundioaudiorenderer.h
}
discord-rpc {
message(Discord integration enabled)
LIBS += -ldiscord-rpc
DEFINES += HAVE_DISCORD
}
RESOURCES += \
resources.qrc \