Remove custom platforms setting (#2058)
This commit is contained in:
36
BUILD.bazel
36
BUILD.bazel
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user