Skip to content

Commit

Permalink
Rename some Mapbox references from CMake build config (#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored Sep 25, 2024
1 parent 3c250e8 commit 63d6707
Show file tree
Hide file tree
Showing 17 changed files with 120 additions and 120 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if(WIN32 AND NOT MLN_WITH_QT AND NOT CMAKE_SYSTEM_NAME STREQUAL Android)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/platform/windows/custom-toolchain.cmake)
endif()

project("Mapbox GL Native" LANGUAGES CXX C)
project("MapLibre Native" LANGUAGES CXX C)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER MapLibre)
Expand Down Expand Up @@ -1532,10 +1532,10 @@ endif()
set_target_properties(
mbgl-core
PROPERTIES
INTERFACE_MAPBOX_NAME "Mapbox GL Native"
INTERFACE_MAPBOX_URL "https://github.com/maplibre/maplibre-native"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE.md
INTERFACE_MAPLIBRE_NAME "MapLibre Native"
INTERFACE_MAPLIBRE_URL "https://github.com/maplibre/maplibre-native"
INTERFACE_MAPLIBRE_AUTHOR "MapLibre"
INTERFACE_MAPLIBRE_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE.md
)

set_property(TARGET mbgl-core PROPERTY FOLDER MapLibre)
Expand Down
8 changes: 4 additions & 4 deletions scripts/license.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function(mbgl_generate_license param)
endif()

if(TARGET ${LIBRARY})
get_target_property(NAME ${LIBRARY} INTERFACE_MAPBOX_NAME)
get_target_property(URL ${LIBRARY} INTERFACE_MAPBOX_URL)
get_target_property(AUTHOR ${LIBRARY} INTERFACE_MAPBOX_AUTHOR)
get_target_property(LICENSE ${LIBRARY} INTERFACE_MAPBOX_LICENSE)
get_target_property(NAME ${LIBRARY} INTERFACE_MAPLIBRE_NAME)
get_target_property(URL ${LIBRARY} INTERFACE_MAPLIBRE_URL)
get_target_property(AUTHOR ${LIBRARY} INTERFACE_MAPLIBRE_AUTHOR)
get_target_property(LICENSE ${LIBRARY} INTERFACE_MAPLIBRE_LICENSE)

if(NOT LICENSE OR NOT EXISTS ${LICENSE})
message(FATAL_ERROR "License not found for target: ${LIBRARY}")
Expand Down
8 changes: 4 additions & 4 deletions vendor/boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-boost
PROPERTIES
INTERFACE_MAPBOX_NAME "Boost C++ Libraries"
INTERFACE_MAPBOX_URL "https://www.boost.org"
INTERFACE_MAPBOX_AUTHOR "Boost authors"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/boost/LICENSE_1_0.txt
INTERFACE_MAPLIBRE_NAME "Boost C++ Libraries"
INTERFACE_MAPLIBRE_URL "https://www.boost.org"
INTERFACE_MAPLIBRE_AUTHOR "Boost authors"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/boost/LICENSE_1_0.txt
)
8 changes: 4 additions & 4 deletions vendor/csscolorparser.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ endif()
set_target_properties(
mbgl-vendor-csscolorparser
PROPERTIES
INTERFACE_MAPBOX_NAME "csscolorparser"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/css-color-parser-cpp"
INTERFACE_MAPBOX_AUTHOR "Dean McNamee and Konstantin Käfer"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/csscolorparser/LICENSE
INTERFACE_MAPLIBRE_NAME "csscolorparser"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/css-color-parser-cpp"
INTERFACE_MAPLIBRE_AUTHOR "Dean McNamee and Konstantin Käfer"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/csscolorparser/LICENSE
)
8 changes: 4 additions & 4 deletions vendor/earcut.hpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-earcut.hpp
PROPERTIES
INTERFACE_MAPBOX_NAME "earcut.hpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/earcut.hpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/earcut.hpp/LICENSE
INTERFACE_MAPLIBRE_NAME "earcut.hpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/earcut.hpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/earcut.hpp/LICENSE
)
8 changes: 4 additions & 4 deletions vendor/eternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-eternal
PROPERTIES
INTERFACE_MAPBOX_NAME "eternal"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/eternal"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/eternal/LICENSE.md
INTERFACE_MAPLIBRE_NAME "eternal"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/eternal"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/eternal/LICENSE.md
)
88 changes: 44 additions & 44 deletions vendor/mapbox-base.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,98 +7,98 @@ endif()
set_target_properties(
mapbox-base-extras-kdbush.hpp
PROPERTIES
INTERFACE_MAPBOX_NAME "kdbush.hpp"
INTERFACE_MAPBOX_URL "https://github.com/mourner/kdbush.hpp"
INTERFACE_MAPBOX_AUTHOR "Vladimir Agafonkin"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/extras/kdbush.hpp/LICENSE
INTERFACE_MAPLIBRE_NAME "kdbush.hpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mourner/kdbush.hpp"
INTERFACE_MAPLIBRE_AUTHOR "Vladimir Agafonkin"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/extras/kdbush.hpp/LICENSE
)

set_target_properties(
mapbox-base-extras-expected-lite
PROPERTIES
INTERFACE_MAPBOX_NAME "expected-lite"
INTERFACE_MAPBOX_URL "https://github.com/martinmoene/expected-lite"
INTERFACE_MAPBOX_AUTHOR "Martin Moene"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/extras/expected-lite/LICENSE.txt
INTERFACE_MAPLIBRE_NAME "expected-lite"
INTERFACE_MAPLIBRE_URL "https://github.com/martinmoene/expected-lite"
INTERFACE_MAPLIBRE_AUTHOR "Martin Moene"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/extras/expected-lite/LICENSE.txt
)

set_target_properties(
mapbox-base-supercluster.hpp
PROPERTIES
INTERFACE_MAPBOX_NAME "supercluster.hpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/supercluster.hpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/supercluster.hpp/LICENSE
INTERFACE_MAPLIBRE_NAME "supercluster.hpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/supercluster.hpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/supercluster.hpp/LICENSE
)

set_target_properties(
mapbox-base-shelf-pack-cpp
PROPERTIES
INTERFACE_MAPBOX_NAME "shelf-pack-cpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/shelf-pack-cpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/shelf-pack-cpp/LICENSE.md
INTERFACE_MAPLIBRE_NAME "shelf-pack-cpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/shelf-pack-cpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/shelf-pack-cpp/LICENSE.md
)

set_target_properties(
mapbox-base-geojson-vt-cpp
PROPERTIES
INTERFACE_MAPBOX_NAME "geojson-vt-cpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/geojson-vt-cpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/geojson-vt-cpp/LICENSE
INTERFACE_MAPLIBRE_NAME "geojson-vt-cpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/geojson-vt-cpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/geojson-vt-cpp/LICENSE
)

set_target_properties(
mapbox-base-extras-rapidjson
PROPERTIES
INTERFACE_MAPBOX_NAME "RapidJSON"
INTERFACE_MAPBOX_URL "https://rapidjson.org"
INTERFACE_MAPBOX_AUTHOR "THL A29 Limited, a Tencent company, and Milo Yip"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/extras/rapidjson/license.txt
INTERFACE_MAPLIBRE_NAME "RapidJSON"
INTERFACE_MAPLIBRE_URL "https://rapidjson.org"
INTERFACE_MAPLIBRE_AUTHOR "THL A29 Limited, a Tencent company, and Milo Yip"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/extras/rapidjson/license.txt
)

set_target_properties(
mapbox-base-geojson.hpp
PROPERTIES
INTERFACE_MAPBOX_NAME "geojson.hpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/geojson-cpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/geojson.hpp/LICENSE
INTERFACE_MAPLIBRE_NAME "geojson.hpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/geojson-cpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/geojson.hpp/LICENSE
)

set_target_properties(
mapbox-base-geometry.hpp
PROPERTIES
INTERFACE_MAPBOX_NAME "geometry.hpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/geometry.hpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/geometry.hpp/LICENSE
INTERFACE_MAPLIBRE_NAME "geometry.hpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/geometry.hpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/geometry.hpp/LICENSE
)

set_target_properties(
mapbox-base
PROPERTIES
INTERFACE_MAPBOX_NAME "mapbox-base"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/mapbox-base"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/LICENSE
INTERFACE_MAPLIBRE_NAME "mapbox-base"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/mapbox-base"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/LICENSE
)

set_target_properties(
mapbox-base-variant
PROPERTIES
INTERFACE_MAPBOX_NAME "variant"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/variant"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/variant/LICENSE
INTERFACE_MAPLIBRE_NAME "variant"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/variant"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/variant/LICENSE
)

set_target_properties(
mapbox-base-cheap-ruler-cpp
PROPERTIES
INTERFACE_MAPBOX_NAME "cheap-ruler-cpp"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/cheap-ruler-cpp"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/cheap-ruler-cpp/LICENSE
INTERFACE_MAPLIBRE_NAME "cheap-ruler-cpp"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/cheap-ruler-cpp"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/mapbox-base/deps/cheap-ruler-cpp/LICENSE
)
8 changes: 4 additions & 4 deletions vendor/metal-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-metal-cpp
PROPERTIES
INTERFACE_MAPBOX_NAME "metal-cpp"
INTERFACE_MAPBOX_URL "https://developer.apple.com/metal/cpp/"
INTERFACE_MAPBOX_AUTHOR "Apple"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/metal-cpp/LICENSE.txt
INTERFACE_MAPLIBRE_NAME "metal-cpp"
INTERFACE_MAPLIBRE_URL "https://developer.apple.com/metal/cpp/"
INTERFACE_MAPLIBRE_AUTHOR "Apple"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/metal-cpp/LICENSE.txt
)
8 changes: 4 additions & 4 deletions vendor/parsedate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-parsedate
PROPERTIES
INTERFACE_MAPBOX_NAME "parsedate"
INTERFACE_MAPBOX_URL "https://curl.haxx.se"
INTERFACE_MAPBOX_AUTHOR "Daniel Stenberg and others"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/parsedate/COPYING
INTERFACE_MAPLIBRE_NAME "parsedate"
INTERFACE_MAPLIBRE_URL "https://curl.haxx.se"
INTERFACE_MAPLIBRE_AUTHOR "Daniel Stenberg and others"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/parsedate/COPYING
)
8 changes: 4 additions & 4 deletions vendor/polylabel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-polylabel
PROPERTIES
INTERFACE_MAPBOX_NAME "polylabel"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/polylabel"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/polylabel/LICENSE
INTERFACE_MAPLIBRE_NAME "polylabel"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/polylabel"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/polylabel/LICENSE
)
8 changes: 4 additions & 4 deletions vendor/protozero.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-protozero
PROPERTIES
INTERFACE_MAPBOX_NAME "protozero"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/protozero"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/protozero/LICENSE.md
INTERFACE_MAPLIBRE_NAME "protozero"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/protozero"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/protozero/LICENSE.md
)
8 changes: 4 additions & 4 deletions vendor/tracy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ FetchContent_MakeAvailable(tracy)
set_target_properties(
TracyClient
PROPERTIES
INTERFACE_MAPBOX_NAME "Tracy profiler"
INTERFACE_MAPBOX_URL "https://github.com/wolfpld/tracy.git"
INTERFACE_MAPBOX_AUTHOR "Bartosz Taudul"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/tracy/LICENSE
INTERFACE_MAPLIBRE_NAME "Tracy profiler"
INTERFACE_MAPLIBRE_URL "https://github.com/wolfpld/tracy.git"
INTERFACE_MAPLIBRE_AUTHOR "Bartosz Taudul"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/tracy/LICENSE
)

8 changes: 4 additions & 4 deletions vendor/unique_resource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-unique_resource
PROPERTIES
INTERFACE_MAPBOX_NAME "unique_resource"
INTERFACE_MAPBOX_URL "https://github.com/okdshin/unique_resource"
INTERFACE_MAPBOX_AUTHOR "Shintarou Okada"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/unique_resource/LICENSE.txt
INTERFACE_MAPLIBRE_NAME "unique_resource"
INTERFACE_MAPLIBRE_URL "https://github.com/okdshin/unique_resource"
INTERFACE_MAPLIBRE_AUTHOR "Shintarou Okada"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/unique_resource/LICENSE.txt
)
8 changes: 4 additions & 4 deletions vendor/unordered_dense.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ endif()
set_target_properties(
unordered_dense
PROPERTIES
INTERFACE_MAPBOX_NAME "unordered_dense"
INTERFACE_MAPBOX_URL "https://github.com/martinus/unordered_dense"
INTERFACE_MAPBOX_AUTHOR "Martin Leitner-Ankerl"
INTERFACE_MAPBOX_LICENSE ${PROJECT_SOURCE_DIR}/vendor/unordered_dense/LICENSE
INTERFACE_MAPLIBRE_NAME "unordered_dense"
INTERFACE_MAPLIBRE_URL "https://github.com/martinus/unordered_dense"
INTERFACE_MAPLIBRE_AUTHOR "Martin Leitner-Ankerl"
INTERFACE_MAPLIBRE_LICENSE ${PROJECT_SOURCE_DIR}/vendor/unordered_dense/LICENSE
)
8 changes: 4 additions & 4 deletions vendor/vector-tile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ target_include_directories(
set_target_properties(
mbgl-vendor-vector-tile
PROPERTIES
INTERFACE_MAPBOX_NAME "vector-tile"
INTERFACE_MAPBOX_URL "https://github.com/mapbox/vector-tile"
INTERFACE_MAPBOX_AUTHOR "Mapbox"
INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/vector-tile/LICENSE
INTERFACE_MAPLIBRE_NAME "vector-tile"
INTERFACE_MAPLIBRE_URL "https://github.com/mapbox/vector-tile"
INTERFACE_MAPLIBRE_AUTHOR "Mapbox"
INTERFACE_MAPLIBRE_LICENSE ${CMAKE_CURRENT_LIST_DIR}/vector-tile/LICENSE
)
Loading

0 comments on commit 63d6707

Please sign in to comment.