blob: 27f9b759e15f17370bfd33bb12fe88933b329585 [file] [log] [blame]
Remi NGUYEN VAN7b92ff22022-04-20 15:59:16 +09001//
2// Copyright (C) 2022 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18 // See: http://go/android-license-faq
19 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22// Build tool used to generate jarjar rules for all classes in a jar, except those that are
23// API, UnsupportedAppUsage or otherwise excluded.
24python_binary_host {
25 name: "jarjar-rules-generator",
26 srcs: [
27 "gen_jarjar.py",
28 ],
29 main: "gen_jarjar.py",
30 version: {
31 py2: {
32 enabled: false,
33 },
34 py3: {
35 enabled: true,
36 },
37 },
38 visibility: ["//packages/modules/Connectivity:__subpackages__"],
39}
40
41genrule_defaults {
42 name: "jarjar-rules-combine-defaults",
43 // Concat files with a line break in the middle
44 cmd: "for src in $(in); do cat $${src}; echo; done > $(out)",
45 defaults_visibility: ["//packages/modules/Connectivity:__subpackages__"],
46}