diff options
author | satayev <satayev@google.com> | 2021-05-10 12:31:50 +0100 |
---|---|---|
committer | satayev <satayev@google.com> | 2021-05-10 18:27:54 +0100 |
commit | 075d07c591e51887b24ea2ca8e96483e32034ea3 (patch) | |
tree | 4060ca0bb69bb1cc8c8e4aad9c029c1b870d23f7 /tools/Android.bp | |
parent | 4986e116e5d0f38628a011e59c36a97a7cbaecc2 (diff) | |
download | common-075d07c591e51887b24ea2ca8e96483e32034ea3.tar.gz |
Move SdkExtensions/proto to packages/modules/common.
The proto definitions may be needed at build time to generate appropriate
configs for the modules. Unbundled ART branches do not include
packages/modules/SdkExtenstion in their manifest; so put the proto in a
project that should be visible to all unbundled modules.
Move any relevant tools to packages/modules/common/tools as well.
Bug: 180105615
Test: m nothing
Change-Id: I4efa4300553af6b321f46adb29b8cc90e4556955
Diffstat (limited to 'tools/Android.bp')
-rw-r--r-- | tools/Android.bp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tools/Android.bp b/tools/Android.bp new file mode 100644 index 00000000..66567ea3 --- /dev/null +++ b/tools/Android.bp @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +python_defaults { + name: "modules-common-tools-python-defaults", + version: { + py2: { + enabled: false, + }, + py3: { + enabled: true, + embedded_launcher: true, + }, + }, +} + +python_binary_host { + name: "conv_classpaths_proto", + defaults: ["modules-common-tools-python-defaults"], + srcs: ["conv_classpaths_proto.py"], + libs: ["classpaths_proto_python"], +} + +python_binary_host { + name: "gen_sdkinfo", + defaults: ["modules-common-tools-python-defaults"], + srcs: ["gen_sdkinfo.py"], + libs: ["sdk_proto_python"], +} + +gensrcs { + name: "cur_sdkinfo_src", + srcs: [""], + tools: [ "gen_sdkinfo" ], + cmd: "$(location) -v 0 -o $(out)", +} + +prebuilt_etc { + name: "cur_sdkinfo", + src: ":cur_sdkinfo_src", + filename: "sdkinfo.binarypb", + installable: false, + visibility: ["//packages/modules/SdkExtensions"], +} |