Remove custom platforms setting (#2058)

This commit is contained in:
Keith Smiley
2024-01-30 03:44:59 -05:00
committed by GitHub
parent c3a734aa11
commit c4f852b3f4
9 changed files with 65 additions and 102 deletions

View File

@@ -113,7 +113,7 @@ cc_library(
"MLN_DRAWABLE_RENDERER=1",
],
}) + select({
"//:ios": ["GLES_SILENCE_DEPRECATION=1"],
"@platforms//os:ios": ["GLES_SILENCE_DEPRECATION=1"],
"//conditions:default": [],
}),
includes = [
@@ -145,7 +145,7 @@ cc_library(
"//vendor:vector-tile",
"//vendor:wagyu",
] + select({
"//:ios": [
"@platforms//os:ios": [
"//vendor:icu",
],
"//conditions:default": [],
@@ -167,38 +167,6 @@ genrule(
visibility = ["//visibility:public"],
)
# The next three rules are a bit of a hack
# they are needed until rules_apple has platforms support
# https://github.com/bazelbuild/rules_apple/issues/1658
# Allows passing a command line flag to set the Platform
# bazel build [target] --//:maplibre_platform=ios
string_flag(
name = "maplibre_platform",
build_setting_default = "ios",
)
config_setting(
name = "linux",
flag_values = {
":maplibre_platform": "linux",
},
)
config_setting(
name = "ios",
flag_values = {
":maplibre_platform": "ios",
},
)
config_setting(
name = "windows",
flag_values = {
":maplibre_platform": "windows",
},
)
# Selects the rendering implementation to utilize in the core
string_flag(