blob: 089d223c0cd52d54c91224f86ec48c6695436d27 [file] [log] [blame]
Vivien Nicolas237df822021-10-13 18:42:08 +02001# 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
15import("//build_overrides/build.gni")
16import("//build_overrides/chip.gni")
17
Vivien Nicolas237df822021-10-13 18:42:08 +020018declare_args() {
19 chip_tests_zap_config = "none"
20}
21
Vivien Nicolas1093d252021-11-03 16:48:59 +010022config("includes") {
23 include_dirs = [
24 ".",
Vivien Nicolas621bbde2023-01-26 16:13:50 +010025 "${chip_root}/examples/common",
Vivien Nicolas1093d252021-11-03 16:48:59 +010026 "include",
27 ]
28}
29
Vivien Nicolas237df822021-10-13 18:42:08 +020030executable("chip-${chip_tests_zap_config}") {
krypton36f97e2c52022-03-22 15:41:54 -070031 sources = [
Vivien Nicolasd7f91d82022-04-11 20:56:31 +020032 "AppOptions.cpp",
Vivien Nicolas621bbde2023-01-26 16:13:50 +010033 "InteractiveServer.cpp",
krypton36f97e2c52022-03-22 15:41:54 -070034 "main.cpp",
krypton36f97e2c52022-03-22 15:41:54 -070035 ]
Vivien Nicolas237df822021-10-13 18:42:08 +020036
37 deps = [
Vivien Nicolas621bbde2023-01-26 16:13:50 +010038 "${chip_root}/examples/common/websocket-server",
Vivien Nicolas0114ad02023-02-28 16:25:49 +010039 "${chip_root}/examples/placeholder/linux/apps/${chip_tests_zap_config}:${chip_tests_zap_config}",
Vivien Nicolas237df822021-10-13 18:42:08 +020040 "${chip_root}/examples/platform/linux:app-main",
Vivien Nicolasd7f91d82022-04-11 20:56:31 +020041 "${chip_root}/src/app/tests/suites/credentials:dac_provider",
Vivien Nicolas237df822021-10-13 18:42:08 +020042 "${chip_root}/src/lib",
Jakub Latusek4676d272024-01-13 17:31:27 +010043 "${chip_root}/src/lib/support:test_utils",
Boris Zbarskyd1b59df2023-10-13 03:20:49 -040044 "${chip_root}/src/platform/logging:headers",
Vivien Nicolas621bbde2023-01-26 16:13:50 +010045 "${chip_root}/third_party/jsoncpp",
Vivien Nicolas237df822021-10-13 18:42:08 +020046 ]
47
Vivien Nicolas621bbde2023-01-26 16:13:50 +010048 public_configs = [ ":includes" ]
Vivien Nicolas1093d252021-11-03 16:48:59 +010049
Vivien Nicolas237df822021-10-13 18:42:08 +020050 cflags = [ "-Wconversion" ]
51
52 output_dir = root_out_dir
53}
54
55group("linux") {
56 deps = [ ":chip-${chip_tests_zap_config}" ]
57}
Andrei Litvin5c8ae452023-02-06 05:45:31 -050058
59group("default") {
60 deps = [ ":linux" ]
61}