Remove allow_empty = False from BUILD files (#2032)
This commit is contained in:
10
BUILD.bazel
10
BUILD.bazel
@@ -22,10 +22,7 @@ load("//bazel:flags.bzl", "CPP_FLAGS", "MAPLIBRE_FLAGS")
|
||||
# Generate code required by the core
|
||||
filegroup(
|
||||
name = "style_data",
|
||||
srcs = glob(
|
||||
["**/*.ejs"],
|
||||
allow_empty = False,
|
||||
),
|
||||
srcs = glob(["**/*.ejs"]),
|
||||
)
|
||||
|
||||
genrule(
|
||||
@@ -40,10 +37,7 @@ genrule(
|
||||
|
||||
filegroup(
|
||||
name = "shader_data",
|
||||
srcs = ["shaders/manifest.json"] + glob(
|
||||
["shaders/*.glsl"],
|
||||
allow_empty = False,
|
||||
),
|
||||
srcs = ["shaders/manifest.json"] + glob(["shaders/*.glsl"]),
|
||||
)
|
||||
|
||||
genrule(
|
||||
|
||||
@@ -27,7 +27,6 @@ cc_test(
|
||||
"*.cpp",
|
||||
"*.hpp",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
copts = CPP_FLAGS + MAPLIBRE_FLAGS,
|
||||
data = [
|
||||
|
||||
@@ -9,17 +9,16 @@ filegroup(
|
||||
"ios-render-test-runner/**", # iOS only
|
||||
"expectations/platform-ios/**", # iOS only
|
||||
],
|
||||
allow_empty = False,
|
||||
) + select({
|
||||
"//:metal_renderer": glob(["expectations/platform-ios-metal/**"]), # iOS Metal only
|
||||
) + select({
|
||||
"//:metal_renderer": glob(["expectations/platform-ios-metal/**"]), # iOS Metal only
|
||||
"//conditions:default": [],
|
||||
}) + [
|
||||
"cache-metrics.db",
|
||||
"cache-style.db",
|
||||
"ios-render-test-runner-metrics.json", # iOS only
|
||||
"ios-render-test-runner-style.json", # iOS only
|
||||
"ios-metal-render-test-runner-metrics.json", # iOS Metal only
|
||||
"ios-metal-render-test-runner-style.json", # iOS Metal only
|
||||
"ios-render-test-runner-metrics.json", # iOS only
|
||||
"ios-render-test-runner-style.json", # iOS only
|
||||
"linux-gcc8-release-metrics.json",
|
||||
"linux-gcc8-release-style.json",
|
||||
],
|
||||
@@ -31,12 +30,7 @@ filegroup(
|
||||
|
||||
filegroup(
|
||||
name = "expression-test-files",
|
||||
srcs = glob(
|
||||
[
|
||||
"integration/expression-tests/**",
|
||||
],
|
||||
allow_empty = False,
|
||||
) + [
|
||||
srcs = glob(["integration/expression-tests/**"]) + [
|
||||
"ignores/platform-all.json",
|
||||
],
|
||||
visibility = [
|
||||
|
||||
@@ -4,9 +4,9 @@ load(
|
||||
"MLN_DARWIN_OBJCPP_HEADERS",
|
||||
"MLN_DARWIN_OBJC_HEADERS",
|
||||
"MLN_DARWIN_PRIVATE_HEADERS",
|
||||
"MLN_DARWIN_PUBLIC_OBJCPP_SOURCE",
|
||||
"MLN_DARWIN_PUBLIC_OBJCPP_OPENGL_SOURCE",
|
||||
"MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE",
|
||||
"MLN_DARWIN_PUBLIC_OBJCPP_OPENGL_SOURCE",
|
||||
"MLN_DARWIN_PUBLIC_OBJCPP_SOURCE",
|
||||
"MLN_DARWIN_PUBLIC_OBJC_SOURCE",
|
||||
"MLN_GENERATED_DARWIN_STYLE_HEADERS",
|
||||
"MLN_GENERATED_DARWIN_STYLE_PUBLIC_HEADERS",
|
||||
@@ -147,14 +147,10 @@ objc_library(
|
||||
"test/*.m",
|
||||
"test/*.h",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
copts = MAPLIBRE_FLAGS + WARNING_FLAGS["ios"],
|
||||
data = glob(
|
||||
[
|
||||
"test/Media.xcassets/**",
|
||||
],
|
||||
allow_empty = False,
|
||||
["test/Media.xcassets/**"],
|
||||
),
|
||||
sdk_frameworks = [
|
||||
"MapKit",
|
||||
@@ -175,7 +171,6 @@ objc_library(
|
||||
"test/*.h",
|
||||
"test/*.mm",
|
||||
],
|
||||
allow_empty = False,
|
||||
exclude = [
|
||||
"test/MLNOfflineStorageTests.mm",
|
||||
],
|
||||
@@ -192,12 +187,7 @@ objc_library(
|
||||
swift_library(
|
||||
name = "shared_tests_swift_srcs",
|
||||
testonly = True,
|
||||
srcs = glob(
|
||||
[
|
||||
"test/*.swift",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
srcs = glob(["test/*.swift"]),
|
||||
data = [
|
||||
"test/amsterdam.geojson",
|
||||
"test/one-liner.json",
|
||||
|
||||
@@ -10,12 +10,7 @@ configure_device_profiles()
|
||||
swift_library(
|
||||
name = "uitest_srcs",
|
||||
testonly = True,
|
||||
srcs = glob(
|
||||
[
|
||||
"*.swift",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
srcs = glob(["*.swift"]),
|
||||
)
|
||||
|
||||
ios_ui_test(
|
||||
|
||||
@@ -12,7 +12,6 @@ objc_library(
|
||||
"*.h",
|
||||
"*.m",
|
||||
],
|
||||
allow_empty = False,
|
||||
exclude = [
|
||||
"MLNMapViewContentInsetTests.m",
|
||||
],
|
||||
@@ -30,7 +29,6 @@ objc_library(
|
||||
"*.mm",
|
||||
"*.h",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
copts = CPP_FLAGS + MAPLIBRE_FLAGS + WARNING_FLAGS["ios"],
|
||||
deps = [
|
||||
@@ -41,10 +39,7 @@ objc_library(
|
||||
swift_library(
|
||||
name = "ios_tests_swift_srcs",
|
||||
testonly = True,
|
||||
srcs = glob(
|
||||
["*.swift"],
|
||||
allow_empty = False,
|
||||
) + [
|
||||
srcs = glob(["*.swift"]) + [
|
||||
"//platform/darwin:test/MLNSDKTestHelpers.swift",
|
||||
],
|
||||
deps = [
|
||||
|
||||
6
platform/ios/vendor/BUILD.bazel
vendored
6
platform/ios/vendor/BUILD.bazel
vendored
@@ -8,13 +8,9 @@ objc_library(
|
||||
"SMCalloutView/*.h",
|
||||
"SMCalloutView/*.m",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(
|
||||
[
|
||||
"SMCalloutView/*.h",
|
||||
],
|
||||
allow_empty = False,
|
||||
["SMCalloutView/*.h"],
|
||||
),
|
||||
copts = WARNING_FLAGS["ios"],
|
||||
includes = ["SMCalloutView"],
|
||||
|
||||
@@ -14,13 +14,9 @@ cc_library(
|
||||
cc_library(
|
||||
name = "testlib",
|
||||
srcs = select({
|
||||
"//:ios": glob(
|
||||
["src/mbgl/test/*.cpp"],
|
||||
allow_empty = False,
|
||||
),
|
||||
"//:ios": glob(["src/mbgl/test/*.cpp"]),
|
||||
"//conditions:default": glob(
|
||||
["src/mbgl/test/*.cpp"],
|
||||
allow_empty = False,
|
||||
exclude = ["src/mbgl/test/http_server.cpp"],
|
||||
),
|
||||
}) + [
|
||||
@@ -74,7 +70,6 @@ filegroup(
|
||||
name = "fixtures",
|
||||
srcs = glob(
|
||||
["fixtures/**/*"],
|
||||
allow_empty = False,
|
||||
),
|
||||
visibility = [
|
||||
"//platform/ios/test/core:__pkg__",
|
||||
|
||||
44
vendor/BUILD.bazel
vendored
44
vendor/BUILD.bazel
vendored
@@ -3,7 +3,9 @@ load("//bazel:flags.bzl", "CPP_FLAGS")
|
||||
# vendor/mapbox-base-files.json
|
||||
cc_library(
|
||||
name = "mapbox-base",
|
||||
hdrs = glob(
|
||||
hdrs = [
|
||||
"mapbox-base/extras/args/args.hxx",
|
||||
] + glob(
|
||||
[
|
||||
"mapbox-base/deps/cheap-ruler-cpp/include/mapbox/*.hpp",
|
||||
"mapbox-base/deps/geojson-vt-cpp/include/**/*.hpp",
|
||||
@@ -18,10 +20,8 @@ cc_library(
|
||||
"mapbox-base/extras/filesystem/include/ghc/*.hpp",
|
||||
"mapbox-base/extras/kdbush.hpp/include/*.hpp",
|
||||
"mapbox-base/extras/rapidjson/include/**/*.h",
|
||||
"mapbox-base/extras/args/args.hxx",
|
||||
"mapbox-base/include/mapbox/**/*.hpp",
|
||||
],
|
||||
allow_empty = False,
|
||||
exclude = ["mapbox-base/deps/jni.hpp/include/jni/string_conversion.hpp"],
|
||||
),
|
||||
copts = CPP_FLAGS,
|
||||
@@ -51,12 +51,7 @@ cc_library(
|
||||
cc_library(
|
||||
name = "parsedate",
|
||||
srcs = ["parsedate/parsedate.cpp"],
|
||||
hdrs = glob(
|
||||
[
|
||||
"parsedate/**/*.hpp",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["parsedate/**/*.hpp"]),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["parsedate"],
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -65,12 +60,7 @@ cc_library(
|
||||
# vendor/optional
|
||||
cc_library(
|
||||
name = "optional",
|
||||
hdrs = glob(
|
||||
[
|
||||
"mapbox-base/deps/optional/*.hpp",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["mapbox-base/deps/optional/*.hpp"]),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["mapbox-base/deps/optional"],
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -84,7 +74,6 @@ cc_library(
|
||||
"csscolorparser/**/*.hpp",
|
||||
"csscolorparser/**/*.cpp",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["csscolorparser"],
|
||||
@@ -95,10 +84,7 @@ cc_library(
|
||||
# vendor/wagyu-files.json
|
||||
cc_library(
|
||||
name = "wagyu",
|
||||
hdrs = glob(
|
||||
["wagyu/include/mapbox/geometry/wagyu/*.hpp"],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["wagyu/include/mapbox/geometry/wagyu/*.hpp"]),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["wagyu/include"],
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -115,7 +101,6 @@ objc_library(
|
||||
"zip-archive/SSZipArchive/minizip/*.c",
|
||||
"zip-archive/SSZipArchive/minizip/*.h",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
defines = ["ZLIB_COMPAT"],
|
||||
includes = ["zip-archive/SSZipArchive"],
|
||||
@@ -130,7 +115,6 @@ cc_library(
|
||||
"boost/include/boost/**/*.hpp",
|
||||
"boost/include/boost/**/*.h",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["boost/include"],
|
||||
@@ -148,10 +132,7 @@ cc_library(
|
||||
# vendor/protozero-files.json
|
||||
cc_library(
|
||||
name = "protozero",
|
||||
hdrs = glob(
|
||||
["protozero/include/protozero/*.hpp"],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["protozero/include/protozero/*.hpp"]),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["protozero/include"],
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -178,10 +159,7 @@ cc_library(
|
||||
# vendor/metal-cpp.json
|
||||
cc_library(
|
||||
name = "metal-cpp",
|
||||
hdrs = glob(
|
||||
["metal-cpp/**/*.hpp"],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["metal-cpp/**/*.hpp"]),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["metal-cpp"],
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -208,10 +186,7 @@ cc_library(
|
||||
# vendor/vector-tile-files.json
|
||||
cc_library(
|
||||
name = "vector-tile",
|
||||
hdrs = glob(
|
||||
["vector-tile/include/mapbox/**/*.hpp"],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["vector-tile/include/mapbox/**/*.hpp"]),
|
||||
copts = CPP_FLAGS,
|
||||
includes = ["vector-tile/include"],
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -225,7 +200,6 @@ cc_library(
|
||||
"icu/src/*.cpp",
|
||||
"icu/src/*.h",
|
||||
],
|
||||
allow_empty = False,
|
||||
),
|
||||
hdrs = glob(["icu/include/unicode/*.h"]),
|
||||
copts = CPP_FLAGS + [
|
||||
|
||||
Reference in New Issue
Block a user