Skip to content

Commit

Permalink
Turn //tools/build_rules into a package.
Browse files Browse the repository at this point in the history
This is in preparation for another change that will add a new helper script
to the tools/build_rules directory, and such script requires a BUILD rule
of its own.

--
MOS_MIGRATED_REVID=114898083
  • Loading branch information
jmmv authored and damienmg committed Feb 17, 2016
1 parent ef0ca95 commit 5854a72
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//tools:build_rules/java_rules_skylark.bzl", "java_library", "java_binary", "java_test")
load("//tools/build_rules:java_rules_skylark.bzl", "java_library", "java_binary", "java_test")

package(default_visibility = ["//visibility:public"])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//tools:build_rules/java_rules_skylark.bzl", "java_library", "java_test")
load("//tools/build_rules:java_rules_skylark.bzl", "java_library", "java_test")

java_library(
name = "junit4",
Expand Down
2 changes: 1 addition & 1 deletion examples/proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])

load("//tools:build_rules/genproto.bzl", "proto_java_library")
load("//tools/build_rules:genproto.bzl", "proto_java_library")

proto_library(
name = "proto_smoke_test",
Expand Down
2 changes: 1 addition & 1 deletion examples/py/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])

load("//tools:build_rules/py_rules.bzl", "py_library", "py_binary")
load("//tools/build_rules:py_rules.bzl", "py_library", "py_binary")

py_library(
name = "lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ java_library(
deps = [],
)

load("//tools:build_rules/java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")
load("//tools/build_rules:java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")

bootstrap_java_library(
name = "skylark-deps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ java_library(
## Bootstrapping using Skylark rules
#

load("//tools:build_rules/java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")
load("//tools/build_rules:java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")

bootstrap_java_binary(
name = "bootstrap_genclass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java_library(
## Bootstrapping using Skylark rules
#

load("//tools:build_rules/java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")
load("//tools/build_rules:java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")

bootstrap_java_library(
name = "bootstrap_jarhelper",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ java_library(
## Bootstrapping using Skylark rules
#

load("//tools:build_rules/java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")
load("//tools/build_rules:java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")

bootstrap_java_library(
name = "bootstrap_plugins",
Expand Down
2 changes: 1 addition & 1 deletion src/java_tools/singlejar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ java_test(
#
# Bootstrapping using Skylark rules
#
load("//tools:build_rules/java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")
load("//tools/build_rules:java_rules_skylark.bzl", "bootstrap_java_library", "bootstrap_java_binary")

bootstrap_java_library(
name = "skylark-deps",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/devtools/build/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ genrule(

# Bootstrapping SingleJar using Skylark rules
#
load("//tools:build_rules/java_rules_skylark.bzl", "bootstrap_java_library")
load("//tools/build_rules:java_rules_skylark.bzl", "bootstrap_java_library")

bootstrap_java_library(
name = "shell-skylark",
Expand Down
2 changes: 1 addition & 1 deletion src/main/protobuf/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])

load("//tools:build_rules/genproto.bzl", "proto_java_library")
load("//tools/build_rules:genproto.bzl", "proto_java_library")

FILES = [
"build",
Expand Down
2 changes: 2 additions & 0 deletions tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ filegroup(
srcs = glob(["**"]) + [
"//tools/android:srcs",
"//tools/android/jack:srcs",
"//tools/build_rules:srcs",
"//tools/jdk:srcs",
"//tools/genrule:srcs",
"//tools/cpp:srcs",
Expand All @@ -33,6 +34,7 @@ filegroup(
"//tools/build_rules/closure:srcs",
"//tools/build_rules/go:srcs",
"//tools/build_rules/rust:srcs",
"//tools/build_rules:srcs",
"//tools/buildstamp:srcs",
"//tools/cpp:srcs",
"//tools/genrule:srcs",
Expand Down
2 changes: 1 addition & 1 deletion tools/build_defs/sass/test/sass_rule_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ load(
)

load(
"//tools:build_rules/test_rules.bzl",
"//tools/build_rules:test_rules.bzl",
"success_target",
"successful_test",
"failure_target",
Expand Down
7 changes: 7 additions & 0 deletions tools/build_rules/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
licenses(["notice"]) # Apache 2.0

filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//tools:__pkg__"],
)
2 changes: 1 addition & 1 deletion tools/build_rules/rust/test/rust_rule_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ load(
"rust_test",
)
load(
"//tools:build_rules/test_rules.bzl",
"//tools/build_rules:test_rules.bzl",
"rule_test",
)

Expand Down

0 comments on commit 5854a72

Please sign in to comment.