• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2008 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
17// the signapk tool (a .jar application used to sign packages)
18// ============================================================
19package {
20    default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
23java_binary_host {
24    name: "signapk",
25    srcs: ["src/**/*.java"],
26    manifest: "SignApk.mf",
27    static_libs: [
28        "apksig",
29        "bouncycastle-unbundled",
30        "bouncycastle-bcpkix-unbundled",
31        "conscrypt-unbundled",
32    ],
33
34    jni_libs: ["libconscrypt_openjdk_jni"],
35
36    // The post-build signing tools need signapk.jar (and its shared libraries,
37    // handled in their own Android.bp files)
38    dist: {
39        tag: ".jar",
40        targets: ["droidcore"],
41    },
42}
43