From b6fe473734da8ff86b6fb98dacb23526c5880703 Mon Sep 17 00:00:00 2001 From: Sam Delmerico Date: Fri, 25 Mar 2022 17:49:25 +0000 Subject: [PATCH] change logtags dependency to provide java sources This rule originally used an android_library because it needed access to SDK methods, but we can instead just provide Java sources and expect the dependee to link the SDK methods. Test: enabled QuickSearchBox and build Change-Id: I7f1cdbea49e100ecc0944f8caa39683fb73016fb --- tools/event_log_tags.bzl | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tools/event_log_tags.bzl b/tools/event_log_tags.bzl index 3766da4930..35305aef63 100644 --- a/tools/event_log_tags.bzl +++ b/tools/event_log_tags.bzl @@ -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"], - )