Alex Tsitsiura | f9d9457 | 2022-12-02 11:26:09 +0200 | [diff] [blame] | 1 | # Copyright (c) 2022 Project CHIP Authors |
Alexandr Kolosov | fc7146c | 2021-06-09 20:57:36 +0300 | [diff] [blame] | 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 | |
| 15 | import("//build_overrides/build.gni") |
| 16 | import("//build_overrides/chip.gni") |
| 17 | |
Alex Tsitsiura | f9d9457 | 2022-12-02 11:26:09 +0200 | [diff] [blame] | 18 | import("${chip_root}/build/chip/tests.gni") |
Alexandr Kolosov | fc7146c | 2021-06-09 20:57:36 +0300 | [diff] [blame] | 19 | |
| 20 | assert(current_os == "zephyr") |
| 21 | |
| 22 | declare_args() { |
Alex Tsitsiura | 754a208 | 2022-09-07 17:26:25 +0300 | [diff] [blame] | 23 | chip_build_example_providers = false |
| 24 | } |
| 25 | |
Alexandr Kolosov | fc7146c | 2021-06-09 20:57:36 +0300 | [diff] [blame] | 26 | group("telink") { |
Alex Tsitsiura | f9d9457 | 2022-12-02 11:26:09 +0200 | [diff] [blame] | 27 | deps = [ "${chip_root}/src/lib" ] |
Alexandr Kolosov | fc7146c | 2021-06-09 20:57:36 +0300 | [diff] [blame] | 28 | |
| 29 | if (chip_build_tests) { |
| 30 | deps += [ "${chip_root}/src:tests" ] |
| 31 | } |
Alex Tsitsiura | 754a208 | 2022-09-07 17:26:25 +0300 | [diff] [blame] | 32 | |
| 33 | if (chip_build_example_providers) { |
| 34 | deps += [ "${chip_root}/examples/providers:device_info_provider" ] |
| 35 | } |
Alexandr Kolosov | fc7146c | 2021-06-09 20:57:36 +0300 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | group("default") { |
| 39 | deps = [ ":telink" ] |
| 40 | } |