| # Copyright 2023 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. |
| |
| import("//build/cpp/sdk_source_set.gni") |
| |
| sdk_source_set("cpp") { |
| category = "partner" |
| sdk_name = "async_patterns_cpp" |
| stable = true |
| include_base = "//sdk" |
| |
| sources = [ |
| "callback.h", |
| "dispatcher_bound.h", |
| "function.h", |
| "internal/dispatcher_bound_storage.cc", |
| "internal/dispatcher_bound_storage.h", |
| "internal/receiver_base.cc", |
| "internal/receiver_base.h", |
| "internal/sendable.h", |
| "internal/tag.h", |
| "internal/task_queue.cc", |
| "internal/task_queue.h", |
| "pending_call.h", |
| "receiver.h", |
| "sendable.h", |
| "task_scope.cc", |
| "task_scope.h", |
| ] |
| |
| public_deps = [ |
| "//sdk/lib/async", |
| "//sdk/lib/async:async-cpp", |
| "//sdk/lib/fit", |
| "//sdk/lib/fit-promise", |
| "//sdk/lib/stdcompat", |
| "//zircon/system/ulib/sync:sync-cpp", |
| ] |
| |
| public_configs = [ "//sdk/config" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "tests" ] |
| } |