@@ -70,20 +70,22 @@ source_set("notifier") {
70
70
]
71
71
}
72
72
73
- source_set (" check-in-back-off" ) {
74
- sources = [ " ICDCheckInBackOffStrategy.h" ]
73
+ if (chip_enable_icd_checkin || chip_build_tests ) {
74
+ source_set (" check-in-back-off" ) {
75
+ sources = [ " ICDCheckInBackOffStrategy.h" ]
75
76
76
- public_deps = [
77
- " :monitoring-table" ,
78
- " ${ chip_root } /src/lib/core" ,
79
- " ${ chip_root } /src/lib/support" ,
80
- ]
81
- }
77
+ public_deps = [
78
+ " :monitoring-table" ,
79
+ " ${ chip_root } /src/lib/core" ,
80
+ " ${ chip_root } /src/lib/support" ,
81
+ ]
82
+ }
82
83
83
- source_set (" default-check-in-back-off" ) {
84
- sources = [ " DefaultICDCheckInBackOffStrategy.h" ]
84
+ source_set (" default-check-in-back-off" ) {
85
+ sources = [ " DefaultICDCheckInBackOffStrategy.h" ]
85
86
86
- public_deps = [ " :check-in-back-off" ]
87
+ public_deps = [ " :check-in-back-off" ]
88
+ }
87
89
}
88
90
89
91
# ICD Manager source-set is broken out of the main source-set to enable unit tests
@@ -126,26 +128,31 @@ source_set("sender") {
126
128
127
129
public_deps = [
128
130
" :configuration-data" ,
129
- " :monitoring-table" ,
130
131
" :notifier" ,
131
132
" ${ chip_root } /src/credentials:credentials" ,
132
133
" ${ chip_root } /src/lib/address_resolve:address_resolve" ,
133
134
" ${ chip_root } /src/protocols/secure_channel" ,
134
135
]
136
+
137
+ if (chip_enable_icd_checkin ) {
138
+ public_deps += [ " :monitoring-table" ]
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