diff options
author | David Chen <dzc@google.com> | 2015-09-23 12:20:20 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2015-09-24 14:13:58 +0000 |
commit | eaae08e4ed25c396a04c759a4c88734a1c78064e (patch) | |
tree | 96a3c7aeeca2c21f11c50662b17384eb388c7dfd /examples | |
parent | e7a2fdb620516611c9a8f25704c947ed64ae7294 (diff) |
Update d_docs rule to take a dependency on a d_binary, a d_library or d_source_library.
RELNOTES: [d] d_docs rules now depend on a d_binary, a d_library or d_source_library.
--
MOS_MIGRATED_REVID=103736167
Diffstat (limited to 'examples')
-rw-r--r-- | examples/d/hello_lib/BUILD | 10 | ||||
-rw-r--r-- | examples/d/hello_world/BUILD | 7 |
2 files changed, 12 insertions, 5 deletions
diff --git a/examples/d/hello_lib/BUILD b/examples/d/hello_lib/BUILD index 7ed1624a41..a4d901d224 100644 --- a/examples/d/hello_lib/BUILD +++ b/examples/d/hello_lib/BUILD @@ -33,8 +33,10 @@ d_source_library( d_docs( name = "greeter_docs", - srcs = glob( - ["*.d"], - exclude = ["*_test.d"], - ), + dep = ":greeter", +) + +d_docs( + name = "native_greeter_docs", + dep = ":native_greeter", ) diff --git a/examples/d/hello_world/BUILD b/examples/d/hello_world/BUILD index 47c7342060..27e6a4e3eb 100644 --- a/examples/d/hello_world/BUILD +++ b/examples/d/hello_world/BUILD @@ -1,6 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("/tools/build_defs/d/d", "d_binary") +load("/tools/build_defs/d/d", "d_binary", "d_docs") d_binary( name = "hello_world", @@ -10,3 +10,8 @@ d_binary( "//examples/d/hello_lib:native_greeter", ], ) + +d_docs( + name = "hello_world_docs", + dep = ":hello_world", +) |