1// Copyright 2024 The Pigweed Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); you may not 4// use this file except in compliance with the License. You may obtain a copy of 5// the License at 6// 7// https://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, WITHOUT 11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12// License for the specific language governing permissions and limitations under 13// the License. 14 15package { 16 default_applicable_licenses: ["external_pigweed_license"], 17} 18 19cc_library_static { 20 name: "pw_spi_linux", 21 cpp_std: "c++20", 22 vendor_available: true, 23 defaults: [ 24 "pw_android_common_backends", 25 ], 26 export_include_dirs: [ 27 "public", 28 ], 29 srcs: [ 30 "spi.cc", 31 ], 32 header_libs: [ 33 "pw_log", 34 ], 35 export_header_lib_headers: [ 36 "pw_log", 37 ], 38 static_libs: [ 39 "pw_bytes", 40 "pw_span", 41 "pw_spi", 42 "pw_status", 43 ], 44 export_static_lib_headers: [ 45 "pw_bytes", 46 "pw_span", 47 "pw_spi", 48 "pw_status", 49 ], 50} 51 52cc_binary { 53 name: "pw_spi_linux_cli", 54 cpp_std: "c++20", 55 vendor_available: true, 56 defaults: [ 57 "pw_android_common_backends", 58 ], 59 srcs: [ 60 "cli.cc", 61 ], 62 header_libs: [ 63 "pw_log", 64 ], 65 static_libs: [ 66 "pw_preprocessor", 67 "pw_result", 68 "pw_spi_linux", 69 "pw_status", 70 ], 71 whole_static_libs: [ 72 // Force logs to stderr rather than logd. 73 // NOTE: Only use this on cc_binary() targets. 74 "pw_log_android_stderr", 75 ], 76} 77