Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 1 | # 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 | |
| 15 | import("//build_overrides/chip.gni") |
Wang Qixiang | 14bdc24 | 2023-08-04 13:04:55 +0800 | [diff] [blame] | 16 | import("${chip_root}/src/app/common_flags.gni") |
| 17 | import("${chip_root}/src/lib/lib.gni") |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 18 | import("${chip_root}/src/platform/device.gni") |
| 19 | import("${chip_root}/src/platform/python.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 20 | |
Andrei Litvin | 4fa3721 | 2023-10-02 11:02:00 -0400 | [diff] [blame] | 21 | source_set("nodatamodel") { |
| 22 | sources = [ "EmptyDataModelHandler.cpp" ] |
| 23 | |
| 24 | public_deps = [ "${chip_root}/src/app" ] |
| 25 | } |
| 26 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 27 | static_library("controller") { |
| 28 | output_name = "libChipController" |
| 29 | |
Zang MingJie | 342ba68 | 2022-07-06 16:41:44 +0800 | [diff] [blame] | 30 | sources = [ "CHIPCluster.h" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 31 | |
Wang Qixiang | 14bdc24 | 2023-08-04 13:04:55 +0800 | [diff] [blame] | 32 | if (chip_controller && chip_build_controller) { |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 33 | sources += [ |
| 34 | "AbstractDnssdDiscoveryController.cpp", |
C Freeman | 798d7d2 | 2021-12-10 12:06:36 -0500 | [diff] [blame] | 35 | "AutoCommissioner.cpp", |
| 36 | "AutoCommissioner.h", |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 37 | "CHIPCommissionableNodeController.cpp", |
| 38 | "CHIPCommissionableNodeController.h", |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 39 | "CHIPDeviceControllerFactory.cpp", |
| 40 | "CHIPDeviceControllerFactory.h", |
| 41 | "CommissioneeDeviceProxy.cpp", |
| 42 | "CommissioneeDeviceProxy.h", |
chrisdecenzo | 0c94a80 | 2022-01-27 09:05:43 -0800 | [diff] [blame] | 43 | "CommissionerDiscoveryController.cpp", |
| 44 | "CommissionerDiscoveryController.h", |
Jerry Johns | c4d81c8 | 2022-03-17 15:25:51 -0700 | [diff] [blame] | 45 | "CommissioningDelegate.cpp", |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 46 | "DeviceDiscoveryDelegate.h", |
Boris Zbarsky | d170a25 | 2022-03-31 20:51:58 -0400 | [diff] [blame] | 47 | "DevicePairingDelegate.h", |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 48 | "ExampleOperationalCredentialsIssuer.cpp", |
| 49 | "ExampleOperationalCredentialsIssuer.h", |
| 50 | "SetUpCodePairer.cpp", |
| 51 | "SetUpCodePairer.h", |
| 52 | ] |
Wang Qixiang | 14bdc24 | 2023-08-04 13:04:55 +0800 | [diff] [blame] | 53 | if (chip_enable_read_client) { |
| 54 | sources += [ |
| 55 | "CHIPDeviceController.cpp", |
| 56 | "CHIPDeviceController.h", |
| 57 | "CommissioningWindowOpener.cpp", |
| 58 | "CommissioningWindowOpener.h", |
| 59 | "CurrentFabricRemover.cpp", |
| 60 | "CurrentFabricRemover.h", |
| 61 | ] |
| 62 | } |
Markus Becker | eddf2b4 | 2021-12-02 08:16:46 +0100 | [diff] [blame] | 63 | } |
| 64 | |
Boris Zbarsky | 902a864 | 2020-09-25 17:41:22 -0400 | [diff] [blame] | 65 | cflags = [ "-Wconversion" ] |
| 66 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 67 | public_deps = [ |
Song Guo | a77a662 | 2021-01-29 13:13:02 +0800 | [diff] [blame] | 68 | "${chip_root}/src/app", |
Jerry Johns | 75372d8 | 2022-03-01 06:32:40 -0800 | [diff] [blame] | 69 | "${chip_root}/src/app/server", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 70 | "${chip_root}/src/lib/core", |
Kamil Kasperczyk | d9e02a0 | 2021-10-12 09:19:23 +0200 | [diff] [blame] | 71 | "${chip_root}/src/lib/dnssd", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 72 | "${chip_root}/src/lib/support", |
Song Guo | a77a662 | 2021-01-29 13:13:02 +0800 | [diff] [blame] | 73 | "${chip_root}/src/messaging", |
Yufeng Wang | c22c899 | 2020-09-03 15:34:33 -0700 | [diff] [blame] | 74 | "${chip_root}/src/platform", |
Pankaj Garg | 362c5f2 | 2021-04-14 16:35:15 -0700 | [diff] [blame] | 75 | "${chip_root}/src/protocols", |
Pankaj Garg | ed28753 | 2021-02-09 14:38:31 -0800 | [diff] [blame] | 76 | "${chip_root}/src/setup_payload", |
Andrei Litvin | 4242526 | 2023-06-08 18:29:54 -0400 | [diff] [blame] | 77 | "${chip_root}/src/tracing", |
Andrei Litvin | d356484 | 2023-06-23 12:30:50 -0400 | [diff] [blame] | 78 | "${chip_root}/src/tracing:macros", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 79 | "${chip_root}/src/transport", |
| 80 | ] |
Song Guo | a77a662 | 2021-01-29 13:13:02 +0800 | [diff] [blame] | 81 | |
Boris Zbarsky | 7fe4abc | 2023-01-20 15:43:30 -0500 | [diff] [blame] | 82 | deps = [ "${chip_root}/src/lib/address_resolve" ] |
Andrei Litvin | 62165b1 | 2021-08-30 12:11:54 -0400 | [diff] [blame] | 83 | |
Song Guo | a77a662 | 2021-01-29 13:13:02 +0800 | [diff] [blame] | 84 | defines = [] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 85 | } |