-
Notifications
You must be signed in to change notification settings - Fork 85
4470 Include and turn on Discord SDK package #4485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
include(Prebuilt) | ||
|
||
add_library(ll::discord INTERFACE IMPORTED) | ||
target_compile_definitions(ll::discord INTERFACE LL_DISCORD=1) | ||
include_guard() | ||
|
||
use_prebuilt_binary(discord) | ||
add_library(ll::discord_sdk INTERFACE IMPORTED) | ||
target_compile_definitions(ll::discord_sdk INTERFACE LL_DISCORD=1) | ||
|
||
target_include_directories(ll::discord SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include) | ||
target_link_libraries(ll::discord INTERFACE discord_partner_sdk) | ||
use_prebuilt_binary(discord_sdk) | ||
|
||
target_include_directories(ll::discord_sdk SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/discord_sdk) | ||
target_link_libraries(ll::discord_sdk INTERFACE discord_partner_sdk) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -528,6 +528,10 @@ bool LLFloaterPreference::postBuild() | |
getChild<LLComboBox>("language_combobox")->add("System default", LLSD("default"), ADD_TOP, true); | ||
} | ||
|
||
#ifndef LL_DISCORD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be smarter the other way around: Have it disabled by default and only enable if Discord Rich Presence support is available? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May be, that's a quick fix I made when I saw that checkboxes are active. I might end up erasing the tab entirely. |
||
getChild<LLTabContainer>("privacy_tab_container")->childDisable("privacy_preferences_discord"); | ||
#endif | ||
|
||
return true; | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.