blob: 784c4ceab2563bb78d67b47977fd3f5489c00689 [file] [log] [blame]
Alex Tsitsiuraf9d94572022-12-02 11:26:09 +02001# Copyright (c) 2022 Project CHIP Authors
Alexandr Kolosovfc7146c2021-06-09 20:57:36 +03002#
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
15import("//build_overrides/build.gni")
16import("//build_overrides/chip.gni")
17
Alex Tsitsiuraf9d94572022-12-02 11:26:09 +020018import("${chip_root}/build/chip/tests.gni")
Alexandr Kolosovfc7146c2021-06-09 20:57:36 +030019
20assert(current_os == "zephyr")
21
22declare_args() {
Alex Tsitsiura754a2082022-09-07 17:26:25 +030023 chip_build_example_providers = false
24}
25
Alexandr Kolosovfc7146c2021-06-09 20:57:36 +030026group("telink") {
Alex Tsitsiuraf9d94572022-12-02 11:26:09 +020027 deps = [ "${chip_root}/src/lib" ]
Alexandr Kolosovfc7146c2021-06-09 20:57:36 +030028
29 if (chip_build_tests) {
30 deps += [ "${chip_root}/src:tests" ]
31 }
Alex Tsitsiura754a2082022-09-07 17:26:25 +030032
33 if (chip_build_example_providers) {
34 deps += [ "${chip_root}/examples/providers:device_info_provider" ]
35 }
Alexandr Kolosovfc7146c2021-06-09 20:57:36 +030036}
37
38group("default") {
39 deps = [ ":telink" ]
40}