summaryrefslogtreecommitdiff
path: root/indra/cmake/ViewerMiscLibs.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-25 13:47:53 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-25 13:47:53 +0800
commitd07e9ecfaf9b68f8bb5e804ef0f2b5fb5a31f748 (patch)
tree257790e9646e9b63a16cc8cacffb41d58e196c32 /indra/cmake/ViewerMiscLibs.cmake
parent71e9f4c0e5fc29a8bb74bc313eed05190da7bf96 (diff)
use_prebuilt_binary(nanosvg) uses reimplementation
also to minimise ViewerMisc.cmake diff from upstream.
Diffstat (limited to 'indra/cmake/ViewerMiscLibs.cmake')
-rw-r--r--indra/cmake/ViewerMiscLibs.cmake31
1 files changed, 3 insertions, 28 deletions
diff --git a/indra/cmake/ViewerMiscLibs.cmake b/indra/cmake/ViewerMiscLibs.cmake
index c3dcf1ddb2..93d57a7131 100644
--- a/indra/cmake/ViewerMiscLibs.cmake
+++ b/indra/cmake/ViewerMiscLibs.cmake
@@ -14,35 +14,10 @@ endif()
if (NOT USESYSTEMLIBS)
use_prebuilt_binary(slvoice)
+endif (NOT USESYSTEMLIBS)
+if ((${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu) OR DARWIN) OR NOT USESYSTEMLIBS)
use_prebuilt_binary(nanosvg)
-elseif (${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu) OR DARWIN)
- if (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/nanosvg_installed OR NOT ${nanosvg_installed} EQUAL 0)
- if (DARWIN)
- if (NOT EXISTS ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-darwin64-580364.tar.bz2)
- file(DOWNLOAD
- https://automated-builds-secondlife-com.s3.amazonaws.com/ct2/115452/994130/nanosvg-2022.09.27-darwin64-580364.tar.bz2
- ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-darwin64-580364.tar.bz2
- )
- endif (NOT EXISTS ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-darwin64-580364.tar.bz2)
- file(ARCHIVE_EXTRACT
- INPUT ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-darwin64-580364.tar.bz2
- DESTINATION ${LIBS_PREBUILT_DIR}
- )
- else (DARWIN)
- if (NOT EXISTS ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-linux-580337.tar.bz2)
- file(DOWNLOAD
- https://automated-builds-secondlife-com.s3.amazonaws.com/ct2/115397/993664/nanosvg-2022.09.27-linux-580337.tar.bz2
- ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-linux-580337.tar.bz2
- )
- endif (NOT EXISTS ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-linux-580337.tar.bz2)
- file(ARCHIVE_EXTRACT
- INPUT ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-linux-580337.tar.bz2
- DESTINATION ${LIBS_PREBUILT_DIR}
- )
- endif (DARWIN)
- file(WRITE ${PREBUILD_TRACKING_DIR}/nanosvg_installed "0")
- endif (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/nanosvg_installed OR NOT ${nanosvg_installed} EQUAL 0)
-endif (NOT USESYSTEMLIBS)
+endif ((${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu) OR DARWIN) OR NOT USESYSTEMLIBS)
use_prebuilt_binary(viewer-fonts)
use_prebuilt_binary(emoji_shortcodes)