From 6af37e672947bb29b53650119585b38766f74d96 Mon Sep 17 00:00:00 2001 From: mustiikhalil Date: Thu, 11 Feb 2021 21:16:57 +0300 Subject: [PATCH] [CMake] Renames BUILD files (#6457) * Renamed build to build.bazel to stop xcode from complaining about it * Renamed all build to build.bazel * Fixes small ci issue --- .gitignore | 1 + BUILD => BUILD.bazel | 4 ++-- bazel/{BUILD => BUILD.bazel} | 0 grpc/{BUILD => BUILD.bazel} | 0 src/{BUILD => BUILD.bazel} | 5 +++-- tests/{BUILD => BUILD.bazel} | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) rename BUILD => BUILD.bazel (100%) rename bazel/{BUILD => BUILD.bazel} (100%) rename grpc/{BUILD => BUILD.bazel} (100%) rename src/{BUILD => BUILD.bazel} (99%) rename tests/{BUILD => BUILD.bazel} (100%) diff --git a/.gitignore b/.gitignore index bd5f2314f..02d665157 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *_wire.bin .DS_Store **/.build +build **/Packages /*.xcodeproj **/xcuserdata/ diff --git a/BUILD b/BUILD.bazel similarity index 100% rename from BUILD rename to BUILD.bazel index 936ef9df4..4e40b718b 100644 --- a/BUILD +++ b/BUILD.bazel @@ -1,7 +1,7 @@ -licenses(["notice"]) - load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") +licenses(["notice"]) + package( default_visibility = ["//visibility:public"], ) diff --git a/bazel/BUILD b/bazel/BUILD.bazel similarity index 100% rename from bazel/BUILD rename to bazel/BUILD.bazel diff --git a/grpc/BUILD b/grpc/BUILD.bazel similarity index 100% rename from grpc/BUILD rename to grpc/BUILD.bazel diff --git a/src/BUILD b/src/BUILD.bazel similarity index 99% rename from src/BUILD rename to src/BUILD.bazel index 675b5ebc3..184b4014e 100644 --- a/src/BUILD +++ b/src/BUILD.bazel @@ -1,9 +1,10 @@ +# @unused +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") + package( default_visibility = ["//visibility:private"], ) -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") - # Public flatc library to compile flatbuffer files at runtime. cc_library( name = "flatbuffers", diff --git a/tests/BUILD b/tests/BUILD.bazel similarity index 100% rename from tests/BUILD rename to tests/BUILD.bazel index 203a08cd9..30e196bd0 100644 --- a/tests/BUILD +++ b/tests/BUILD.bazel @@ -1,4 +1,5 @@ load("@rules_cc//cc:defs.bzl", "cc_test") +load("//:build_defs.bzl", "flatbuffer_cc_library") package(default_visibility = ["//visibility:private"]) @@ -70,7 +71,6 @@ cc_test( ) # Test bzl rules -load("//:build_defs.bzl", "flatbuffer_cc_library") cc_library( name = "test_assert",