Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 1 | # 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 Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 15 | import("//build_overrides/build.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 16 | import("//build_overrides/chip.gni") |
| 17 | import("//build_overrides/mbedtls.gni") |
| 18 | import("//build_overrides/nlassert.gni") |
| 19 | import("//build_overrides/nlio.gni") |
| 20 | import("//build_overrides/nlunit_test.gni") |
| 21 | import("//build_overrides/pigweed.gni") |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 22 | |
Kamil Kasperczyk | d05149c | 2021-01-05 16:05:27 +0100 | [diff] [blame] | 23 | import("//src/platform/device.gni") |
szatmz | 2244db6 | 2020-12-04 14:42:01 -0500 | [diff] [blame] | 24 | import("$dir_pw_build/python.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 25 | |
| 26 | # This build file should not be used in superproject builds. |
| 27 | assert(chip_root == "//") |
| 28 | |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 29 | import("${build_root}/chip/tests.gni") |
| 30 | import("${build_root}/chip/tools.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 31 | |
| 32 | if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") { |
Andrei Litvin | 2d86349 | 2020-10-02 17:28:58 -0400 | [diff] [blame] | 33 | declare_args() { |
Michael Spang | 4833d9c | 2020-10-09 09:33:02 -0400 | [diff] [blame] | 34 | chip_enable_python_modules = |
Song Guo | d652be4 | 2020-11-11 00:34:35 +0800 | [diff] [blame] | 35 | (current_os == "mac" || current_os == "linux") && |
| 36 | (host_cpu == "x64" || host_cpu == "arm64") |
Andrei Litvin | 2d86349 | 2020-10-02 17:28:58 -0400 | [diff] [blame] | 37 | } |
| 38 | |
szatmz | 2244db6 | 2020-12-04 14:42:01 -0500 | [diff] [blame] | 39 | # Python packages for supporting specific targets. |
| 40 | pw_python_group("python_packages") { |
| 41 | python_deps = [ |
| 42 | "integrations/mobly:chip_mobly", |
| 43 | "third_party/happy", |
| 44 | ] |
| 45 | } |
| 46 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 47 | # This is a real toolchain. Build CHIP. |
| 48 | group("default") { |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 49 | deps = [ |
| 50 | "${chip_root}/src/app", |
| 51 | "${chip_root}/src/ble", |
| 52 | "${chip_root}/src/controller", |
Evgeny Margolis | 5353858 | 2021-01-12 09:14:24 -0800 | [diff] [blame] | 53 | "${chip_root}/src/credentials", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 54 | "${chip_root}/src/crypto", |
| 55 | "${chip_root}/src/inet", |
| 56 | "${chip_root}/src/lib", |
Evgeny Margolis | df86212 | 2020-10-22 07:47:27 -0700 | [diff] [blame] | 57 | "${chip_root}/src/lib/asn1", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 58 | "${chip_root}/src/lib/core", |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 59 | "${chip_root}/src/lib/shell", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 60 | "${chip_root}/src/lib/support", |
| 61 | "${chip_root}/src/lwip:all", |
Yufeng Wang | 4fc19f1 | 2020-10-22 16:14:32 -0700 | [diff] [blame] | 62 | "${chip_root}/src/messaging", |
Yufeng Wang | a3d4054 | 2020-11-04 13:12:48 -0800 | [diff] [blame] | 63 | "${chip_root}/src/protocols", |
Rob Walker | b14e3e3 | 2020-08-20 13:59:22 -0700 | [diff] [blame] | 64 | "${chip_root}/src/setup_payload", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 65 | "${chip_root}/src/system", |
| 66 | "${chip_root}/src/transport", |
| 67 | "${mbedtls_root}:mbedtls", |
| 68 | "${nlassert_root}:nlassert", |
| 69 | "${nlio_root}:nlio", |
| 70 | "${nlunit_test_root}:nlunit-test", |
| 71 | ] |
| 72 | |
Kamil Kasperczyk | d05149c | 2021-01-05 16:05:27 +0100 | [diff] [blame] | 73 | if (chip_device_platform != "none") { |
| 74 | deps += [ "${chip_root}/src/app/server" ] |
| 75 | } |
| 76 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 77 | if (chip_build_tests) { |
Rafał Kuźnia | 6b3ee1a | 2020-09-04 03:08:16 +0200 | [diff] [blame] | 78 | deps += [ "//src:tests" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | if (chip_build_tools) { |
| 82 | deps += [ |
Timothy Maes | 9e1ac48 | 2020-10-29 17:59:49 +0100 | [diff] [blame] | 83 | "${chip_root}/examples/shell/standalone:chip-shell", |
yunhanw-google | e430b1d | 2021-01-06 06:12:46 -0800 | [diff] [blame] | 84 | "${chip_root}/src/app/tests/integration:chip-im-initiator", |
| 85 | "${chip_root}/src/app/tests/integration:chip-im-responder", |
Yufeng Wang | 4282a07 | 2020-12-08 08:58:46 -0800 | [diff] [blame] | 86 | "${chip_root}/src/messaging/tests/echo:chip-echo-requester", |
| 87 | "${chip_root}/src/messaging/tests/echo:chip-echo-responder", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 88 | "${chip_root}/src/qrcodetool", |
| 89 | "${chip_root}/src/setup_payload", |
| 90 | ] |
Andrei Litvin | 2d86349 | 2020-10-02 17:28:58 -0400 | [diff] [blame] | 91 | if (chip_enable_python_modules) { |
yunhanw-google | 90ea314 | 2020-10-01 13:53:26 -0700 | [diff] [blame] | 92 | deps += [ "${chip_root}/src/controller/python" ] |
| 93 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 94 | } |
Andrei Litvin | d74a0b6 | 2020-08-30 19:58:00 -0400 | [diff] [blame] | 95 | |
| 96 | if (current_os == "android") { |
| 97 | deps += [ |
| 98 | "${chip_root}/src/controller/java", |
| 99 | "${chip_root}/src/setup_payload/java", |
| 100 | ] |
| 101 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 102 | } |
| 103 | |
Michael Spang | df71298 | 2020-09-18 10:39:35 -0400 | [diff] [blame] | 104 | group("check") { |
| 105 | if (chip_link_tests) { |
Rafał Kuźnia | 6b3ee1a | 2020-09-04 03:08:16 +0200 | [diff] [blame] | 106 | deps = [ "//src:tests_run" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 107 | } |
| 108 | } |
Song Guo | 30123da | 2020-10-13 19:30:39 +0800 | [diff] [blame] | 109 | |
| 110 | # We don't always want to run happy tests, make them a seperate group. |
Michael Spang | 60a2807 | 2020-10-13 11:03:21 -0400 | [diff] [blame] | 111 | if (chip_enable_happy_tests) { |
| 112 | group("happy_tests") { |
| 113 | if (chip_link_tests) { |
| 114 | deps = [ "//src:happy_tests" ] |
| 115 | } |
Song Guo | 30123da | 2020-10-13 19:30:39 +0800 | [diff] [blame] | 116 | } |
| 117 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 118 | } else { |
Michael Spang | f1af8fc | 2020-07-29 14:25:47 -0400 | [diff] [blame] | 119 | # This is the unified build. Configure various real toolchains. |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 120 | import("${build_root}/chip/chip_build.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 121 | declare_args() { |
| 122 | # Set this to false to disable all builds by default. |
| 123 | enable_default_builds = true |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 124 | |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 125 | # Enable building for Android. |
| 126 | enable_android_builds = false |
| 127 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 128 | # Set this to true to enable TI builds by default. |
| 129 | enable_cc13x2_26x2_builds = false |
| 130 | |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 131 | # Set this to true to enable efr32 builds by default. |
| 132 | enable_efr32_builds = false |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 133 | |
| 134 | # Set this to true to enable qpg6100 builds by default. |
| 135 | enable_qpg6100_builds = false |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 136 | |
| 137 | # Set this to true to enable k32w builds by default. |
| 138 | enable_k32w_builds = false |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | declare_args() { |
| 142 | # Enable building chip with clang. |
Michael Spang | cd0f611 | 2021-01-22 17:06:25 -0500 | [diff] [blame] | 143 | enable_host_clang_build = enable_default_builds && host_os != "win" |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 144 | |
| 145 | # Enable building chip with gcc. |
Michael Spang | cd0f611 | 2021-01-22 17:06:25 -0500 | [diff] [blame] | 146 | enable_host_gcc_build = enable_default_builds && host_os != "win" |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 147 | |
Michael Spang | a964fad | 2020-07-13 09:36:00 -0400 | [diff] [blame] | 148 | # Enable building chip with gcc & mbedtls. |
Michael Spang | cd0f611 | 2021-01-22 17:06:25 -0500 | [diff] [blame] | 149 | enable_host_gcc_mbedtls_build = enable_default_builds && host_os != "win" |
Michael Spang | a964fad | 2020-07-13 09:36:00 -0400 | [diff] [blame] | 150 | |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 151 | # Build the chip-tool example. |
Michael Spang | cd0f611 | 2021-01-22 17:06:25 -0500 | [diff] [blame] | 152 | enable_standalone_chip_tool_build = |
| 153 | enable_default_builds && host_os != "win" |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 154 | |
| 155 | # Build the shell example. |
Michael Spang | cd0f611 | 2021-01-22 17:06:25 -0500 | [diff] [blame] | 156 | enable_standalone_shell_build = enable_default_builds && host_os != "win" |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 157 | |
Vivien Nicolas | 280d80f | 2020-11-06 22:56:40 +0100 | [diff] [blame] | 158 | # Build the Linux all clusters app example. |
| 159 | enable_linux_all_clusters_app_build = |
Vivien Nicolas | 1b29655 | 2020-12-07 18:24:57 +0100 | [diff] [blame] | 160 | enable_default_builds && (host_os == "linux" || host_os == "mac") |
Vivien Nicolas | 280d80f | 2020-11-06 22:56:40 +0100 | [diff] [blame] | 161 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 162 | # Build the Linux lighting app example. |
| 163 | enable_linux_lighting_app_build = |
Vivien Nicolas | 1b29655 | 2020-12-07 18:24:57 +0100 | [diff] [blame] | 164 | enable_default_builds && (host_os == "linux" || host_os == "mac") |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 165 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 166 | # Build the cc13x2_26x2 lock app example. |
| 167 | enable_cc13x2_26x2_lock_app_build = enable_cc13x2_26x2_builds |
| 168 | |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 169 | # Build the efr32 lock app example. |
| 170 | enable_efr32_lock_app_build = enable_efr32_builds |
Michael Spang | 0241373 | 2020-09-24 09:45:17 -0400 | [diff] [blame] | 171 | |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 172 | # Build the qpg6100 lock app example. |
| 173 | enable_qpg6100_lock_app_build = enable_qpg6100_builds |
| 174 | |
Michael Spang | 0241373 | 2020-09-24 09:45:17 -0400 | [diff] [blame] | 175 | # Build the efr32 lighting app example. |
| 176 | enable_efr32_lighting_app_build = enable_efr32_builds |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 177 | |
| 178 | # Build the k32w lock app example. |
| 179 | enable_k32w_lock_app_build = enable_k32w_builds |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 180 | } |
| 181 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 182 | if (enable_host_clang_build) { |
| 183 | chip_build("host_clang") { |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 184 | toolchain = "${build_root}/toolchain/host:${host_os}_${host_cpu}_clang" |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 185 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 186 | } |
| 187 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 188 | if (enable_host_gcc_build) { |
| 189 | chip_build("host_gcc") { |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 190 | toolchain = "${build_root}/toolchain/host:${host_os}_${host_cpu}_gcc" |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 191 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 192 | } |
| 193 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 194 | if (enable_host_gcc_mbedtls_build) { |
| 195 | chip_build("host_gcc_mbedtls") { |
| 196 | toolchain = "${chip_root}/config/mbedtls/toolchain:${host_os}_${host_cpu}_gcc_mbedtls" |
| 197 | } |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 198 | } |
| 199 | |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 200 | if (enable_android_builds) { |
| 201 | chip_build("android_arm") { |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 202 | toolchain = "${build_root}/toolchain/android:android_arm" |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 203 | } |
| 204 | |
| 205 | chip_build("android_arm64") { |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 206 | toolchain = "${build_root}/toolchain/android:android_arm64" |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | chip_build("android_x64") { |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 210 | toolchain = "${build_root}/toolchain/android:android_x64" |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | chip_build("android_x86") { |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 214 | toolchain = "${build_root}/toolchain/android:android_x86" |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 215 | } |
| 216 | } |
| 217 | |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 218 | standalone_toolchain = "${chip_root}/config/standalone/toolchain:standalone" |
Michael Spang | f92b73d | 2021-01-05 10:31:03 -0500 | [diff] [blame] | 219 | not_needed([ "standalone_toolchain" ]) # Might not be needed. |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 220 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 221 | if (enable_standalone_chip_tool_build) { |
| 222 | group("standalone_chip_tool") { |
| 223 | deps = [ "${chip_root}/examples/chip-tool(${standalone_toolchain})" ] |
| 224 | } |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 225 | } |
| 226 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 227 | if (enable_cc13x2_26x2_lock_app_build) { |
| 228 | group("cc13x2_26x2_lock_app") { |
| 229 | deps = [ "${chip_root}/examples/lock-app/cc13x2_26x2(${chip_root}/config/cc13x2_26x2/toolchain:cc13x2_26x2_lock_app)" ] |
| 230 | } |
| 231 | } |
| 232 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 233 | if (enable_standalone_shell_build) { |
| 234 | group("standalone_shell") { |
| 235 | deps = |
| 236 | [ "${chip_root}/examples/shell/standalone(${standalone_toolchain})" ] |
| 237 | } |
| 238 | } |
| 239 | |
Vivien Nicolas | 280d80f | 2020-11-06 22:56:40 +0100 | [diff] [blame] | 240 | if (enable_linux_all_clusters_app_build) { |
| 241 | group("linux_all_clusters_app") { |
| 242 | deps = [ |
| 243 | "${chip_root}/examples/all-clusters-app/linux(${standalone_toolchain})", |
| 244 | ] |
| 245 | } |
| 246 | } |
| 247 | |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 248 | if (enable_linux_lighting_app_build) { |
| 249 | group("linux_lighting_app") { |
| 250 | deps = [ |
| 251 | "${chip_root}/examples/lighting-app/linux(${standalone_toolchain})", |
| 252 | ] |
| 253 | } |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 254 | } |
| 255 | |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 256 | if (enable_efr32_lock_app_build) { |
| 257 | group("efr32_lock_app") { |
| 258 | deps = [ "${chip_root}/examples/lock-app/efr32(${chip_root}/config/efr32/toolchain:efr32_lock_app)" ] |
| 259 | } |
| 260 | } |
| 261 | |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 262 | if (enable_qpg6100_lock_app_build) { |
| 263 | group("qpg6100_lock_app") { |
| 264 | deps = [ "${chip_root}/examples/lock-app/qpg6100(${chip_root}/config/qpg6100/toolchain:qpg6100_lock_app)" ] |
| 265 | } |
| 266 | } |
| 267 | |
Michael Spang | 0241373 | 2020-09-24 09:45:17 -0400 | [diff] [blame] | 268 | if (enable_efr32_lighting_app_build) { |
| 269 | group("efr32_lighting_app") { |
| 270 | deps = [ "${chip_root}/examples/lighting-app/efr32(${chip_root}/config/efr32/toolchain:efr32_lighting_app)" ] |
| 271 | } |
| 272 | } |
| 273 | |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 274 | if (enable_k32w_lock_app_build) { |
| 275 | group("k32w_lock_app") { |
| 276 | deps = [ "${chip_root}/examples/lock-app/k32w(${chip_root}/config/k32w/toolchain:k32w_lock_app)" ] |
| 277 | } |
| 278 | } |
| 279 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 280 | group("default") { |
| 281 | deps = [] |
| 282 | if (enable_host_clang_build) { |
Michael Spang | b1139f7 | 2020-12-01 16:06:36 -0500 | [diff] [blame] | 283 | deps += [ ":host_clang" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 284 | } |
| 285 | if (enable_host_gcc_build) { |
Michael Spang | b1139f7 | 2020-12-01 16:06:36 -0500 | [diff] [blame] | 286 | deps += [ ":host_gcc" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 287 | } |
Michael Spang | a964fad | 2020-07-13 09:36:00 -0400 | [diff] [blame] | 288 | if (enable_host_gcc_mbedtls_build) { |
Michael Spang | b1139f7 | 2020-12-01 16:06:36 -0500 | [diff] [blame] | 289 | deps += [ ":host_gcc_mbedtls" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 290 | } |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 291 | if (enable_android_builds) { |
| 292 | deps += [ |
Michael Spang | b1139f7 | 2020-12-01 16:06:36 -0500 | [diff] [blame] | 293 | ":android_arm", |
| 294 | ":android_arm64", |
| 295 | ":android_x64", |
| 296 | ":android_x86", |
Michael Spang | fdc49a3 | 2020-09-03 18:33:20 -0400 | [diff] [blame] | 297 | ] |
| 298 | } |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 299 | if (enable_standalone_chip_tool_build) { |
| 300 | deps += [ ":standalone_chip_tool" ] |
| 301 | } |
| 302 | if (enable_standalone_shell_build) { |
| 303 | deps += [ ":standalone_shell" ] |
| 304 | } |
Vivien Nicolas | 280d80f | 2020-11-06 22:56:40 +0100 | [diff] [blame] | 305 | if (enable_linux_all_clusters_app_build) { |
| 306 | deps += [ ":linux_all_clusters_app" ] |
| 307 | } |
Michael Spang | 7c8f19b | 2020-11-02 13:05:12 -0500 | [diff] [blame] | 308 | if (enable_linux_lighting_app_build) { |
| 309 | deps += [ ":linux_lighting_app" ] |
| 310 | } |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 311 | if (enable_efr32_lock_app_build) { |
| 312 | deps += [ ":efr32_lock_app" ] |
| 313 | } |
Michael Spang | f8dc12e | 2021-02-02 21:36:46 -0500 | [diff] [blame^] | 314 | if (enable_efr32_lighting_app_build) { |
| 315 | deps += [ ":efr32_lighting_app" ] |
| 316 | } |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 317 | if (enable_k32w_lock_app_build) { |
| 318 | deps += [ ":k32w_lock_app" ] |
| 319 | } |
Michael Spang | f8dc12e | 2021-02-02 21:36:46 -0500 | [diff] [blame^] | 320 | if (enable_qpg6100_lock_app_build) { |
| 321 | deps += [ ":qpg6100_lock_app" ] |
| 322 | } |
| 323 | if (enable_cc13x2_26x2_lock_app_build) { |
| 324 | deps += [ ":cc13x2_26x2_lock_app" ] |
| 325 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 326 | } |
| 327 | |
Michael Spang | df71298 | 2020-09-18 10:39:35 -0400 | [diff] [blame] | 328 | group("check") { |
| 329 | deps = [] |
| 330 | if (enable_host_clang_build) { |
| 331 | deps += [ ":check_host_clang" ] |
| 332 | } |
| 333 | if (enable_host_gcc_build) { |
| 334 | deps += [ ":check_host_gcc" ] |
| 335 | } |
| 336 | if (enable_host_gcc_mbedtls_build) { |
| 337 | deps += [ ":check_host_gcc_mbedtls" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 338 | } |
| 339 | } |
| 340 | } |