summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-05-16 11:35:00 -0700
committerJoshua Haberman <jhaberman@gmail.com>2019-05-16 11:35:00 -0700
commit5611ff267b7f11615516fd6efe8373b730999a0d (patch)
treec7d7e10274d17cd3e9ad7002ea77249a385c2577
parentf74cb51f113afcf579e60b74749cffffdf2a5f6a (diff)
Moved bazel files to bazel/ directory.
-rw-r--r--BUILD4
-rw-r--r--WORKSPACE6
-rw-r--r--bazel/BUILD0
-rw-r--r--bazel/build_defs.bzl (renamed from build_defs.bzl)0
-rw-r--r--bazel/lua.BUILD (renamed from lua.BUILD)0
-rw-r--r--bazel/ragel.BUILD (renamed from ragel.BUILD)0
-rw-r--r--bazel/repository_defs.bzl (renamed from repository_defs.bzl)0
-rw-r--r--bazel/upb_proto_library.bzl (renamed from upb_proto_library.bzl)10
-rw-r--r--bazel/workspace_deps.bzl (renamed from workspace_deps.bzl)2
-rwxr-xr-xtools/copy_genfiles.sh.in22
10 files changed, 11 insertions, 33 deletions
diff --git a/BUILD b/BUILD
index 362417a..11156c8 100644
--- a/BUILD
+++ b/BUILD
@@ -1,5 +1,5 @@
load(
- ":build_defs.bzl",
+ "//bazel:build_defs.bzl",
"generated_file_staleness_test",
"licenses", # copybara:strip_for_google3
"lua_binary",
@@ -11,7 +11,7 @@ load(
)
load(
- ":upb_proto_library.bzl",
+ "//bazel:upb_proto_library.bzl",
"upb_proto_library",
"upb_proto_reflection_library",
)
diff --git a/WORKSPACE b/WORKSPACE
index 63ccaab..91d2150 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,13 +1,13 @@
workspace(name = "upb")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
-load("@upb//:workspace_deps.bzl", "upb_deps")
+load("//bazel:workspace_deps.bzl", "upb_deps")
upb_deps()
http_archive(
name = "lua",
- build_file = "//:lua.BUILD",
+ build_file = "//bazel:lua.BUILD",
sha256 = "b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b",
strip_prefix = "lua-5.2.4",
urls = [
@@ -18,7 +18,7 @@ http_archive(
http_archive(
name = "ragel",
- build_file = "//:ragel.BUILD",
+ build_file = "//bazel:ragel.BUILD",
sha256 = "5f156edb65d20b856d638dd9ee2dfb43285914d9aa2b6ec779dac0270cd56c3f",
strip_prefix = "ragel-6.10",
urls = ["http://www.colm.net/files/ragel/ragel-6.10.tar.gz"],
diff --git a/bazel/BUILD b/bazel/BUILD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bazel/BUILD
diff --git a/build_defs.bzl b/bazel/build_defs.bzl
index 44ef0a3..44ef0a3 100644
--- a/build_defs.bzl
+++ b/bazel/build_defs.bzl
diff --git a/lua.BUILD b/bazel/lua.BUILD
index 7be0b59..7be0b59 100644
--- a/lua.BUILD
+++ b/bazel/lua.BUILD
diff --git a/ragel.BUILD b/bazel/ragel.BUILD
index 5e3b249..5e3b249 100644
--- a/ragel.BUILD
+++ b/bazel/ragel.BUILD
diff --git a/repository_defs.bzl b/bazel/repository_defs.bzl
index 7b6e78e..7b6e78e 100644
--- a/repository_defs.bzl
+++ b/bazel/repository_defs.bzl
diff --git a/upb_proto_library.bzl b/bazel/upb_proto_library.bzl
index 962facd..0dc8c6e 100644
--- a/upb_proto_library.bzl
+++ b/bazel/upb_proto_library.bzl
@@ -218,7 +218,7 @@ _upb_proto_library_aspect = aspect(
"_upbc": attr.label(
executable = True,
cfg = "host",
- default = ":protoc-gen-upb",
+ default = "//:protoc-gen-upb",
),
"_protoc": attr.label(
executable = True,
@@ -228,7 +228,7 @@ _upb_proto_library_aspect = aspect(
"_cc_toolchain": attr.label(
default = "@bazel_tools//tools/cpp:current_cc_toolchain",
),
- "_upb": attr.label_list(default = [":upb"]),
+ "_upb": attr.label_list(default = ["//:upb"]),
"_ext": attr.string(default = ".upb"),
}),
implementation = _upb_proto_aspect_impl,
@@ -255,7 +255,7 @@ _upb_proto_reflection_library_aspect = aspect(
"_upbc": attr.label(
executable = True,
cfg = "host",
- default = ":protoc-gen-upb",
+ default = "//:protoc-gen-upb",
),
"_protoc": attr.label(
executable = True,
@@ -267,8 +267,8 @@ _upb_proto_reflection_library_aspect = aspect(
),
"_upb": attr.label_list(
default = [
- ":upb",
- ":reflection",
+ "//:upb",
+ "//:reflection",
],
),
"_ext": attr.string(default = ".upbdefs"),
diff --git a/workspace_deps.bzl b/bazel/workspace_deps.bzl
index a77d584..39bf524 100644
--- a/workspace_deps.bzl
+++ b/bazel/workspace_deps.bzl
@@ -1,7 +1,7 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
-load("@upb//:repository_defs.bzl", "bazel_version_repository")
+load("//bazel:repository_defs.bzl", "bazel_version_repository")
def upb_deps():
bazel_version_repository(
diff --git a/tools/copy_genfiles.sh.in b/tools/copy_genfiles.sh.in
deleted file mode 100755
index 5e22625..0000000
--- a/tools/copy_genfiles.sh.in
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-BINDIR=`dirname "$0"`/..
-SRCDIR=${CMAKE_CURRENT_SOURCE_DIR}
-EXIT=0
-
-function try_copy() {
- if [ ! -f $1 ]; then
- echo "Can't find $1, skipping..."
- EXIT=1
- else
- cp $1 $2
- echo $1
- fi
-}
-
-try_copy $BINDIR/google/protobuf/descriptor.upb.c $SRCDIR/google/protobuf
-try_copy $BINDIR/google/protobuf/descriptor.upb.h $SRCDIR/google/protobuf
-try_copy $BINDIR/upb/json/parser.c $SRCDIR/upb/json
-try_copy $BINDIR/upb/pb/compile_decoder_x64.h $SRCDIR/upb/pb
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback