blob: b9586c7fce69ea16c4b5d9c8162a33f80efbfd0b [file] [log] [blame]
Michael Spangefa630b2020-07-08 22:23:08 -04001# Copyright (c) 2020 Project CHIP Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://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,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Łukasz Duda4e1faf22021-01-27 17:47:25 +010015import("//build_overrides/build.gni")
16import("//build_overrides/pigweed.gni")
17
Michael Spangefa630b2020-07-08 22:23:08 -040018# The location of the build configuration file.
Łukasz Duda4e1faf22021-01-27 17:47:25 +010019buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Michael Spangefa630b2020-07-08 22:23:08 -040020
21# CHIP uses angle bracket includes.
22check_system_includes = true
23
Michael Spang011dd522020-10-06 21:31:14 -040024script_executable = "python3"
25
Michael Spangefa630b2020-07-08 22:23:08 -040026default_args = {
27 pw_unit_test_AUTOMATIC_RUNNER = "$dir_pigweed/targets/host/run_test"
Anthony DiGirolamodc85dad2022-08-05 13:05:33 -070028
Arkadiusz Bokowy3d9bc882023-02-14 03:01:17 +010029 pw_build_PIP_CONSTRAINTS = [ "//scripts/setup/constraints.txt" ]
Andrei Litvin2b6423d2023-06-19 11:13:29 -040030 pw_build_PIP_REQUIREMENTS = [ "//scripts/setup/requirements.build.txt" ]
Anthony DiGirolamodc85dad2022-08-05 13:05:33 -070031
Anthony DiGirolamodc85dad2022-08-05 13:05:33 -070032 # GN target to use for the default Python build venv.
33 pw_build_PYTHON_BUILD_VENV = "//:matter_build_venv"
Maksymilian Knust43159a82023-10-10 02:26:21 +020034
35 # Required for pw_unit_test
36 pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
37 pw_assert_BACKEND = "$dir_pw_assert_log"
38 pw_log_BACKEND = "$dir_pw_log_basic"
39
40 # TODO: Make sure only unit tests link against this
41 pw_build_LINK_DEPS = [
42 "$dir_pw_assert:impl",
43 "$dir_pw_log:impl",
44 ]
Michael Spangefa630b2020-07-08 22:23:08 -040045}