blob: ee06f5a3240b87ef47b17e93d68c3252d62c38d0 [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
Łukasz Duda4e1faf22021-01-27 17:47:25 +010015import("//build_overrides/build.gni")
Michael Spangefa630b2020-07-08 22:23:08 -040016import("//build_overrides/chip.gni")
17import("//build_overrides/mbedtls.gni")
18import("//build_overrides/nlassert.gni")
19import("//build_overrides/nlio.gni")
20import("//build_overrides/nlunit_test.gni")
21import("//build_overrides/pigweed.gni")
Łukasz Duda4e1faf22021-01-27 17:47:25 +010022
Michael Spangbad533e2021-03-09 01:28:51 -050023import("//src/lwip/lwip.gni")
Kamil Kasperczykd05149c2021-01-05 16:05:27 +010024import("//src/platform/device.gni")
szatmz2244db62020-12-04 14:42:01 -050025import("$dir_pw_build/python.gni")
Michael Spangefa630b2020-07-08 22:23:08 -040026
27# This build file should not be used in superproject builds.
28assert(chip_root == "//")
29
Michael Spang09611bf2021-03-02 16:31:57 -050030import("${chip_root}/build/chip/tests.gni")
31import("${chip_root}/build/chip/tools.gni")
Michael Spangefa630b2020-07-08 22:23:08 -040032
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070033import("//src/crypto/crypto.gni")
34
Rob Mohr41c76b62021-06-02 12:43:21 -070035if (current_toolchain != "${dir_pw_toolchain}/default:default") {
Andrei Litvin2d863492020-10-02 17:28:58 -040036 declare_args() {
Michael Spang4833d9c2020-10-09 09:33:02 -040037 chip_enable_python_modules =
Song Guod652be42020-11-11 00:34:35 +080038 (current_os == "mac" || current_os == "linux") &&
39 (host_cpu == "x64" || host_cpu == "arm64")
Andrei Litvin2d863492020-10-02 17:28:58 -040040 }
41
szatmz2244db62020-12-04 14:42:01 -050042 # Python packages for supporting specific targets.
43 pw_python_group("python_packages") {
44 python_deps = [
Michael Spang4e8080b2021-02-12 15:03:57 -050045 "$dir_pw_build/py",
46 "$dir_pw_doctor/py",
47 "$dir_pw_env_setup/py",
48 "$dir_pw_hdlc/py",
49 "$dir_pw_module/py",
50 "$dir_pw_protobuf/py",
51 "$dir_pw_protobuf_compiler/py",
52 "$dir_pw_rpc/py",
53 "$dir_pw_status/py",
54 "$dir_pw_toolchain/py",
55 "$dir_pw_unit_test/py",
56 "$dir_pw_watch/py",
szatmz2244db62020-12-04 14:42:01 -050057 "integrations/mobly:chip_mobly",
Rob Mohr5cda0bd2021-04-10 01:23:15 -070058 "scripts:requirements",
szatmz2244db62020-12-04 14:42:01 -050059 "third_party/happy",
60 ]
61 }
62
Michael Spangefa630b2020-07-08 22:23:08 -040063 # This is a real toolchain. Build CHIP.
64 group("default") {
Michael Spangefa630b2020-07-08 22:23:08 -040065 deps = [
66 "${chip_root}/src/app",
67 "${chip_root}/src/ble",
Pankaj Garg750d1ee2021-04-23 11:50:06 -070068 "${chip_root}/src/channel",
Michael Spangefa630b2020-07-08 22:23:08 -040069 "${chip_root}/src/controller",
Evgeny Margolis53538582021-01-12 09:14:24 -080070 "${chip_root}/src/credentials",
Michael Spangefa630b2020-07-08 22:23:08 -040071 "${chip_root}/src/crypto",
72 "${chip_root}/src/inet",
73 "${chip_root}/src/lib",
Evgeny Margolisdf862122020-10-22 07:47:27 -070074 "${chip_root}/src/lib/asn1",
Michael Spangefa630b2020-07-08 22:23:08 -040075 "${chip_root}/src/lib/core",
76 "${chip_root}/src/lib/support",
Yufeng Wang4fc19f12020-10-22 16:14:32 -070077 "${chip_root}/src/messaging",
Yufeng Wanga3d40542020-11-04 13:12:48 -080078 "${chip_root}/src/protocols",
Rob Walkerb14e3e32020-08-20 13:59:22 -070079 "${chip_root}/src/setup_payload",
Michael Spangefa630b2020-07-08 22:23:08 -040080 "${chip_root}/src/system",
81 "${chip_root}/src/transport",
82 "${mbedtls_root}:mbedtls",
83 "${nlassert_root}:nlassert",
84 "${nlio_root}:nlio",
85 "${nlunit_test_root}:nlunit-test",
86 ]
87
Kamil Kasperczykd05149c2021-01-05 16:05:27 +010088 if (chip_device_platform != "none") {
89 deps += [ "${chip_root}/src/app/server" ]
90 }
91
Michael Spangefa630b2020-07-08 22:23:08 -040092 if (chip_build_tests) {
Rafał Kuźnia6b3ee1a2020-09-04 03:08:16 +020093 deps += [ "//src:tests" ]
Michael Spangefa630b2020-07-08 22:23:08 -040094 }
95
Michael Spangbad533e2021-03-09 01:28:51 -050096 if (chip_with_lwip) {
Michael Spange1c64e32021-06-21 14:53:44 -040097 deps += [ "${chip_root}/src/lwip" ]
Michael Spangbad533e2021-03-09 01:28:51 -050098 }
99
Michael Spangefa630b2020-07-08 22:23:08 -0400100 if (chip_build_tools) {
101 deps += [
Michael Spangc8f7c692021-03-19 10:41:51 -0400102 ":certification",
Timothy Maes9e1ac482020-10-29 17:59:49 +0100103 "${chip_root}/examples/shell/standalone:chip-shell",
yunhanw-googlee430b1d2021-01-06 06:12:46 -0800104 "${chip_root}/src/app/tests/integration:chip-im-initiator",
105 "${chip_root}/src/app/tests/integration:chip-im-responder",
Yufeng Wang4282a072020-12-08 08:58:46 -0800106 "${chip_root}/src/messaging/tests/echo:chip-echo-requester",
107 "${chip_root}/src/messaging/tests/echo:chip-echo-responder",
Michael Spangefa630b2020-07-08 22:23:08 -0400108 "${chip_root}/src/qrcodetool",
109 "${chip_root}/src/setup_payload",
110 ]
Evgeny Margolisf0e9f912021-05-13 16:02:38 -0700111 if (chip_crypto == "openssl") {
112 deps += [ "${chip_root}/src/tools/chip-cert" ]
113 }
Andrei Litvin2d863492020-10-02 17:28:58 -0400114 if (chip_enable_python_modules) {
yunhanw-google90ea3142020-10-01 13:53:26 -0700115 deps += [ "${chip_root}/src/controller/python" ]
116 }
Michael Spangefa630b2020-07-08 22:23:08 -0400117 }
Andrei Litvind74a0b62020-08-30 19:58:00 -0400118
119 if (current_os == "android") {
120 deps += [
121 "${chip_root}/src/controller/java",
122 "${chip_root}/src/setup_payload/java",
123 ]
124 }
Michael Spangefa630b2020-07-08 22:23:08 -0400125 }
126
Michael Spangc8f7c692021-03-19 10:41:51 -0400127 if (chip_build_tools) {
128 group("certification") {
129 data_deps = [ "${chip_root}/examples/chip-tool" ]
130
131 if (chip_enable_python_modules) {
132 data_deps += [ "${chip_root}/src/controller/python" ]
133 }
134
135 write_runtime_deps = "${root_out_dir}/certification.runtime_deps"
136 }
137 }
138
Michael Spangdf712982020-09-18 10:39:35 -0400139 group("check") {
140 if (chip_link_tests) {
Rafał Kuźnia6b3ee1a2020-09-04 03:08:16 +0200141 deps = [ "//src:tests_run" ]
Michael Spangefa630b2020-07-08 22:23:08 -0400142 }
143 }
Song Guo30123da2020-10-13 19:30:39 +0800144
145 # We don't always want to run happy tests, make them a seperate group.
Michael Spang60a28072020-10-13 11:03:21 -0400146 if (chip_enable_happy_tests) {
147 group("happy_tests") {
148 if (chip_link_tests) {
149 deps = [ "//src:happy_tests" ]
150 }
Song Guo30123da2020-10-13 19:30:39 +0800151 }
152 }
Michael Spangefa630b2020-07-08 22:23:08 -0400153} else {
Michael Spangf1af8fc2020-07-29 14:25:47 -0400154 # This is the unified build. Configure various real toolchains.
Michael Spang09611bf2021-03-02 16:31:57 -0500155 import("${chip_root}/build/chip/chip_build.gni")
Michael Spangefa630b2020-07-08 22:23:08 -0400156 declare_args() {
157 # Set this to false to disable all builds by default.
158 enable_default_builds = true
Michael Spang8d085b32020-07-10 10:26:23 -0400159
Michael Spangfdc49a32020-09-03 18:33:20 -0400160 # Enable building for Android.
161 enable_android_builds = false
162
Seth Rickard4f0521f2021-01-12 16:06:52 -0600163 # Set this to true to enable TI builds by default.
Michael Spang2891d6b2021-02-24 14:00:22 -0500164 enable_ti_simplelink_builds = false
Seth Rickard4f0521f2021-01-12 16:06:52 -0600165
jepenven-silabscec75ca2020-08-04 09:38:48 -0400166 # Set this to true to enable efr32 builds by default.
167 enable_efr32_builds = false
Timothy Maesb5b3d382020-10-05 16:59:21 +0200168
Timothy Maes2478e022021-07-02 04:03:46 +0200169 # Set this to true to enable Qorvo qpg builds by default.
170 enable_qpg_builds = false
doru9104ac26b2020-10-13 18:23:28 +0300171
172 # Set this to true to enable k32w builds by default.
173 enable_k32w_builds = false
Michael Spangefa630b2020-07-08 22:23:08 -0400174 }
175
176 declare_args() {
177 # Enable building chip with clang.
Michael Spangcd0f6112021-01-22 17:06:25 -0500178 enable_host_clang_build = enable_default_builds && host_os != "win"
Michael Spangefa630b2020-07-08 22:23:08 -0400179
180 # Enable building chip with gcc.
Michael Spangcd0f6112021-01-22 17:06:25 -0500181 enable_host_gcc_build = enable_default_builds && host_os != "win"
Michael Spangefa630b2020-07-08 22:23:08 -0400182
Michael Spanga964fad2020-07-13 09:36:00 -0400183 # Enable building chip with gcc & mbedtls.
Michael Spangcd0f6112021-01-22 17:06:25 -0500184 enable_host_gcc_mbedtls_build = enable_default_builds && host_os != "win"
Michael Spanga964fad2020-07-13 09:36:00 -0400185
Evgeny Margolis1486eb72021-07-12 20:18:00 -0700186 # Build the chip-cert tool.
187 enable_standalone_chip_cert_build =
188 enable_default_builds && host_os != "win" && chip_crypto == "openssl"
189
Michael Spang8d085b32020-07-10 10:26:23 -0400190 # Build the chip-tool example.
Michael Spangcd0f6112021-01-22 17:06:25 -0500191 enable_standalone_chip_tool_build =
192 enable_default_builds && host_os != "win"
Michael Spang8d085b32020-07-10 10:26:23 -0400193
Vivien Nicolas87d46d52021-03-17 17:43:37 +0100194 # Build the chip-tool-darwin example.
195 enable_standalone_chip_tool_darwin_build =
196 enable_default_builds && host_os == "mac"
197
Michael Spang8d085b32020-07-10 10:26:23 -0400198 # Build the shell example.
Michael Spangcd0f6112021-01-22 17:06:25 -0500199 enable_standalone_shell_build = enable_default_builds && host_os != "win"
Michael Spang8d085b32020-07-10 10:26:23 -0400200
Vivien Nicolas280d80f2020-11-06 22:56:40 +0100201 # Build the Linux all clusters app example.
202 enable_linux_all_clusters_app_build =
Vivien Nicolas1b296552020-12-07 18:24:57 +0100203 enable_default_builds && (host_os == "linux" || host_os == "mac")
Vivien Nicolas280d80f2020-11-06 22:56:40 +0100204
Lazar Kovacic7fe8c922021-05-18 03:46:21 +0200205 # Build the Linux tv app example.
206 enable_linux_tv_app_build =
207 enable_default_builds && (host_os == "linux" || host_os == "mac")
208
Vivien Nicolas139e71d2021-02-16 19:12:41 +0100209 # Build the Linux bridge app example.
210 enable_linux_bridge_app_build =
211 enable_default_builds && (host_os == "linux" || host_os == "mac")
212
Michael Spang7c8f19b2020-11-02 13:05:12 -0500213 # Build the Linux lighting app example.
214 enable_linux_lighting_app_build =
Vivien Nicolas1b296552020-12-07 18:24:57 +0100215 enable_default_builds && (host_os == "linux" || host_os == "mac")
Michael Spang7c8f19b2020-11-02 13:05:12 -0500216
Michael Spang2891d6b2021-02-24 14:00:22 -0500217 # Build the cc13x2x7_26x2x7 lock app example.
218 enable_cc13x2x7_26x2x7_lock_app_build = enable_ti_simplelink_builds
Seth Rickard4f0521f2021-01-12 16:06:52 -0600219
jepenven-silabscec75ca2020-08-04 09:38:48 -0400220 # Build the efr32 lock app example.
221 enable_efr32_lock_app_build = enable_efr32_builds
Michael Spang02413732020-09-24 09:45:17 -0400222
Timothy Maes2478e022021-07-02 04:03:46 +0200223 # Build the qpgxxxx lock app example.
Michael Spang706874a2021-07-02 21:45:45 -0400224 enable_qpg_lock_app_build = enable_qpg_builds && !is_debug
Timothy Maesb5b3d382020-10-05 16:59:21 +0200225
Michael Spang02413732020-09-24 09:45:17 -0400226 # Build the efr32 lighting app example.
227 enable_efr32_lighting_app_build = enable_efr32_builds
doru9104ac26b2020-10-13 18:23:28 +0300228
cecille3588d782021-04-09 14:03:54 -0400229 # Build the efr32 window app example.
230 enable_efr32_window_app_build = enable_efr32_builds
231
Michael Spang18a5a402021-06-15 23:34:41 -0400232 # Build the k32w lighting app example.
233 enable_k32w_lighting_app_build = enable_k32w_builds
234
doru9104ac26b2020-10-13 18:23:28 +0300235 # Build the k32w lock app example.
236 enable_k32w_lock_app_build = enable_k32w_builds
Michael Spang18a5a402021-06-15 23:34:41 -0400237
238 # Build the k32w shell app example.
239 enable_k32w_shell_app_build = enable_k32w_builds
Michael Spangefa630b2020-07-08 22:23:08 -0400240 }
241
Michael Spang7c8f19b2020-11-02 13:05:12 -0500242 if (enable_host_clang_build) {
243 chip_build("host_clang") {
Łukasz Duda4e1faf22021-01-27 17:47:25 +0100244 toolchain = "${build_root}/toolchain/host:${host_os}_${host_cpu}_clang"
Michael Spang7c8f19b2020-11-02 13:05:12 -0500245 }
Michael Spangefa630b2020-07-08 22:23:08 -0400246 }
247
Michael Spang7c8f19b2020-11-02 13:05:12 -0500248 if (enable_host_gcc_build) {
249 chip_build("host_gcc") {
Łukasz Duda4e1faf22021-01-27 17:47:25 +0100250 toolchain = "${build_root}/toolchain/host:${host_os}_${host_cpu}_gcc"
Michael Spang7c8f19b2020-11-02 13:05:12 -0500251 }
Michael Spangefa630b2020-07-08 22:23:08 -0400252 }
253
Michael Spang7c8f19b2020-11-02 13:05:12 -0500254 if (enable_host_gcc_mbedtls_build) {
255 chip_build("host_gcc_mbedtls") {
256 toolchain = "${chip_root}/config/mbedtls/toolchain:${host_os}_${host_cpu}_gcc_mbedtls"
257 }
Michael Spang8d085b32020-07-10 10:26:23 -0400258 }
259
Michael Spangfdc49a32020-09-03 18:33:20 -0400260 if (enable_android_builds) {
261 chip_build("android_arm") {
Łukasz Duda4e1faf22021-01-27 17:47:25 +0100262 toolchain = "${build_root}/toolchain/android:android_arm"
Michael Spangfdc49a32020-09-03 18:33:20 -0400263 }
264
265 chip_build("android_arm64") {
Łukasz Duda4e1faf22021-01-27 17:47:25 +0100266 toolchain = "${build_root}/toolchain/android:android_arm64"
Michael Spangfdc49a32020-09-03 18:33:20 -0400267 }
268
269 chip_build("android_x64") {
Łukasz Duda4e1faf22021-01-27 17:47:25 +0100270 toolchain = "${build_root}/toolchain/android:android_x64"
Michael Spangfdc49a32020-09-03 18:33:20 -0400271 }
272
273 chip_build("android_x86") {
Łukasz Duda4e1faf22021-01-27 17:47:25 +0100274 toolchain = "${build_root}/toolchain/android:android_x86"
Michael Spangfdc49a32020-09-03 18:33:20 -0400275 }
276 }
277
Michael Spang8d085b32020-07-10 10:26:23 -0400278 standalone_toolchain = "${chip_root}/config/standalone/toolchain:standalone"
Michael Spangf92b73d2021-01-05 10:31:03 -0500279 not_needed([ "standalone_toolchain" ]) # Might not be needed.
Michael Spang8d085b32020-07-10 10:26:23 -0400280
Evgeny Margolis1486eb72021-07-12 20:18:00 -0700281 if (enable_standalone_chip_cert_build) {
282 group("standalone_chip_cert") {
283 deps = [ "${chip_root}/src/tools/chip-cert(${standalone_toolchain})" ]
284 }
285 }
286
Michael Spang7c8f19b2020-11-02 13:05:12 -0500287 if (enable_standalone_chip_tool_build) {
288 group("standalone_chip_tool") {
289 deps = [ "${chip_root}/examples/chip-tool(${standalone_toolchain})" ]
290 }
Michael Spang8d085b32020-07-10 10:26:23 -0400291 }
292
Vivien Nicolas87d46d52021-03-17 17:43:37 +0100293 if (enable_standalone_chip_tool_darwin_build) {
294 group("standalone_chip_tool_darwin") {
295 deps =
296 [ "${chip_root}/examples/chip-tool-darwin(${standalone_toolchain})" ]
297 }
298 }
299
Michael Spang2891d6b2021-02-24 14:00:22 -0500300 if (enable_cc13x2x7_26x2x7_lock_app_build) {
301 group("cc13x2x7_26x2x7_lock_app") {
302 deps = [ "${chip_root}/examples/lock-app/cc13x2x7_26x2x7(${chip_root}/config/cc13x2_26x2/toolchain:cc13x2x7_26x2x7_lock_app)" ]
Seth Rickard4f0521f2021-01-12 16:06:52 -0600303 }
304 }
305
Michael Spang7c8f19b2020-11-02 13:05:12 -0500306 if (enable_standalone_shell_build) {
307 group("standalone_shell") {
308 deps =
309 [ "${chip_root}/examples/shell/standalone(${standalone_toolchain})" ]
310 }
311 }
312
Vivien Nicolas280d80f2020-11-06 22:56:40 +0100313 if (enable_linux_all_clusters_app_build) {
314 group("linux_all_clusters_app") {
315 deps = [
316 "${chip_root}/examples/all-clusters-app/linux(${standalone_toolchain})",
317 ]
318 }
319 }
320
Lazar Kovacic7fe8c922021-05-18 03:46:21 +0200321 if (enable_linux_tv_app_build) {
322 group("linux_tv_app") {
323 deps = [ "${chip_root}/examples/tv-app/linux(${standalone_toolchain})" ]
324 }
325 }
326
Vivien Nicolas139e71d2021-02-16 19:12:41 +0100327 if (enable_linux_bridge_app_build) {
328 group("linux_bridge_app") {
329 deps =
330 [ "${chip_root}/examples/bridge-app/linux(${standalone_toolchain})" ]
331 }
332 }
333
Michael Spang7c8f19b2020-11-02 13:05:12 -0500334 if (enable_linux_lighting_app_build) {
335 group("linux_lighting_app") {
336 deps = [
337 "${chip_root}/examples/lighting-app/linux(${standalone_toolchain})",
338 ]
339 }
Michael Spang8d085b32020-07-10 10:26:23 -0400340 }
341
jepenven-silabscec75ca2020-08-04 09:38:48 -0400342 if (enable_efr32_lock_app_build) {
343 group("efr32_lock_app") {
344 deps = [ "${chip_root}/examples/lock-app/efr32(${chip_root}/config/efr32/toolchain:efr32_lock_app)" ]
345 }
346 }
347
Timothy Maes2478e022021-07-02 04:03:46 +0200348 if (enable_qpg_lock_app_build) {
349 group("qpg_lock_app") {
350 deps = [ "${chip_root}/examples/lock-app/qpg(${chip_root}/config/qpg/toolchain:qpg_lock_app)" ]
Timothy Maesb5b3d382020-10-05 16:59:21 +0200351 }
352 }
353
Michael Spang02413732020-09-24 09:45:17 -0400354 if (enable_efr32_lighting_app_build) {
355 group("efr32_lighting_app") {
356 deps = [ "${chip_root}/examples/lighting-app/efr32(${chip_root}/config/efr32/toolchain:efr32_lighting_app)" ]
357 }
358 }
359
cecille3588d782021-04-09 14:03:54 -0400360 if (enable_efr32_window_app_build) {
361 group("efr32_window_app") {
362 deps = [ "${chip_root}/examples/window-app/efr32(${chip_root}/config/efr32/toolchain:efr32_window_app)" ]
363 }
364 }
365
Michael Spang18a5a402021-06-15 23:34:41 -0400366 if (enable_k32w_lighting_app_build) {
367 group("k32w_lighting_app") {
368 deps = [ "${chip_root}/examples/lighting-app/k32w(${chip_root}/config/k32w/toolchain:k32w_lighting_app)" ]
369 }
370 }
371
doru9104ac26b2020-10-13 18:23:28 +0300372 if (enable_k32w_lock_app_build) {
373 group("k32w_lock_app") {
374 deps = [ "${chip_root}/examples/lock-app/k32w(${chip_root}/config/k32w/toolchain:k32w_lock_app)" ]
375 }
376 }
377
Michael Spang18a5a402021-06-15 23:34:41 -0400378 if (enable_k32w_shell_app_build) {
379 group("k32w_shell_app") {
380 deps = [ "${chip_root}/examples/shell/k32w(${chip_root}/config/k32w/toolchain:k32w_shell_app)" ]
381 }
382 }
383
Michael Spangefa630b2020-07-08 22:23:08 -0400384 group("default") {
385 deps = []
386 if (enable_host_clang_build) {
Michael Spangb1139f72020-12-01 16:06:36 -0500387 deps += [ ":host_clang" ]
Michael Spangefa630b2020-07-08 22:23:08 -0400388 }
389 if (enable_host_gcc_build) {
Michael Spangb1139f72020-12-01 16:06:36 -0500390 deps += [ ":host_gcc" ]
Michael Spangefa630b2020-07-08 22:23:08 -0400391 }
Michael Spanga964fad2020-07-13 09:36:00 -0400392 if (enable_host_gcc_mbedtls_build) {
Michael Spangb1139f72020-12-01 16:06:36 -0500393 deps += [ ":host_gcc_mbedtls" ]
Michael Spangefa630b2020-07-08 22:23:08 -0400394 }
Michael Spangfdc49a32020-09-03 18:33:20 -0400395 if (enable_android_builds) {
396 deps += [
Michael Spangb1139f72020-12-01 16:06:36 -0500397 ":android_arm",
398 ":android_arm64",
399 ":android_x64",
400 ":android_x86",
Michael Spangfdc49a32020-09-03 18:33:20 -0400401 ]
402 }
Evgeny Margolis1486eb72021-07-12 20:18:00 -0700403 if (enable_standalone_chip_cert_build) {
404 deps += [ ":standalone_chip_cert" ]
405 }
Michael Spang8d085b32020-07-10 10:26:23 -0400406 if (enable_standalone_chip_tool_build) {
407 deps += [ ":standalone_chip_tool" ]
408 }
Vivien Nicolas87d46d52021-03-17 17:43:37 +0100409 if (enable_standalone_chip_tool_darwin_build) {
410 deps += [ ":standalone_chip_tool_darwin" ]
411 }
Michael Spang8d085b32020-07-10 10:26:23 -0400412 if (enable_standalone_shell_build) {
413 deps += [ ":standalone_shell" ]
414 }
Vivien Nicolas280d80f2020-11-06 22:56:40 +0100415 if (enable_linux_all_clusters_app_build) {
416 deps += [ ":linux_all_clusters_app" ]
417 }
Lazar Kovacic7fe8c922021-05-18 03:46:21 +0200418 if (enable_linux_tv_app_build) {
419 deps += [ ":linux_tv_app" ]
420 }
Vivien Nicolas139e71d2021-02-16 19:12:41 +0100421 if (enable_linux_bridge_app_build) {
422 deps += [ ":linux_bridge_app" ]
423 }
Michael Spang7c8f19b2020-11-02 13:05:12 -0500424 if (enable_linux_lighting_app_build) {
425 deps += [ ":linux_lighting_app" ]
426 }
jepenven-silabscec75ca2020-08-04 09:38:48 -0400427 if (enable_efr32_lock_app_build) {
428 deps += [ ":efr32_lock_app" ]
429 }
Michael Spangf8dc12e2021-02-02 21:36:46 -0500430 if (enable_efr32_lighting_app_build) {
431 deps += [ ":efr32_lighting_app" ]
432 }
cecille3588d782021-04-09 14:03:54 -0400433 if (enable_efr32_window_app_build) {
434 deps += [ ":efr32_window_app" ]
435 }
Michael Spang18a5a402021-06-15 23:34:41 -0400436 if (enable_k32w_lighting_app_build) {
437 deps += [ ":k32w_lighting_app" ]
438 }
doru9104ac26b2020-10-13 18:23:28 +0300439 if (enable_k32w_lock_app_build) {
440 deps += [ ":k32w_lock_app" ]
441 }
Michael Spang18a5a402021-06-15 23:34:41 -0400442 if (enable_k32w_shell_app_build) {
443 deps += [ ":k32w_shell_app" ]
444 }
Timothy Maes2478e022021-07-02 04:03:46 +0200445 if (enable_qpg_lock_app_build) {
446 deps += [ ":qpg_lock_app" ]
Michael Spangf8dc12e2021-02-02 21:36:46 -0500447 }
Michael Spang2891d6b2021-02-24 14:00:22 -0500448 if (enable_cc13x2x7_26x2x7_lock_app_build) {
449 deps += [ ":cc13x2x7_26x2x7_lock_app" ]
Michael Spangf8dc12e2021-02-02 21:36:46 -0500450 }
Michael Spangefa630b2020-07-08 22:23:08 -0400451 }
452
Michael Spangdf712982020-09-18 10:39:35 -0400453 group("check") {
454 deps = []
455 if (enable_host_clang_build) {
456 deps += [ ":check_host_clang" ]
457 }
458 if (enable_host_gcc_build) {
459 deps += [ ":check_host_gcc" ]
460 }
461 if (enable_host_gcc_mbedtls_build) {
462 deps += [ ":check_host_gcc_mbedtls" ]
Michael Spangefa630b2020-07-08 22:23:08 -0400463 }
464 }
465}