blob: fa9c1590857af6539652e83e160e644304ea1b75 [file] [log] [blame]
# Copyright 2024 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
import("//build_overrides/pigweed.gni")
import("$dir_pw_async2/backend.gni")
import("$dir_pw_toolchain/traits.gni")
import("$dir_pw_unit_test/test.gni")
if (pw_toolchain_CXX_STANDARD >= pw_toolchain_STANDARD.CXX20) {
pw_test("coro") {
enable_if = pw_async2_DISPATCHER_BACKEND != ""
deps = [
"$dir_pw_allocator:testing",
"//pw_async2:coro",
"//pw_async2:dispatcher",
]
sources = [ "coro.cc" ]
}
}
pw_test_group("examples") {
tests = []
if (pw_toolchain_CXX_STANDARD >= pw_toolchain_STANDARD.CXX20) {
tests += [ ":coro" ]
}
}