diff options
author | Adam Michael <ajmichael@google.com> | 2016-09-01 15:32:59 +0000 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2016-09-02 08:23:54 +0000 |
commit | f7a022ebec00eb4e09d385874b7d982bd399cac8 (patch) | |
tree | 2336fc02a49025c699f17f3d91e77ac33bc77565 /third_party/java | |
parent | 76b3fb9869af6dac0d872176a2e6aebe55f69c90 (diff) |
Add BUILD target for bazel apksigner and BUILD.tools so that it can be used in
the embedded_tools repo.
Do not submit until https://bazel-review.googlesource.com/#/c/5630/6 is merged.
Also do not submit until unknown commit goes in.
--
MOS_MIGRATED_REVID=131950953
Diffstat (limited to 'third_party/java')
-rw-r--r-- | third_party/java/apksig/BUILD | 37 | ||||
-rw-r--r-- | third_party/java/apksig/BUILD.tools | 29 |
2 files changed, 66 insertions, 0 deletions
diff --git a/third_party/java/apksig/BUILD b/third_party/java/apksig/BUILD new file mode 100644 index 0000000000..8f27672055 --- /dev/null +++ b/third_party/java/apksig/BUILD @@ -0,0 +1,37 @@ +# Copyright 2016 The Bazel Authors. All rights reserved. +# +# 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. + +licenses(["notice"]) + +filegroup( + name = "embedded_tools", + srcs = [ + "BUILD.tools", + "apksigner_deploy.jar", + ], + visibility = ["//src:__pkg__"], +) + +filegroup(name = "embedded_apksigner") + +filegroup( + name = "srcs", + srcs = glob(["**"]), + visibility = ["//third_party:__pkg__"], +) + +java_import( + name = "apksigner", + jars = ["apksigner_deploy.jar"], +) diff --git a/third_party/java/apksig/BUILD.tools b/third_party/java/apksig/BUILD.tools new file mode 100644 index 0000000000..6fbf70cdeb --- /dev/null +++ b/third_party/java/apksig/BUILD.tools @@ -0,0 +1,29 @@ +# Copyright 2016 The Bazel Authors. All rights reserved. +# +# 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. + +# The build file for apksigner when it's in bazel's embedded tools repo. + +licenses(["notice"]) # Apache 2.0 + +java_binary( + name = "embedded_apksigner", + main_class = "com.android.apksigner.ApkSignerTool", + visibility = ["//visibility:public"], + runtime_deps = [":apksigner"], +) + +java_import( + name = "apksigner", + jars = ["apksigner_deploy.jar"], +) |