summaryrefslogtreecommitdiff
path: root/indra/cmake/ViewerMiscLibs.cmake
blob: 3e1d80ab7e2a3c4f47ca3f94fc2424f03506ed10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- cmake -*-
include(Prebuilt)

if (NOT DARWIN)
  add_library( ll::fontconfig INTERFACE IMPORTED )

  find_package(Fontconfig REQUIRED)
  target_link_libraries( ll::fontconfig INTERFACE  Fontconfig::Fontconfig )
endif (NOT DARWIN)

if( USE_AUTOBUILD_3P )
  use_prebuilt_binary(libhunspell)
endif()

if (NOT USESYSTEMLIBS)
use_prebuilt_binary(slvoice)

use_prebuilt_binary(nanosvg)
elseif (${LINUX_DISTRO} MATCHES debian OR DARWIN)
  if (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/nanosvg_installed OR NOT ${nanosvg_installed} EQUAL 0)
    if (DARWIN)
      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
        )
      file(ARCHIVE_EXTRACT
        INPUT ${CMAKE_BINARY_DIR}/nanosvg-2022.09.27-darwin64-580364.tar.bz2
        DESTINATION ${LIBS_PREBUILT_DIR}
        )
    else (DARWIN)
      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
        )
      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 "${nanosvg_installed}")
  endif (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/nanosvg_installed OR NOT ${nanosvg_installed} EQUAL 0)
endif (NOT USESYSTEMLIBS)
use_prebuilt_binary(viewer-fonts)
use_prebuilt_binary(emoji_shortcodes)