|  | # Copyright 2017 The Fuchsia Authors. All rights reserved. | 
|  | # Use of this source code is governed by a BSD-style license that can be | 
|  | # found in the LICENSE file. | 
|  |  | 
|  | source_set("common") { | 
|  | sources = [ | 
|  | "advertising_data.cc", | 
|  | "advertising_data.h", | 
|  | "byte_buffer.cc", | 
|  | "byte_buffer.h", | 
|  | "device_address.cc", | 
|  | "device_address.h", | 
|  | "device_class.cc", | 
|  | "device_class.h", | 
|  | "identifier.cc", | 
|  | "identifier.h", | 
|  | "inspectable.h", | 
|  | "linked_list.h", | 
|  | "log.cc", | 
|  | "log.h", | 
|  | "manufacturer_names.cc", | 
|  | "manufacturer_names.h", | 
|  | "packet_view.h", | 
|  | "random.h", | 
|  | "run_or_post.cc", | 
|  | "run_or_post.h", | 
|  | "run_task_sync.cc", | 
|  | "run_task_sync.h", | 
|  | "slab_allocator.cc", | 
|  | "slab_allocator.h", | 
|  | "slab_allocator_traits.h", | 
|  | "slab_buffer.h", | 
|  | "status.cc", | 
|  | "status.h", | 
|  | "supplement_data.cc", | 
|  | "supplement_data.h", | 
|  | "task_domain.h", | 
|  | "test_helpers.h", | 
|  | "uint128.h", | 
|  | "uint256.h", | 
|  | "uuid.cc", | 
|  | "uuid.h", | 
|  | ] | 
|  |  | 
|  | public_deps = [ | 
|  | "//sdk/lib/sys/inspect/cpp", | 
|  | "//src/devices/lib/driver", | 
|  | "//src/lib/ddk", | 
|  | "//src/lib/fxl", | 
|  | "//zircon/public/lib/async-cpp", | 
|  | "//zircon/public/lib/fbl", | 
|  | "//zircon/public/lib/fit", | 
|  | "//zircon/public/lib/zx", | 
|  | "//zircon/system/ulib/async-default", | 
|  | ] | 
|  |  | 
|  | # TODO(fxbug.dev/46637): UBSan has found an instance of undefined behavior in this target. | 
|  | # Disable UBSan for this target temporarily until it is migrated into CI/CQ. | 
|  | # Add this to public_configs because we detected a reference binding to a | 
|  | # misaligned address in byte_buffer.h. | 
|  | public_configs = [ "//build/config:temporarily_disable_ubsan_do_not_use" ] | 
|  |  | 
|  | # TODO(fxbug.dev/58162): delete the below and fix compiler warnings | 
|  | configs += [ "//build/config:Wno-conversion" ] | 
|  | } | 
|  |  | 
|  | source_set("tests") { | 
|  | testonly = true | 
|  |  | 
|  | sources = [ | 
|  | "advertising_data_unittest.cc", | 
|  | "byte_buffer_unittest.cc", | 
|  | "device_address_unittest.cc", | 
|  | "device_class_unittest.cc", | 
|  | "identifier_unittest.cc", | 
|  | "inspectable_unittest.cc", | 
|  | "log_unittest.cc", | 
|  | "manufacturer_names_unittest.cc", | 
|  | "packet_view_unittest.cc", | 
|  | "run_or_post_unittest.cc", | 
|  | "run_task_sync_unittest.cc", | 
|  | "slab_allocator_traits_unittest.cc", | 
|  | "slab_allocator_unittest.cc", | 
|  | "status_unittest.cc", | 
|  | "supplement_data_unittest.cc", | 
|  | "task_domain_unittest.cc", | 
|  | "uuid_unittest.cc", | 
|  | ] | 
|  |  | 
|  | deps = [ | 
|  | ":common", | 
|  | "//garnet/public/lib/gtest", | 
|  | "//sdk/lib/inspect/testing/cpp", | 
|  | "//third_party/googletest:gtest", | 
|  | ] | 
|  | } |