summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-28 09:31:13 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-28 09:31:13 +0800
commitdf25a5d487a566393edded0cf61cff157a2fd40d (patch)
treeddc7d2515d48a4a678313af2c74297263e59b25b /indra/cmake
parent19c999dedbb587b070d777f6ff1a1c6cc6f65bf2 (diff)
Fix WebRTC include dirs extracted to wrong path
for macOS arm64.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/WebRTC.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/indra/cmake/WebRTC.cmake b/indra/cmake/WebRTC.cmake
index 030d3f4919..79d8d30991 100644
--- a/indra/cmake/WebRTC.cmake
+++ b/indra/cmake/WebRTC.cmake
@@ -19,6 +19,39 @@ if (CMAKE_OSX_ARCHITECTURES MATCHES arm64)
INPUT ${CMAKE_BINARY_DIR}/libwebrtc-macos-arm64.tar.xz
DESTINATION ${LIBS_PREBUILT_DIR}
)
+ file(MAKE_DIRECTORY ${LIBS_PREBUILT_DIR}/include/webrtc)
+ foreach(directory
+ api
+ audio
+ base
+ build
+ buildtools
+ call
+ common_audio
+ common_video
+ examples
+ logging
+ media
+ modules
+ net
+ p2p
+ pc
+ rtc_base
+ rtc_tools
+ sdk
+ stats
+ system_wrappers
+ test
+ testing
+ third_party
+ tools
+ video
+ )
+ file(RENAME
+ ${LIBS_PREBUILT_DIR}/include/${directory}
+ ${LIBS_PREBUILT_DIR}/include/webrtc/${directory}
+ )
+ endforeach()
file(RENAME
${LIBS_PREBUILT_DIR}/lib/libwebrtc.a
${LIBS_PREBUILT_DIR}/lib/release/libwebrtc.a