|
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
|
@@ -126,26 +129,31 @@ source_set("sender") {
|
126 | 129 |
|
127 | 130 | public_deps = [
|
128 | 131 | ":configuration-data",
|
129 |
| - ":monitoring-table", |
130 | 132 | ":notifier",
|
131 | 133 | "${chip_root}/src/credentials:credentials",
|
132 | 134 | "${chip_root}/src/lib/address_resolve:address_resolve",
|
133 | 135 | "${chip_root}/src/protocols/secure_channel",
|
134 | 136 | ]
|
| 137 | + |
| 138 | + if (chip_enable_icd_checkin) { |
| 139 | + public_deps += [ ":monitoring-table" ] |
| 140 | + } |
135 | 141 | }
|
136 | 142 |
|
137 | 143 | # ICDMonitoringTable source-set is broken out of the main source-set to enable unit tests
|
138 | 144 | # 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 |
| - ] |
| 145 | +if (chip_enable_icd_checkin || chip_build_tests) { |
| 146 | + source_set("monitoring-table") { |
| 147 | + sources = [ |
| 148 | + "ICDMonitoringTable.cpp", |
| 149 | + "ICDMonitoringTable.h", |
| 150 | + ] |
144 | 151 |
|
145 |
| - public_deps = [ |
146 |
| - "${chip_root}/src/lib/core", |
147 |
| - "${chip_root}/src/platform:platform", |
148 |
| - ] |
| 152 | + public_deps = [ |
| 153 | + "${chip_root}/src/lib/core", |
| 154 | + "${chip_root}/src/platform:platform", |
| 155 | + ] |
| 156 | + } |
149 | 157 | }
|
150 | 158 |
|
151 | 159 | source_set("configuration-data") {
|
|
0 commit comments