1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_defaults { 20 name: "cvd_update_security_algorithm_defaults", 21 shared_libs: [ 22 "libbase", 23 "libcuttlefish_fs", 24 "libcuttlefish_utils", 25 "libjsoncpp", 26 "liblog", 27 ], 28 defaults: ["cuttlefish_buildhost_only"], 29} 30 31cc_library { 32 name: "libcvd_update_security_algorithm_builder", 33 srcs: [ 34 "update_security_algorithm_command_builder.cc", 35 ], 36 defaults: ["cvd_update_security_algorithm_defaults"], 37} 38 39cc_binary { 40 name: "cvd_update_security_algorithm", 41 static_libs: [ 42 "libcuttlefish_host_config", 43 "libgflags", 44 ], 45 srcs: [ 46 "main.cc", 47 "update_security_algorithm_command_builder.cc", 48 ], 49 defaults: ["cvd_update_security_algorithm_defaults"], 50} 51 52cc_test_host { 53 name: "cvd_update_security_algorithm_test", 54 srcs: [ 55 "unittest/update_security_algorithm_command_builder_test.cc", 56 ], 57 shared_libs: [ 58 "libcvd_update_security_algorithm_builder", 59 ], 60 defaults: [ 61 "cuttlefish_host", 62 "cvd_update_security_algorithm_defaults", 63 ], 64} 65