|
14 | 14 |
|
15 | 15 | import("//build_overrides/chip.gni")
|
16 | 16 | import("${chip_root}/build/chip/buildconfig_header.gni")
|
| 17 | +import("${chip_root}/build/chip/tests.gni") |
17 | 18 | import("${chip_root}/src/app/icd/icd.gni")
|
18 | 19 |
|
19 | 20 | # ICD Server sources and configurations
|
@@ -70,20 +71,22 @@ source_set("notifier") {
|
70 | 71 | ]
|
71 | 72 | }
|
72 | 73 |
|
73 |
| -source_set("check-in-back-off") { |
74 |
| - sources = [ "ICDCheckInBackOffStrategy.h" ] |
| 74 | +if (chip_enable_icd_checkin || chip_build_tests) { |
| 75 | + source_set("check-in-back-off") { |
| 76 | + sources = [ "ICDCheckInBackOffStrategy.h" ] |
75 | 77 |
|
76 |
| - public_deps = [ |
77 |
| - ":monitoring-table", |
78 |
| - "${chip_root}/src/lib/core", |
79 |
| - "${chip_root}/src/lib/support", |
80 |
| - ] |
81 |
| -} |
| 78 | + public_deps = [ |
| 79 | + ":monitoring-table", |
| 80 | + "${chip_root}/src/lib/core", |
| 81 | + "${chip_root}/src/lib/support", |
| 82 | + ] |
| 83 | + } |
82 | 84 |
|
83 |
| -source_set("default-check-in-back-off") { |
84 |
| - sources = [ "DefaultICDCheckInBackOffStrategy.h" ] |
| 85 | + source_set("default-check-in-back-off") { |
| 86 | + sources = [ "DefaultICDCheckInBackOffStrategy.h" ] |
85 | 87 |
|
86 |
| - public_deps = [ ":check-in-back-off" ] |
| 88 | + public_deps = [ ":check-in-back-off" ] |
| 89 | + } |
87 | 90 | }
|
88 | 91 |
|
89 | 92 | # ICD Manager source-set is broken out of the main source-set to enable unit tests
|
@@ -118,34 +121,38 @@ source_set("manager") {
|
118 | 121 | }
|
119 | 122 | }
|
120 | 123 |
|
121 |
| -source_set("sender") { |
122 |
| - sources = [ |
123 |
| - "ICDCheckInSender.cpp", |
124 |
| - "ICDCheckInSender.h", |
125 |
| - ] |
| 124 | +if (chip_enable_icd_checkin) { |
| 125 | + source_set("sender") { |
| 126 | + sources = [ |
| 127 | + "ICDCheckInSender.cpp", |
| 128 | + "ICDCheckInSender.h", |
| 129 | + ] |
126 | 130 |
|
127 |
| - public_deps = [ |
128 |
| - ":configuration-data", |
129 |
| - ":monitoring-table", |
130 |
| - ":notifier", |
131 |
| - "${chip_root}/src/credentials:credentials", |
132 |
| - "${chip_root}/src/lib/address_resolve:address_resolve", |
133 |
| - "${chip_root}/src/protocols/secure_channel", |
134 |
| - ] |
| 131 | + public_deps = [ |
| 132 | + ":configuration-data", |
| 133 | + ":monitoring-table", |
| 134 | + ":notifier", |
| 135 | + "${chip_root}/src/credentials:credentials", |
| 136 | + "${chip_root}/src/lib/address_resolve:address_resolve", |
| 137 | + "${chip_root}/src/protocols/secure_channel", |
| 138 | + ] |
| 139 | + } |
135 | 140 | }
|
136 | 141 |
|
137 | 142 | # ICDMonitoringTable source-set is broken out of the main source-set to enable unit tests
|
138 | 143 | # All sources and configurations used by the ICDMonitoringTable need to go in this source-set
|
139 |
| -source_set("monitoring-table") { |
140 |
| - sources = [ |
141 |
| - "ICDMonitoringTable.cpp", |
142 |
| - "ICDMonitoringTable.h", |
143 |
| - ] |
| 144 | +if (chip_enable_icd_checkin || chip_build_tests) { |
| 145 | + source_set("monitoring-table") { |
| 146 | + sources = [ |
| 147 | + "ICDMonitoringTable.cpp", |
| 148 | + "ICDMonitoringTable.h", |
| 149 | + ] |
144 | 150 |
|
145 |
| - public_deps = [ |
146 |
| - "${chip_root}/src/lib/core", |
147 |
| - "${chip_root}/src/platform:platform", |
148 |
| - ] |
| 151 | + public_deps = [ |
| 152 | + "${chip_root}/src/lib/core", |
| 153 | + "${chip_root}/src/platform:platform", |
| 154 | + ] |
| 155 | + } |
149 | 156 | }
|
150 | 157 |
|
151 | 158 | source_set("configuration-data") {
|
|
0 commit comments