| # Copyright (c) 2021 Project CHIP 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 |
| # |
| # http://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. |
| |
| # add this gni as import in your build args to use pigweed in the example |
| # 'import("//with_pw_rpc.gni")' |
| |
| import("//build_overrides/chip.gni") |
| |
| import("${chip_root}/config/standalone/args.gni") |
| |
| import("//build_overrides/pigweed.gni") |
| |
| pw_log_BACKEND = "$dir_pw_log_basic" |
| pw_assert_BACKEND = "$dir_pw_assert_log:check_backend" |
| pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio" |
| pw_trace_BACKEND = "$dir_pw_trace_tokenized" |
| pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main" |
| pw_rpc_system_server_BACKEND = "${chip_root}/config/linux/lib/pw_rpc:pw_rpc" |
| dir_pw_third_party_nanopb = "${chip_root}/third_party/nanopb/repo" |
| pw_chrono_SYSTEM_CLOCK_BACKEND = "$dir_pw_chrono_stl:system_clock" |
| pw_sync_MUTEX_BACKEND = "$dir_pw_sync_stl:mutex_backend" |
| pw_thread_YIELD_BACKEND = "$dir_pw_thread_stl:yield" |
| pw_thread_SLEEP_BACKEND = "$dir_pw_thread_stl:sleep" |
| |
| pw_build_LINK_DEPS = [ |
| "$dir_pw_assert:impl", |
| "$dir_pw_log:impl", |
| ] |
| |
| chip_enable_pw_rpc = true |
| chip_use_pw_logging = true |