• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15import("//build_overrides/pigweed.gni")
16
17import("$dir_pw_async2/backend.gni")
18import("$dir_pw_toolchain/traits.gni")
19import("$dir_pw_unit_test/test.gni")
20
21if (pw_toolchain_CXX_STANDARD >= pw_toolchain_STANDARD.CXX20) {
22  pw_test("coro") {
23    enable_if = pw_async2_DISPATCHER_BACKEND != ""
24    deps = [
25      "$dir_pw_allocator:testing",
26      "//pw_async2:coro",
27      "//pw_async2:dispatcher",
28    ]
29    sources = [ "coro.cc" ]
30  }
31}
32
33pw_test_group("examples") {
34  tests = []
35  if (pw_toolchain_CXX_STANDARD >= pw_toolchain_STANDARD.CXX20) {
36    tests += [ ":coro" ]
37  }
38}
39