diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-08-06 18:41:52 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 18:41:52 +0300 | 
| commit | 55f1c8b9797836c9816528bb5b772eb83b083b50 (patch) | |
| tree | fdbc5a913c62265f95e610819637e096f0f85339 /indra/cmake | |
| parent | 514b658fde13bb0c0ec862b081eeebf47bace70d (diff) | |
| parent | ce9d66cdd18c58c3b26fbebde633ae00732d7f9f (diff) | |
Merge pull request #4492 Merge Develop into Maint-C (2025.06)
Merge Develop into Maint-C (2025.06)
Diffstat (limited to 'indra/cmake')
| -rw-r--r-- | indra/cmake/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | indra/cmake/Copy3rdPartyLibs.cmake | 11 | ||||
| -rw-r--r-- | indra/cmake/Discord.cmake | 11 | ||||
| -rw-r--r-- | indra/cmake/Linking.cmake | 2 | 
4 files changed, 23 insertions, 2 deletions
diff --git a/indra/cmake/CMakeLists.txt b/indra/cmake/CMakeLists.txt index cc217b0563..0a00ccbb5b 100644 --- a/indra/cmake/CMakeLists.txt +++ b/indra/cmake/CMakeLists.txt @@ -20,6 +20,7 @@ set(cmake_SOURCE_FILES          Copy3rdPartyLibs.cmake          DBusGlib.cmake          DeploySharedLibs.cmake +        Discord.cmake          DragDrop.cmake          EXPAT.cmake          FindAutobuild.cmake diff --git a/indra/cmake/Copy3rdPartyLibs.cmake b/indra/cmake/Copy3rdPartyLibs.cmake index 6ac00fd131..0153e69d5b 100644 --- a/indra/cmake/Copy3rdPartyLibs.cmake +++ b/indra/cmake/Copy3rdPartyLibs.cmake @@ -6,6 +6,9 @@  include(CMakeCopyIfDifferent)  include(Linking) +if (USE_DISCORD) +  include(Discord) +endif ()  include(OPENAL)  # When we copy our dependent libraries, we almost always want to copy them to @@ -75,6 +78,10 @@ if(WINDOWS)        endif(ADDRESS_SIZE EQUAL 32)      endif (USE_BUGSPLAT) +    if (TARGET ll::discord_sdk) +        list(APPEND release_files discord_partner_sdk.dll) +    endif () +      if (TARGET ll::openal)          list(APPEND release_files openal32.dll alut.dll)      endif () @@ -180,6 +187,10 @@ elseif(DARWIN)              )      endif() +    if (TARGET ll::discord_sdk) +      list(APPEND release_files libdiscord_partner_sdk.dylib) +    endif () +      if (TARGET ll::openal)        list(APPEND release_files libalut.dylib libopenal.dylib)      endif () diff --git a/indra/cmake/Discord.cmake b/indra/cmake/Discord.cmake new file mode 100644 index 0000000000..95cfaacf5b --- /dev/null +++ b/indra/cmake/Discord.cmake @@ -0,0 +1,11 @@ +include(Prebuilt) + +include_guard() + +add_library(ll::discord_sdk INTERFACE IMPORTED) +target_compile_definitions(ll::discord_sdk INTERFACE LL_DISCORD=1) + +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) diff --git a/indra/cmake/Linking.cmake b/indra/cmake/Linking.cmake index 1093fc7f71..8451659c34 100644 --- a/indra/cmake/Linking.cmake +++ b/indra/cmake/Linking.cmake @@ -72,7 +72,6 @@ else()    find_library(COCOA_LIBRARY Cocoa)    find_library(IOKIT_LIBRARY IOKit) -  find_library(AGL_LIBRARY AGL)    find_library(APPKIT_LIBRARY AppKit)    find_library(COREAUDIO_LIBRARY CoreAudio) @@ -81,7 +80,6 @@ else()            ${IOKIT_LIBRARY}            ${COREFOUNDATION_LIBRARY}            ${CARBON_LIBRARY} -          ${AGL_LIBRARY}            ${APPKIT_LIBRARY}            ${COREAUDIO_LIBRARY}            )  | 
