summaryrefslogtreecommitdiff
path: root/cmake/mason-dependencies.cmake
blob: 71a94f096f943f612f76f27f142c40da89def648 (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
# All dependencies in a single separate file so its checksum can be used in a CI cache key name

if(MBGL_PLATFORM STREQUAL "android")
    # noop
elseif(MBGL_PLATFORM STREQUAL "ios")
    # noop
elseif(MBGL_PLATFORM STREQUAL "linux")
    mason_use(libuv VERSION 1.9.1)
    mason_use(libpng VERSION 1.6.25)
    mason_use(libjpeg-turbo VERSION 1.5.0)
    mason_use(args VERSION 6.2.0 HEADER_ONLY)

    if(WITH_EGL)
        mason_use(swiftshader VERSION 2018-05-31)
    endif()
elseif(MBGL_PLATFORM STREQUAL "macos")
    mason_use(args VERSION 6.2.0 HEADER_ONLY)

    if(WITH_EGL)
        mason_use(swiftshader VERSION 2018-05-31)
    endif()
elseif(MBGL_PLATFORM STREQUAL "qt")
    if(NOT WITH_QT_DECODERS)
        mason_use(libjpeg-turbo VERSION 1.5.0)
        mason_use(libpng VERSION 1.6.25)
    endif()
endif()