1# Copyright 2020 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 17declare_args() { 18 # Backend for the pw_thread module's pw::Thread::id. 19 pw_thread_ID_BACKEND = "" 20 21 # Backend for the pw_thread module's pw::thread::sleep_{for,until}. 22 pw_thread_SLEEP_BACKEND = "" 23 24 # Backend for the pw_thread module's pw::Thread to create threads. 25 pw_thread_THREAD_BACKEND = "" 26 27 # Backend for pw::Thread's generic thread creation functionality. Must 28 # set to "$dir_pw_thread:generic_thread_creation_unsupported" if 29 # unimplemented. 30 pw_thread_THREAD_CREATION_BACKEND = 31 "$dir_pw_thread:generic_thread_creation_unsupported" 32 33 # Backend for the pw_thread module's pw::thread::yield. 34 pw_thread_YIELD_BACKEND = "" 35 36 # Backend for the pw_thread module's pw::thread::test_thread_context. 37 pw_thread_TEST_THREAD_CONTEXT_BACKEND = "" 38 39 # Whether the GN asserts should be silenced in ensuring that a compatible 40 # backend for pw_chrono_SYSTEM_CLOCK_BACKEND is chosen. 41 # Set to true to disable the asserts. 42 pw_thread_OVERRIDE_SYSTEM_CLOCK_BACKEND_CHECK = false 43 44 # Backend for the pw_thread module's pw::thread::thread_iteration. 45 pw_thread_THREAD_ITERATION_BACKEND = "" 46} 47