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 17cc_library_static { 18 name: "librebootescrowdefaultimpl", 19 vendor: true, 20 shared_libs: [ 21 "libbase", 22 "libbinder_ndk", 23 "android.hardware.rebootescrow-ndk_platform", 24 ], 25 export_include_dirs: ["include"], 26 srcs: [ 27 "RebootEscrow.cpp", 28 ], 29 visibility: [ 30 ":__subpackages__", 31 ], 32} 33 34cc_binary { 35 name: "android.hardware.rebootescrow-service.default", 36 init_rc: ["rebootescrow-default.rc"], 37 relative_install_path: "hw", 38 vintf_fragments: ["rebootescrow-default.xml"], 39 vendor: true, 40 srcs: [ 41 "service.cpp", 42 ], 43 cflags: [ 44 "-Wall", 45 "-Werror", 46 ], 47 shared_libs: [ 48 "libbase", 49 "libbinder_ndk", 50 "android.hardware.rebootescrow-ndk_platform", 51 ], 52 static_libs: [ 53 "libhadamardutils", 54 "librebootescrowdefaultimpl", 55 ], 56} 57 58cc_library_static { 59 name: "libhadamardutils", 60 vendor_available: true, 61 host_supported: true, 62 shared_libs: [ 63 "libbase", 64 ], 65 srcs: [ 66 "HadamardUtils.cpp", 67 ], 68 visibility: [ 69 ":__subpackages__", 70 ], 71} 72 73cc_test { 74 name: "HadamardUtilsTest", 75 host_supported: true, 76 srcs: [ 77 "HadamardUtilsTest.cpp", 78 ], 79 static_libs: [ 80 "libhadamardutils", 81 "libgtest_prod", 82 ], 83 shared_libs: [ 84 "liblog", 85 "libbase", 86 ], 87 test_suites: ["device-tests"], 88} 89