blob: c4f25f8ea4e784869290df37fa5a8e78012459da [file] [log] [blame]
Colin Crossad44dd42017-11-09 15:11:34 -08001//
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// ============================================================
Bob Badour03905802021-02-12 21:42:54 -080019package {
20 default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
Felka Changb511e7f2020-07-08 14:55:39 +080023java_binary_host {
Colin Crossad44dd42017-11-09 15:11:34 -080024 name: "signapk",
25 srcs: ["src/**/*.java"],
26 manifest: "SignApk.mf",
27 static_libs: [
28 "apksig",
Neil Fuller35f74492018-07-12 19:47:21 +010029 "bouncycastle-unbundled",
30 "bouncycastle-bcpkix-unbundled",
Paul Duffinebbcc1b2019-09-20 15:54:43 +010031 "conscrypt-unbundled",
Colin Crossad44dd42017-11-09 15:11:34 -080032 ],
33
Sorin Bascad1073512023-02-02 20:09:51 +000034 // b/267608166: Prevent target Java 17 so the host-side tool can run in an
35 // environment where JDK 11 is available.
36 java_version: "11",
37
Colin Crossbbc94b02020-12-02 11:37:21 -080038 jni_libs: ["libconscrypt_openjdk_jni"],
Dan Willemsenef453812019-01-04 16:08:04 -080039
40 // The post-build signing tools need signapk.jar (and its shared libraries,
41 // handled in their own Android.bp files)
42 dist: {
Felka Changb511e7f2020-07-08 14:55:39 +080043 tag: ".jar",
Dan Willemsenef453812019-01-04 16:08:04 -080044 targets: ["droidcore"],
45 },
Colin Crossad44dd42017-11-09 15:11:34 -080046}