1// 2// Copyright (C) 2019 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 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "hardware_interfaces_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["hardware_interfaces_license"], 24} 25 26cc_library_static { 27 name: "librebootescrowdefaultimpl", 28 vendor: true, 29 shared_libs: [ 30 "libbase", 31 "libbinder_ndk", 32 "android.hardware.rebootescrow-V1-ndk_platform", 33 ], 34 export_include_dirs: ["include"], 35 srcs: [ 36 "RebootEscrow.cpp", 37 ], 38 visibility: [ 39 ":__subpackages__", 40 ], 41} 42 43cc_binary { 44 name: "android.hardware.rebootescrow-service.default", 45 init_rc: ["rebootescrow-default.rc"], 46 relative_install_path: "hw", 47 vintf_fragments: ["rebootescrow-default.xml"], 48 vendor: true, 49 srcs: [ 50 "service.cpp", 51 ], 52 cflags: [ 53 "-Wall", 54 "-Werror", 55 ], 56 shared_libs: [ 57 "libbase", 58 "libbinder_ndk", 59 "android.hardware.rebootescrow-V1-ndk_platform", 60 ], 61 static_libs: [ 62 "libhadamardutils", 63 "librebootescrowdefaultimpl", 64 ], 65} 66 67cc_library_static { 68 name: "libhadamardutils", 69 vendor_available: true, 70 host_supported: true, 71 shared_libs: [ 72 "libbase", 73 ], 74 srcs: [ 75 "HadamardUtils.cpp", 76 ], 77 visibility: [ 78 ":__subpackages__", 79 ], 80} 81 82cc_test { 83 name: "HadamardUtilsTest", 84 host_supported: true, 85 srcs: [ 86 "HadamardUtilsTest.cpp", 87 ], 88 static_libs: [ 89 "libhadamardutils", 90 ], 91 header_libs: [ 92 "libgtest_prod_headers", 93 ], 94 shared_libs: [ 95 "liblog", 96 "libbase", 97 ], 98 test_suites: ["device-tests"], 99} 100