• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_binary_host {
21    name: "secure_env",
22    srcs: [
23        "composite_serialization.cpp",
24        "device_tpm.cpp",
25        "encrypted_serializable.cpp",
26        "fragile_tpm_storage.cpp",
27        "gatekeeper_responder.cpp",
28        "hmac_serializable.cpp",
29        "in_process_tpm.cpp",
30        "insecure_fallback_storage.cpp",
31        "json_serializable.cpp",
32        "keymaster_responder.cpp",
33        "primary_key_builder.cpp",
34        "secure_env.cpp",
35        "tpm_attestation_record.cpp",
36        "tpm_auth.cpp",
37        "tpm_commands.cpp",
38        "tpm_encrypt_decrypt.cpp",
39        "tpm_gatekeeper.cpp",
40        "tpm_hmac.cpp",
41        "tpm_key_blob_maker.cpp",
42        "tpm_keymaster_context.cpp",
43        "tpm_keymaster_enforcement.cpp",
44        "tpm_random_source.cpp",
45        "tpm_resource_manager.cpp",
46        "tpm_serialize.cpp",
47    ],
48    shared_libs: [
49        "libbase",
50        "libcuttlefish_fs",
51        "libcuttlefish_security",
52        "libcuttlefish_utils",
53        "libgatekeeper",
54        "libjsoncpp",
55        "libkeymaster_portable",
56        "libkeymaster_messages",
57        "libsoft_attestation_cert",
58        "liblog",
59        "libcrypto",
60        "libcutils",
61        "libpuresoftkeymasterdevice_host",
62        "ms-tpm-20-ref-lib",
63        "tpm2-tss2-esys",
64        "tpm2-tss2-mu",
65        "tpm2-tss2-rc",
66        "tpm2-tss2-tcti",
67    ],
68    static_libs: [
69        "libcuttlefish_host_config",
70        "libgflags",
71        "libscrypt_static",
72    ],
73    defaults: ["cuttlefish_buildhost_only"],
74    cflags: [
75        "-fno-rtti", // Required for libkeymaster_portable
76    ],
77}
78