Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 1 | # Copyright (c) 2021 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 | |
| 15 | import("//build_overrides/build.gni") |
| 16 | import("//build_overrides/chip.gni") |
| 17 | |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 18 | declare_args() { |
| 19 | chip_tests_zap_config = "none" |
| 20 | } |
| 21 | |
Vivien Nicolas | 1093d25 | 2021-11-03 16:48:59 +0100 | [diff] [blame] | 22 | config("includes") { |
| 23 | include_dirs = [ |
| 24 | ".", |
Vivien Nicolas | 621bbde | 2023-01-26 16:13:50 +0100 | [diff] [blame] | 25 | "${chip_root}/examples/common", |
Vivien Nicolas | 1093d25 | 2021-11-03 16:48:59 +0100 | [diff] [blame] | 26 | "include", |
| 27 | ] |
| 28 | } |
| 29 | |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 30 | executable("chip-${chip_tests_zap_config}") { |
krypton36 | f97e2c5 | 2022-03-22 15:41:54 -0700 | [diff] [blame] | 31 | sources = [ |
Vivien Nicolas | d7f91d8 | 2022-04-11 20:56:31 +0200 | [diff] [blame] | 32 | "AppOptions.cpp", |
Vivien Nicolas | 621bbde | 2023-01-26 16:13:50 +0100 | [diff] [blame] | 33 | "InteractiveServer.cpp", |
krypton36 | f97e2c5 | 2022-03-22 15:41:54 -0700 | [diff] [blame] | 34 | "main.cpp", |
krypton36 | f97e2c5 | 2022-03-22 15:41:54 -0700 | [diff] [blame] | 35 | ] |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 36 | |
| 37 | deps = [ |
Vivien Nicolas | 621bbde | 2023-01-26 16:13:50 +0100 | [diff] [blame] | 38 | "${chip_root}/examples/common/websocket-server", |
Vivien Nicolas | 0114ad0 | 2023-02-28 16:25:49 +0100 | [diff] [blame] | 39 | "${chip_root}/examples/placeholder/linux/apps/${chip_tests_zap_config}:${chip_tests_zap_config}", |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 40 | "${chip_root}/examples/platform/linux:app-main", |
Vivien Nicolas | d7f91d8 | 2022-04-11 20:56:31 +0200 | [diff] [blame] | 41 | "${chip_root}/src/app/tests/suites/credentials:dac_provider", |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 42 | "${chip_root}/src/lib", |
Jakub Latusek | 4676d27 | 2024-01-13 17:31:27 +0100 | [diff] [blame] | 43 | "${chip_root}/src/lib/support:test_utils", |
Boris Zbarsky | d1b59df | 2023-10-13 03:20:49 -0400 | [diff] [blame] | 44 | "${chip_root}/src/platform/logging:headers", |
Vivien Nicolas | 621bbde | 2023-01-26 16:13:50 +0100 | [diff] [blame] | 45 | "${chip_root}/third_party/jsoncpp", |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 46 | ] |
| 47 | |
Vivien Nicolas | 621bbde | 2023-01-26 16:13:50 +0100 | [diff] [blame] | 48 | public_configs = [ ":includes" ] |
Vivien Nicolas | 1093d25 | 2021-11-03 16:48:59 +0100 | [diff] [blame] | 49 | |
Vivien Nicolas | 237df82 | 2021-10-13 18:42:08 +0200 | [diff] [blame] | 50 | cflags = [ "-Wconversion" ] |
| 51 | |
| 52 | output_dir = root_out_dir |
| 53 | } |
| 54 | |
| 55 | group("linux") { |
| 56 | deps = [ ":chip-${chip_tests_zap_config}" ] |
| 57 | } |
Andrei Litvin | 5c8ae45 | 2023-02-06 05:45:31 -0500 | [diff] [blame] | 58 | |
| 59 | group("default") { |
| 60 | deps = [ ":linux" ] |
| 61 | } |