format Bazel files with buildifier (#3756)

This commit is contained in:
Bart Louwers
2025-08-26 00:27:13 +02:00
committed by GitHub
parent 7838327ed7
commit 8bb12ed501
8 changed files with 14 additions and 13 deletions

View File

@@ -4,8 +4,6 @@ load("@npm//:defs.bzl", "npm_link_all_packages")
load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_cc//cc:defs.bzl", "cc_library")
load( load(
"//bazel:core.bzl", "//bazel:core.bzl",
"MLN_LAYER_PLUGIN_HEADERS",
"MLN_LAYER_PLUGIN_SOURCE",
"MLN_CORE_HEADERS", "MLN_CORE_HEADERS",
"MLN_CORE_SOURCE", "MLN_CORE_SOURCE",
"MLN_DRAWABLES_GL_HEADERS", "MLN_DRAWABLES_GL_HEADERS",
@@ -18,6 +16,8 @@ load(
"MLN_GENERATED_SHADER_HEADERS", "MLN_GENERATED_SHADER_HEADERS",
"MLN_GENERATED_SHADER_SOURCE", "MLN_GENERATED_SHADER_SOURCE",
"MLN_GENERATED_STYLE_SOURCE", "MLN_GENERATED_STYLE_SOURCE",
"MLN_LAYER_PLUGIN_HEADERS",
"MLN_LAYER_PLUGIN_SOURCE",
"MLN_OPENGL_HEADERS", "MLN_OPENGL_HEADERS",
"MLN_OPENGL_SOURCE", "MLN_OPENGL_SOURCE",
"MLN_PRIVATE_GENERATED_STYLE_HEADERS", "MLN_PRIVATE_GENERATED_STYLE_HEADERS",

View File

@@ -10,6 +10,7 @@ bazel_dep(name = "rules_nodejs", version = "6.4.0")
bazel_dep(name = "libuv", version = "1.48.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 = "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_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 = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
node.toolchain(node_version = "20.14.0") 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 = "rules_rust", version = "0.62.0")
bazel_dep(name = "cxx.rs", version = "1.0.157") bazel_dep(name = "cxx.rs", version = "1.0.157")
# The registry is not always up to date # The registry is not always up to date
# See https://registry.bazel.build/modules/cxx.rs # See https://registry.bazel.build/modules/cxx.rs
git_override( git_override(
module_name = "cxx.rs", module_name = "cxx.rs",
tag = "1.0.157",
remote = "https://github.com/dtolnay/cxx.git", remote = "https://github.com/dtolnay/cxx.git",
tag = "1.0.157",
) )
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")

View File

@@ -267,12 +267,12 @@ objc_library(
objc_library( objc_library(
name = "iosapp", name = "iosapp",
srcs = [ srcs = [
"//platform/darwin:app/CustomStyleLayerExample.h",
"//platform/darwin:app/CustomStyleLayerExample.m",
"//platform/darwin:app/PluginLayerExample.h", "//platform/darwin:app/PluginLayerExample.h",
"//platform/darwin:app/PluginLayerExample.mm", "//platform/darwin:app/PluginLayerExample.mm",
"//platform/darwin:app/PluginLayerExampleMetalRendering.h", "//platform/darwin:app/PluginLayerExampleMetalRendering.h",
"//platform/darwin:app/PluginLayerExampleMetalRendering.mm", "//platform/darwin:app/PluginLayerExampleMetalRendering.mm",
"//platform/darwin:app/CustomStyleLayerExample.h",
"//platform/darwin:app/CustomStyleLayerExample.m",
"//platform/ios:ios_app_srcs", "//platform/ios:ios_app_srcs",
], ],
defines = ["GLES_SILENCE_DEPRECATION"], defines = ["GLES_SILENCE_DEPRECATION"],

View File

@@ -172,9 +172,9 @@ swift_library(
testonly = True, testonly = True,
srcs = glob(["test/*.swift"]), srcs = glob(["test/*.swift"]),
data = [ data = [
"app/PluginLayerTestStyle.json",
"test/amsterdam.geojson", "test/amsterdam.geojson",
"test/one-liner.json", "test/one-liner.json",
"app/PluginLayerTestStyle.json",
], ],
visibility = [ visibility = [
"//platform/ios/test:__pkg__", "//platform/ios/test:__pkg__",

View File

@@ -165,8 +165,7 @@ MLN_DARWIN_PRIVATE_HEADERS = [
"src/MLNVectorTileSource_Private.h", "src/MLNVectorTileSource_Private.h",
"src/NSExpression+MLNPrivateAdditions.h", "src/NSExpression+MLNPrivateAdditions.h",
"src/NSPredicate+MLNPrivateAdditions.h", "src/NSPredicate+MLNPrivateAdditions.h",
"src/MLNPluginStyleLayer_Private.h" "src/MLNPluginStyleLayer_Private.h",
] ]
MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [ MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [
@@ -222,8 +221,7 @@ MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [
"src/NSPredicate+MLNAdditions.mm", "src/NSPredicate+MLNAdditions.mm",
"src/NSValue+MLNStyleAttributeAdditions.mm", "src/NSValue+MLNStyleAttributeAdditions.mm",
"src/MLNPluginLayer.mm", "src/MLNPluginLayer.mm",
"src/MLNPluginStyleLayer.mm" "src/MLNPluginStyleLayer.mm",
] ]
MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE = [ MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE = [
"src/MLNCustomDrawableStyleLayer_Private.h", "src/MLNCustomDrawableStyleLayer_Private.h",

View File

@@ -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:ios.bzl", "ios_application", "ios_framework")
load("@rules_apple//apple:resources.bzl", "apple_resource_bundle") load("@rules_apple//apple:resources.bzl", "apple_resource_bundle")
load("@rules_apple//apple:versioning.bzl", "apple_bundle_version") load("@rules_apple//apple:versioning.bzl", "apple_bundle_version")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
load( load(
"@rules_xcodeproj//xcodeproj:defs.bzl", "@rules_xcodeproj//xcodeproj:defs.bzl",
"top_level_target", "top_level_target",

View File

@@ -11,7 +11,7 @@ MLN_IOS_SDK_HEADERS = [
"src/MLNUserLocation.h", "src/MLNUserLocation.h",
"src/MLNUserLocationAnnotationView.h", "src/MLNUserLocationAnnotationView.h",
"src/MLNUserLocationAnnotationViewStyle.h", "src/MLNUserLocationAnnotationViewStyle.h",
"src/MLNScaleBar.h" "src/MLNScaleBar.h",
] ]
MLN_IOS_PUBLIC_HEADERS = [ MLN_IOS_PUBLIC_HEADERS = [

View File

@@ -1,4 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library") 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") load("//bazel:flags.bzl", "CPP_FLAGS", "MAPLIBRE_FLAGS")
ICU_FLAGS = [ ICU_FLAGS = [
@@ -48,7 +49,7 @@ genrule(
$$(pkg-config --variable=libdir icu-uc)/libicuuc.a \ $$(pkg-config --variable=libdir icu-uc)/libicuuc.a \
$$(pkg-config --variable=libdir icu-uc)/libicudata.a \ $$(pkg-config --variable=libdir icu-uc)/libicudata.a \
$$(pkg-config --variable=libdir icu-i18n)/libicui18n.a $$(pkg-config --variable=libdir icu-i18n)/libicui18n.a
)""" )""",
) )
sh_binary( sh_binary(