Vendorize the submodules and a simple CMake build system for all them. The dependencies will inherit compilation options for core. The goal is to make Mapbox GL Core completely self contained with a simple offline build.
36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
# All dependencies in a single separate file so its checksum can be used in a CI cache key name
|
|
|
|
mason_use(boost VERSION 1.65.1 HEADER_ONLY)
|
|
mason_use(cheap-ruler VERSION 2.5.3 HEADER_ONLY)
|
|
mason_use(pixelmatch VERSION 0.10.0 HEADER_ONLY)
|
|
|
|
if(MBGL_PLATFORM STREQUAL "android")
|
|
mason_use(jni.hpp VERSION 4.0.1 HEADER_ONLY)
|
|
elseif(MBGL_PLATFORM STREQUAL "ios")
|
|
# noop
|
|
elseif(MBGL_PLATFORM STREQUAL "linux")
|
|
mason_use(glfw VERSION 2018-06-27-0be4f3f)
|
|
mason_use(libuv VERSION 1.9.1)
|
|
mason_use(libpng VERSION 1.6.25)
|
|
mason_use(libjpeg-turbo VERSION 1.5.0)
|
|
mason_use(benchmark VERSION 1.4.1${MASON_CXXABI_SUFFIX})
|
|
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(glfw VERSION 2018-06-27-0be4f3f)
|
|
mason_use(benchmark VERSION 1.4.1)
|
|
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()
|