Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: refactor package level defaults to envoy_package(). #828

Merged
merged 1 commit into from
Apr 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_package",
)

envoy_package()

genrule(
name = "envoy_version",
Expand Down
3 changes: 3 additions & 0 deletions bazel/envoy_build_system.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
load("@protobuf_bzl//:protobuf.bzl", "cc_proto_library")

def envoy_package():
native.package(default_visibility = ["//visibility:public"])

# Compute the final copts based on various options.
def envoy_copts(repository):
return [
Expand Down
7 changes: 6 additions & 1 deletion ci/build_container/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_package",
)

envoy_package()

exports_files([
"build_and_install_deps.sh",
Expand Down
7 changes: 6 additions & 1 deletion ci/build_container/build_recipes/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_package",
)

envoy_package()

exports_files(glob(["*.sh"]))
7 changes: 6 additions & 1 deletion configs/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_package",
)

envoy_package()

genrule(
name = "example_configs",
Expand Down
7 changes: 6 additions & 1 deletion examples/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_package",
)

envoy_package()

filegroup(
name = "configs",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/access_log/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "access_log_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/api/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "api_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/buffer/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "buffer_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/common/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

cc_library(
name = "base_includes",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/event/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "deferred_deletable",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/filesystem/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "filesystem_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/grpc/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "rpc_channel_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/http/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "access_log_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/init/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "init_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/json/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "json_object_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/local_info/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "local_info_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/mongo/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "bson_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/network/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "address_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/ratelimit/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "ratelimit_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/redis/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "codec_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/router/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "rds_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/runtime/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "runtime_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/server/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "admin_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/ssl/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "connection_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/stats/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "stats_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/thread/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "thread_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/thread_local/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "thread_local_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/tracing/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "context_interface",
Expand Down
8 changes: 6 additions & 2 deletions include/envoy/upstream/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "cluster_manager_interface",
Expand Down
8 changes: 6 additions & 2 deletions source/common/access_log/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package(default_visibility = ["//visibility:public"])
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)

load("//bazel:envoy_build_system.bzl", "envoy_cc_library")
envoy_package()

envoy_cc_library(
name = "access_log_manager_lib",
Expand Down
Loading