aboutsummaryrefslogtreecommitdiff
path: root/Attorney_Online_remake.pro
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2018-01-08 13:40:29 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2018-01-08 13:40:29 -0600
commite8809f6de6acc04f93ed9c5f406f3ad5f0bb021f (patch)
treed85865e121a6c7d312e14373797ae6f0c76932ca /Attorney_Online_remake.pro
parent0504d2b5d71aa8f3d5d0ebecf4eba4e0efeb701f (diff)
parent8a91dea6ce2fa88cdc720759f17d3ac4cf05070b (diff)
Merge branch 'discord-rich-presence'
Diffstat (limited to 'Attorney_Online_remake.pro')
-rw-r--r--Attorney_Online_remake.pro17
1 files changed, 13 insertions, 4 deletions
diff --git a/Attorney_Online_remake.pro b/Attorney_Online_remake.pro
index 40b2028a..b19c6ecf 100644
--- a/Attorney_Online_remake.pro
+++ b/Attorney_Online_remake.pro
@@ -47,7 +47,8 @@ SOURCES += main.cpp\
aotextarea.cpp \
aolineedit.cpp \
aotextedit.cpp \
- aoevidencedisplay.cpp
+ aoevidencedisplay.cpp \
+ discord_rich_presence.cpp
HEADERS += lobby.h \
aoimage.h \
@@ -76,10 +77,18 @@ HEADERS += lobby.h \
aotextarea.h \
aolineedit.h \
aotextedit.h \
- aoevidencedisplay.h
+ aoevidencedisplay.h \
+ discord_rich_presence.h \
+ discord-rpc.h
-unix:LIBS += -L$$PWD -lbass
-win32:LIBS += "$$PWD/bass.dll"
+# 1. You need to get BASS and put the x86 bass DLL/headers in the project root folder
+# AND the compilation output folder. If you want a static link, you'll probably
+# need the .lib file too. MinGW-GCC is really finicky finding BASS, it seems.
+# 2. You need to compile the Discord Rich Presence SDK separately and add the lib/headers
+# in the same way as BASS. Discord RPC uses CMake, which does not play nicely with
+# QMake, so this step must be manual.
+unix:LIBS += -L$$PWD -lbass -ldiscord-rpc
+win32:LIBS += -L$$PWD "$$PWD/bass.dll" -ldiscord-rpc #"$$PWD/discord-rpc.dll"
android:LIBS += -L$$PWD\android\libs\armeabi-v7a\ -lbass
CONFIG += c++11