Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 1 | # 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 Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 15 | import("//build_overrides/build.gni") |
| 16 | import("//build_overrides/pigweed.gni") |
| 17 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 18 | # The location of the build configuration file. |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 19 | buildconfig = "${build_root}/config/BUILDCONFIG.gn" |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 20 | |
| 21 | # CHIP uses angle bracket includes. |
| 22 | check_system_includes = true |
| 23 | |
Michael Spang | 011dd52 | 2020-10-06 21:31:14 -0400 | [diff] [blame] | 24 | script_executable = "python3" |
| 25 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 26 | default_args = { |
| 27 | pw_unit_test_AUTOMATIC_RUNNER = "$dir_pigweed/targets/host/run_test" |
Anthony DiGirolamo | dc85dad | 2022-08-05 13:05:33 -0700 | [diff] [blame] | 28 | |
Arkadiusz Bokowy | 3d9bc88 | 2023-02-14 03:01:17 +0100 | [diff] [blame] | 29 | pw_build_PIP_CONSTRAINTS = [ "//scripts/setup/constraints.txt" ] |
Andrei Litvin | 2b6423d | 2023-06-19 11:13:29 -0400 | [diff] [blame] | 30 | pw_build_PIP_REQUIREMENTS = [ "//scripts/setup/requirements.build.txt" ] |
Anthony DiGirolamo | dc85dad | 2022-08-05 13:05:33 -0700 | [diff] [blame] | 31 | |
Anthony DiGirolamo | dc85dad | 2022-08-05 13:05:33 -0700 | [diff] [blame] | 32 | # GN target to use for the default Python build venv. |
| 33 | pw_build_PYTHON_BUILD_VENV = "//:matter_build_venv" |
Maksymilian Knust | 43159a8 | 2023-10-10 02:26:21 +0200 | [diff] [blame] | 34 | |
| 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 Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 45 | } |