2017-11-10 00:11:34 +01:00
|
|
|
//
|
|
|
|
// Copyright (C) 2008 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
// the signapk tool (a .jar application used to sign packages)
|
|
|
|
// ============================================================
|
2021-02-13 06:42:54 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2020-07-08 08:55:39 +02:00
|
|
|
java_binary_host {
|
2017-11-10 00:11:34 +01:00
|
|
|
name: "signapk",
|
|
|
|
srcs: ["src/**/*.java"],
|
|
|
|
manifest: "SignApk.mf",
|
|
|
|
static_libs: [
|
|
|
|
"apksig",
|
2018-07-12 20:47:21 +02:00
|
|
|
"bouncycastle-unbundled",
|
|
|
|
"bouncycastle-bcpkix-unbundled",
|
2019-09-20 16:54:43 +02:00
|
|
|
"conscrypt-unbundled",
|
2017-11-10 00:11:34 +01:00
|
|
|
],
|
|
|
|
|
2020-12-02 20:37:21 +01:00
|
|
|
jni_libs: ["libconscrypt_openjdk_jni"],
|
2019-01-05 01:08:04 +01:00
|
|
|
|
|
|
|
// The post-build signing tools need signapk.jar (and its shared libraries,
|
|
|
|
// handled in their own Android.bp files)
|
|
|
|
dist: {
|
2020-07-08 08:55:39 +02:00
|
|
|
tag: ".jar",
|
2019-01-05 01:08:04 +01:00
|
|
|
targets: ["droidcore"],
|
|
|
|
},
|
2017-11-10 00:11:34 +01:00
|
|
|
}
|