blob: 435e405c299c973ee9084dcf12be32fc866124d9 [file] [log] [blame]
Michael Spangefa630b2020-07-08 22:23:08 -04001# 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
15import("//build_overrides/chip.gni")
Wang Qixiang14bdc242023-08-04 13:04:55 +080016import("${chip_root}/src/app/common_flags.gni")
17import("${chip_root}/src/lib/lib.gni")
Markus Beckereddf2b42021-12-02 08:16:46 +010018import("${chip_root}/src/platform/device.gni")
19import("${chip_root}/src/platform/python.gni")
Michael Spangefa630b2020-07-08 22:23:08 -040020
Andrei Litvin4fa37212023-10-02 11:02:00 -040021source_set("nodatamodel") {
22 sources = [ "EmptyDataModelHandler.cpp" ]
23
24 public_deps = [ "${chip_root}/src/app" ]
25}
26
Michael Spangefa630b2020-07-08 22:23:08 -040027static_library("controller") {
28 output_name = "libChipController"
29
Zang MingJie342ba682022-07-06 16:41:44 +080030 sources = [ "CHIPCluster.h" ]
Michael Spangefa630b2020-07-08 22:23:08 -040031
Wang Qixiang14bdc242023-08-04 13:04:55 +080032 if (chip_controller && chip_build_controller) {
Markus Beckereddf2b42021-12-02 08:16:46 +010033 sources += [
34 "AbstractDnssdDiscoveryController.cpp",
C Freeman798d7d22021-12-10 12:06:36 -050035 "AutoCommissioner.cpp",
36 "AutoCommissioner.h",
Markus Beckereddf2b42021-12-02 08:16:46 +010037 "CHIPCommissionableNodeController.cpp",
38 "CHIPCommissionableNodeController.h",
Markus Beckereddf2b42021-12-02 08:16:46 +010039 "CHIPDeviceControllerFactory.cpp",
40 "CHIPDeviceControllerFactory.h",
41 "CommissioneeDeviceProxy.cpp",
42 "CommissioneeDeviceProxy.h",
chrisdecenzo0c94a802022-01-27 09:05:43 -080043 "CommissionerDiscoveryController.cpp",
44 "CommissionerDiscoveryController.h",
Jerry Johnsc4d81c82022-03-17 15:25:51 -070045 "CommissioningDelegate.cpp",
Markus Beckereddf2b42021-12-02 08:16:46 +010046 "DeviceDiscoveryDelegate.h",
Boris Zbarskyd170a252022-03-31 20:51:58 -040047 "DevicePairingDelegate.h",
Markus Beckereddf2b42021-12-02 08:16:46 +010048 "ExampleOperationalCredentialsIssuer.cpp",
49 "ExampleOperationalCredentialsIssuer.h",
50 "SetUpCodePairer.cpp",
51 "SetUpCodePairer.h",
52 ]
Wang Qixiang14bdc242023-08-04 13:04:55 +080053 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 Beckereddf2b42021-12-02 08:16:46 +010063 }
64
Boris Zbarsky902a8642020-09-25 17:41:22 -040065 cflags = [ "-Wconversion" ]
66
Michael Spangefa630b2020-07-08 22:23:08 -040067 public_deps = [
Song Guoa77a6622021-01-29 13:13:02 +080068 "${chip_root}/src/app",
Jerry Johns75372d82022-03-01 06:32:40 -080069 "${chip_root}/src/app/server",
Michael Spangefa630b2020-07-08 22:23:08 -040070 "${chip_root}/src/lib/core",
Kamil Kasperczykd9e02a02021-10-12 09:19:23 +020071 "${chip_root}/src/lib/dnssd",
Michael Spangefa630b2020-07-08 22:23:08 -040072 "${chip_root}/src/lib/support",
Song Guoa77a6622021-01-29 13:13:02 +080073 "${chip_root}/src/messaging",
Yufeng Wangc22c8992020-09-03 15:34:33 -070074 "${chip_root}/src/platform",
Pankaj Garg362c5f22021-04-14 16:35:15 -070075 "${chip_root}/src/protocols",
Pankaj Garged287532021-02-09 14:38:31 -080076 "${chip_root}/src/setup_payload",
Andrei Litvin42425262023-06-08 18:29:54 -040077 "${chip_root}/src/tracing",
Andrei Litvind3564842023-06-23 12:30:50 -040078 "${chip_root}/src/tracing:macros",
Michael Spangefa630b2020-07-08 22:23:08 -040079 "${chip_root}/src/transport",
80 ]
Song Guoa77a6622021-01-29 13:13:02 +080081
Boris Zbarsky7fe4abc2023-01-20 15:43:30 -050082 deps = [ "${chip_root}/src/lib/address_resolve" ]
Andrei Litvin62165b12021-08-30 12:11:54 -040083
Song Guoa77a6622021-01-29 13:13:02 +080084 defines = []
Michael Spangefa630b2020-07-08 22:23:08 -040085}