blob: f844fd20e9b87d4c172da53f77d684c7080d4854 [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"
Jakub Latusekb5d13a72024-05-22 15:41:04 +020028 pw_unit_test_CONFIG = "//config/pw_unit_test:define_overrides"
Anthony DiGirolamodc85dad2022-08-05 13:05:33 -070029
Arkadiusz Bokowy3d9bc882023-02-14 03:01:17 +010030 pw_build_PIP_CONSTRAINTS = [ "//scripts/setup/constraints.txt" ]
Andrei Litvin2b6423d2023-06-19 11:13:29 -040031 pw_build_PIP_REQUIREMENTS = [ "//scripts/setup/requirements.build.txt" ]
Anthony DiGirolamodc85dad2022-08-05 13:05:33 -070032
Anthony DiGirolamodc85dad2022-08-05 13:05:33 -070033 # GN target to use for the default Python build venv.
34 pw_build_PYTHON_BUILD_VENV = "//:matter_build_venv"
Maksymilian Knust43159a82023-10-10 02:26:21 +020035
36 # Required for pw_unit_test
37 pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
38 pw_assert_BACKEND = "$dir_pw_assert_log"
39 pw_log_BACKEND = "$dir_pw_log_basic"
40
41 # TODO: Make sure only unit tests link against this
42 pw_build_LINK_DEPS = [
43 "$dir_pw_assert:impl",
44 "$dir_pw_log:impl",
45 ]
Michael Spangefa630b2020-07-08 22:23:08 -040046}