Colin Cross | ad44dd4 | 2017-11-09 15:11:34 -0800 | [diff] [blame] | 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 | // ============================================================ |
Bob Badour | 0390580 | 2021-02-12 21:42:54 -0800 | [diff] [blame] | 19 | package { |
| 20 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 21 | } |
| 22 | |
Felka Chang | b511e7f | 2020-07-08 14:55:39 +0800 | [diff] [blame] | 23 | java_binary_host { |
Colin Cross | ad44dd4 | 2017-11-09 15:11:34 -0800 | [diff] [blame] | 24 | name: "signapk", |
| 25 | srcs: ["src/**/*.java"], |
| 26 | manifest: "SignApk.mf", |
| 27 | static_libs: [ |
| 28 | "apksig", |
Neil Fuller | 35f7449 | 2018-07-12 19:47:21 +0100 | [diff] [blame] | 29 | "bouncycastle-unbundled", |
| 30 | "bouncycastle-bcpkix-unbundled", |
Paul Duffin | ebbcc1b | 2019-09-20 15:54:43 +0100 | [diff] [blame] | 31 | "conscrypt-unbundled", |
Colin Cross | ad44dd4 | 2017-11-09 15:11:34 -0800 | [diff] [blame] | 32 | ], |
| 33 | |
Sorin Basca | d107351 | 2023-02-02 20:09:51 +0000 | [diff] [blame] | 34 | // 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 Cross | bbc94b0 | 2020-12-02 11:37:21 -0800 | [diff] [blame] | 38 | jni_libs: ["libconscrypt_openjdk_jni"], |
Dan Willemsen | ef45381 | 2019-01-04 16:08:04 -0800 | [diff] [blame] | 39 | |
| 40 | // The post-build signing tools need signapk.jar (and its shared libraries, |
| 41 | // handled in their own Android.bp files) |
| 42 | dist: { |
Felka Chang | b511e7f | 2020-07-08 14:55:39 +0800 | [diff] [blame] | 43 | tag: ".jar", |
Dan Willemsen | ef45381 | 2019-01-04 16:08:04 -0800 | [diff] [blame] | 44 | targets: ["droidcore"], |
| 45 | }, |
Colin Cross | ad44dd4 | 2017-11-09 15:11:34 -0800 | [diff] [blame] | 46 | } |