1# Copyright 2023 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 15# Note, this file is not copybara'd from upstream Fuchsia. 16 17import("//build_overrides/pigweed.gni") 18import("$dir_pigweed/third_party/emboss/emboss.gni") 19import("$dir_pw_assert/backend.gni") 20import("$dir_pw_async/backend.gni") 21import("$dir_pw_bluetooth_sapphire/sapphire.gni") 22import("$dir_pw_function/function.gni") 23import("$dir_pw_fuzzer/fuzzer.gni") 24import("$dir_pw_unit_test/test.gni") 25 26# LINT.IfChange(copts) 27# Common C++ flags used in bt-host to ensure it builds in Pigweed and downstreams. 28# Note Fuchsia upstream has its own version of copts since this file is not 29# copybara'd. 30config("copts") { 31 cflags_cc = [ 32 # TODO: https://fxbug.dev/345799180 - Remove once code doesn't have unused parameters. 33 "-Wno-unused-parameter", 34 ] 35} 36 37# LINT.ThenChange(variables.bzl:copts) 38 39group("host") { 40 public_deps = [ 41 "att", 42 "common", 43 "gap", 44 "gatt", 45 "hci", 46 "hci-spec", 47 "iso", 48 "l2cap", 49 "sco", 50 "sdp", 51 "sm", 52 "transport", 53 ] 54} 55 56pw_test_group("tests") { 57 enable_if = pw_bluetooth_sapphire_ENABLED 58 59 tests = [ 60 "att:tests", 61 "common:tests", 62 "gap:tests", 63 "gatt:tests", 64 "hci:tests", 65 "hci-spec:tests", 66 "iso:tests", 67 "l2cap:tests", 68 "sco:tests", 69 "sdp:tests", 70 "sm:tests", 71 "testing:tests", 72 "transport:tests", 73 ] 74} 75 76pw_fuzzer_group("fuzzers") { 77 fuzzers = [ 78 "common:advertising_data_fuzzer", 79 "gap:peer_cache_fuzzer", 80 "l2cap:basic_mode_rx_engine_fuzzer", 81 "l2cap:bredr_dynamic_channel_registry_fuzzer", 82 "l2cap:channel_configuration_fuzzer", 83 "l2cap:common_handler_fuzzer", 84 "l2cap:enhanced_retransmission_mode_engines_fuzzer", 85 "l2cap:l2cap_fuzzer", 86 "sdp:data_element_fuzzer", 87 "sdp:pdu_fuzzer", 88 "sm:valid_packet_reader_fuzzer", 89 ] 90} 91