Skip to content

Commit 4dea390

Browse files
committed
Cleanup ICD Server BUILD.gn
Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 7e9f365 commit 4dea390

File tree

1 file changed

+30
-34
lines changed

1 file changed

+30
-34
lines changed

src/app/icd/server/BUILD.gn

+30-34
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,36 @@ if (chip_enable_icd_checkin || chip_build_tests) {
8787

8888
public_deps = [ ":check-in-back-off" ]
8989
}
90+
91+
# ICDMonitoringTable source-set is broken out of the main source-set to enable unit tests
92+
# All sources and configurations used by the ICDMonitoringTable need to go in this source-set
93+
source_set("monitoring-table") {
94+
sources = [
95+
"ICDMonitoringTable.cpp",
96+
"ICDMonitoringTable.h",
97+
]
98+
99+
public_deps = [
100+
"${chip_root}/src/lib/core",
101+
"${chip_root}/src/platform:platform",
102+
]
103+
}
104+
105+
source_set("sender") {
106+
sources = [
107+
"ICDCheckInSender.cpp",
108+
"ICDCheckInSender.h",
109+
]
110+
111+
public_deps = [
112+
":configuration-data",
113+
":monitoring-table",
114+
":notifier",
115+
"${chip_root}/src/credentials:credentials",
116+
"${chip_root}/src/lib/address_resolve:address_resolve",
117+
"${chip_root}/src/protocols/secure_channel",
118+
]
119+
}
90120
}
91121

92122
# ICD Manager source-set is broken out of the main source-set to enable unit tests
@@ -121,40 +151,6 @@ source_set("manager") {
121151
}
122152
}
123153

124-
if (chip_enable_icd_checkin) {
125-
source_set("sender") {
126-
sources = [
127-
"ICDCheckInSender.cpp",
128-
"ICDCheckInSender.h",
129-
]
130-
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-
}
140-
}
141-
142-
# ICDMonitoringTable source-set is broken out of the main source-set to enable unit tests
143-
# All sources and configurations used by the ICDMonitoringTable need to go in this source-set
144-
if (chip_enable_icd_checkin || chip_build_tests) {
145-
source_set("monitoring-table") {
146-
sources = [
147-
"ICDMonitoringTable.cpp",
148-
"ICDMonitoringTable.h",
149-
]
150-
151-
public_deps = [
152-
"${chip_root}/src/lib/core",
153-
"${chip_root}/src/platform:platform",
154-
]
155-
}
156-
}
157-
158154
source_set("configuration-data") {
159155
sources = [
160156
"ICDConfigurationData.cpp",

0 commit comments

Comments
 (0)