format Bazel files with buildifier (#3756)
This commit is contained in:
@@ -4,8 +4,6 @@ load("@npm//:defs.bzl", "npm_link_all_packages")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load(
|
||||
"//bazel:core.bzl",
|
||||
"MLN_LAYER_PLUGIN_HEADERS",
|
||||
"MLN_LAYER_PLUGIN_SOURCE",
|
||||
"MLN_CORE_HEADERS",
|
||||
"MLN_CORE_SOURCE",
|
||||
"MLN_DRAWABLES_GL_HEADERS",
|
||||
@@ -18,6 +16,8 @@ load(
|
||||
"MLN_GENERATED_SHADER_HEADERS",
|
||||
"MLN_GENERATED_SHADER_SOURCE",
|
||||
"MLN_GENERATED_STYLE_SOURCE",
|
||||
"MLN_LAYER_PLUGIN_HEADERS",
|
||||
"MLN_LAYER_PLUGIN_SOURCE",
|
||||
"MLN_OPENGL_HEADERS",
|
||||
"MLN_OPENGL_SOURCE",
|
||||
"MLN_PRIVATE_GENERATED_STYLE_HEADERS",
|
||||
|
||||
@@ -10,6 +10,7 @@ bazel_dep(name = "rules_nodejs", version = "6.4.0")
|
||||
bazel_dep(name = "libuv", version = "1.48.0")
|
||||
bazel_dep(name = "apple_support", version = "1.22.1", repo_name = "build_bazel_apple_support")
|
||||
bazel_dep(name = "rules_cc", version = "0.1.3")
|
||||
bazel_dep(name = "rules_shell", version = "0.6.0")
|
||||
|
||||
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
|
||||
node.toolchain(node_version = "20.14.0")
|
||||
@@ -72,12 +73,13 @@ darwin_config(
|
||||
|
||||
bazel_dep(name = "rules_rust", version = "0.62.0")
|
||||
bazel_dep(name = "cxx.rs", version = "1.0.157")
|
||||
|
||||
# The registry is not always up to date
|
||||
# See https://registry.bazel.build/modules/cxx.rs
|
||||
git_override(
|
||||
module_name = "cxx.rs",
|
||||
tag = "1.0.157",
|
||||
remote = "https://github.com/dtolnay/cxx.git",
|
||||
tag = "1.0.157",
|
||||
)
|
||||
|
||||
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
|
||||
|
||||
@@ -267,12 +267,12 @@ objc_library(
|
||||
objc_library(
|
||||
name = "iosapp",
|
||||
srcs = [
|
||||
"//platform/darwin:app/CustomStyleLayerExample.h",
|
||||
"//platform/darwin:app/CustomStyleLayerExample.m",
|
||||
"//platform/darwin:app/PluginLayerExample.h",
|
||||
"//platform/darwin:app/PluginLayerExample.mm",
|
||||
"//platform/darwin:app/PluginLayerExampleMetalRendering.h",
|
||||
"//platform/darwin:app/PluginLayerExampleMetalRendering.mm",
|
||||
"//platform/darwin:app/CustomStyleLayerExample.h",
|
||||
"//platform/darwin:app/CustomStyleLayerExample.m",
|
||||
"//platform/ios:ios_app_srcs",
|
||||
],
|
||||
defines = ["GLES_SILENCE_DEPRECATION"],
|
||||
|
||||
@@ -172,9 +172,9 @@ swift_library(
|
||||
testonly = True,
|
||||
srcs = glob(["test/*.swift"]),
|
||||
data = [
|
||||
"app/PluginLayerTestStyle.json",
|
||||
"test/amsterdam.geojson",
|
||||
"test/one-liner.json",
|
||||
"app/PluginLayerTestStyle.json",
|
||||
],
|
||||
visibility = [
|
||||
"//platform/ios/test:__pkg__",
|
||||
|
||||
@@ -165,8 +165,7 @@ MLN_DARWIN_PRIVATE_HEADERS = [
|
||||
"src/MLNVectorTileSource_Private.h",
|
||||
"src/NSExpression+MLNPrivateAdditions.h",
|
||||
"src/NSPredicate+MLNPrivateAdditions.h",
|
||||
"src/MLNPluginStyleLayer_Private.h"
|
||||
|
||||
"src/MLNPluginStyleLayer_Private.h",
|
||||
]
|
||||
|
||||
MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [
|
||||
@@ -222,8 +221,7 @@ MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [
|
||||
"src/NSPredicate+MLNAdditions.mm",
|
||||
"src/NSValue+MLNStyleAttributeAdditions.mm",
|
||||
"src/MLNPluginLayer.mm",
|
||||
"src/MLNPluginStyleLayer.mm"
|
||||
|
||||
"src/MLNPluginStyleLayer.mm",
|
||||
]
|
||||
MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE = [
|
||||
"src/MLNCustomDrawableStyleLayer_Private.h",
|
||||
|
||||
@@ -4,7 +4,7 @@ load("@rules_apple//apple:apple.bzl", "apple_static_xcframework", "apple_xcframe
|
||||
load("@rules_apple//apple:ios.bzl", "ios_application", "ios_framework")
|
||||
load("@rules_apple//apple:resources.bzl", "apple_resource_bundle")
|
||||
load("@rules_apple//apple:versioning.bzl", "apple_bundle_version")
|
||||
|
||||
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
|
||||
load(
|
||||
"@rules_xcodeproj//xcodeproj:defs.bzl",
|
||||
"top_level_target",
|
||||
|
||||
@@ -11,7 +11,7 @@ MLN_IOS_SDK_HEADERS = [
|
||||
"src/MLNUserLocation.h",
|
||||
"src/MLNUserLocationAnnotationView.h",
|
||||
"src/MLNUserLocationAnnotationViewStyle.h",
|
||||
"src/MLNScaleBar.h"
|
||||
"src/MLNScaleBar.h",
|
||||
]
|
||||
|
||||
MLN_IOS_PUBLIC_HEADERS = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
|
||||
load("//bazel:flags.bzl", "CPP_FLAGS", "MAPLIBRE_FLAGS")
|
||||
|
||||
ICU_FLAGS = [
|
||||
@@ -48,7 +49,7 @@ genrule(
|
||||
$$(pkg-config --variable=libdir icu-uc)/libicuuc.a \
|
||||
$$(pkg-config --variable=libdir icu-uc)/libicudata.a \
|
||||
$$(pkg-config --variable=libdir icu-i18n)/libicui18n.a
|
||||
)"""
|
||||
)""",
|
||||
)
|
||||
|
||||
sh_binary(
|
||||
|
||||
Reference in New Issue
Block a user