Merge "change logtags dependency to provide java sources" am: 84a39ac3f0
Original change: https://android-review.googlesource.com/c/platform/build/+/2045664 Change-Id: I375f1deeb6430e0b3ec5a3df7f5d54b739e25528 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1b14ac6ba6
1 changed files with 1 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
|||
"""Event log tags generation rule"""
|
||||
|
||||
load("@bazel_skylib//lib:paths.bzl", "paths")
|
||||
load("@rules_android//rules:rules.bzl", "android_library")
|
||||
|
||||
def _event_log_tags_impl(ctx):
|
||||
out_files = []
|
||||
|
@ -22,7 +21,7 @@ def _event_log_tags_impl(ctx):
|
|||
)
|
||||
return [DefaultInfo(files = depset(out_files))]
|
||||
|
||||
_event_log_tags = rule(
|
||||
event_log_tags = rule(
|
||||
implementation = _event_log_tags_impl,
|
||||
attrs = {
|
||||
"srcs": attr.label_list(allow_files = [".logtags"], mandatory = True),
|
||||
|
@ -34,14 +33,3 @@ _event_log_tags = rule(
|
|||
),
|
||||
},
|
||||
)
|
||||
|
||||
def event_log_tags(name, srcs):
|
||||
_event_log_tags(
|
||||
name = name + "_gen_logtags",
|
||||
srcs = srcs,
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = name,
|
||||
srcs = [name + "_gen_logtags"],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue