// Copyright (C) 2019 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.

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    //   SPDX-license-identifier-MIT
    //   SPDX-license-identifier-Unicode-DFS
    default_applicable_licenses: ["frameworks_base_license"],
}

filegroup {
    name: "ApkVerityTestKeyPem",
    srcs: ["ApkVerityTestKey.pem"],
}

filegroup {
    name: "ApkVerityTestCertPem",
    srcs: ["ApkVerityTestCert.pem"],
}

filegroup {
    name: "ApkVerityTestCertDer",
    srcs: ["ApkVerityTestCert.der"],
}

filegroup {
    name: "ApkVerityTestAppDm",
    srcs: ["ApkVerityTestApp.dm"],
}

filegroup {
    name: "ApkVerityTestAppSplitDm",
    srcs: ["ApkVerityTestAppSplit.dm"],
}

genrule_defaults {
    name: "apk_verity_sig_gen_default",
    tools: ["fsverity"],
    tool_files: [":ApkVerityTestKeyPem", ":ApkVerityTestCertPem"],
    cmd: "$(location fsverity) sign $(in) $(out) " +
        "--key=$(location :ApkVerityTestKeyPem) " +
        "--cert=$(location :ApkVerityTestCertPem) " +
        "> /dev/null",
}

genrule {
    name: "ApkVerityTestAppFsvSig",
    defaults: ["apk_verity_sig_gen_default"],
    srcs: [":ApkVerityTestApp"],
    out: ["ApkVerityTestApp.apk.fsv_sig"],
}

genrule {
    name: "ApkVerityTestAppDmFsvSig",
    defaults: ["apk_verity_sig_gen_default"],
    srcs: [":ApkVerityTestAppDm"],
    out: ["ApkVerityTestApp.dm.fsv_sig"],
}

genrule {
    name: "ApkVerityTestAppSplitFsvSig",
    defaults: ["apk_verity_sig_gen_default"],
    srcs: [":ApkVerityTestAppSplit"],
    out: ["ApkVerityTestAppSplit.apk.fsv_sig"],
}

genrule {
    name: "ApkVerityTestAppSplitDmFsvSig",
    defaults: ["apk_verity_sig_gen_default"],
    srcs: [":ApkVerityTestAppSplitDm"],
    out: ["ApkVerityTestAppSplit.dm.fsv_sig"],
}
