summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-07-31 18:40:37 +0800
committerErik Kundiman <erik@megapahit.org>2026-07-31 18:40:37 +0800
commitf94ad55c430f1b898e74871233703b12e48b8fce (patch)
tree3780cc88dd42cc321ddd86666b0bf97cc8df532f /indra
parentbb748f993bbdd3be537558d5ba1941e7d20e3b35 (diff)
Portage's ${DISTDIR} replacing Downloads on Gentoo
Still hardcoded with `/var/cache/distfiles`, which should still be the most common at the time of this commit. This is so there's no need for the Discord patch in the ebuild code.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/Discord.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/cmake/Discord.cmake b/indra/cmake/Discord.cmake
index 270b4c09a6..005e548f08 100644
--- a/indra/cmake/Discord.cmake
+++ b/indra/cmake/Discord.cmake
@@ -8,8 +8,13 @@ target_compile_definitions(ll::discord_sdk INTERFACE LL_DISCORD=1)
#use_prebuilt_binary(discord_sdk)
if (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/discord_sdk_installed OR NOT ${discord_sdk_installed} EQUAL 0)
+ if (${LINUX_DISTRO} MATCHES gentoo)
+ set(PREFIX_PATH /var/cache/distfiles)
+ else ()
+ set(PREFIX_PATH $ENV{HOME}/Downloads)
+ endif ()
file(ARCHIVE_EXTRACT
- INPUT $ENV{HOME}/Downloads/DiscordSocialSdk-1.10.18247.zip
+ INPUT ${PREFIX_PATH}/DiscordSocialSdk-1.10.18247.zip
DESTINATION ${CMAKE_BINARY_DIR}
)
file(MAKE_DIRECTORY ${LIBS_PREBUILT_DIR}/include/discord_sdk)