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/nlio.gni") |
rgoliver | bf60cc2 | 2021-01-26 21:15:59 -0500 | [diff] [blame] | 18 | import("//build_overrides/pigweed.gni") |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 19 | |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 20 | import("${build_root}/config/linux/pkg_config.gni") |
Michael Spang | 09611bf | 2021-03-02 16:31:57 -0500 | [diff] [blame] | 21 | import("${chip_root}/build/chip/buildconfig_header.gni") |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 22 | |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 23 | import("device.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 24 | |
Michael Spang | c32dd2f | 2020-08-13 08:42:21 -0400 | [diff] [blame] | 25 | if (chip_enable_openthread) { |
| 26 | import("//build_overrides/openthread.gni") |
Łukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 27 | |
| 28 | if (chip_device_platform == "linux" || chip_device_platform == "Darwin") { |
| 29 | import("//build_overrides/ot_br_posix.gni") |
| 30 | } |
Michael Spang | c32dd2f | 2020-08-13 08:42:21 -0400 | [diff] [blame] | 31 | } |
| 32 | |
Kamil Kasperczyk | 4401402 | 2021-03-12 21:18:45 +0100 | [diff] [blame^] | 33 | if (chip_device_platform == "linux" && chip_mdns != "none") { |
Jiacheng Guo | 5de2929 | 2020-10-26 14:41:40 +0800 | [diff] [blame] | 34 | pkg_config("avahi_client_config") { |
| 35 | packages = [ "avahi-client" ] |
| 36 | } |
| 37 | } |
| 38 | |
Jiacheng Guo | 57945c2 | 2020-08-29 03:56:59 +0800 | [diff] [blame] | 39 | if (chip_device_platform != "none") { |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 40 | declare_args() { |
| 41 | # Extra header to include in CHIPDeviceConfig.h for project. |
| 42 | chip_device_project_config_include = "" |
Michael Spang | da4c125 | 2020-08-06 10:40:49 -0400 | [diff] [blame] | 43 | |
| 44 | # Date the firmware was built. |
| 45 | chip_device_config_firmware_build_date = "" |
| 46 | |
| 47 | # Time the firmware was built. |
| 48 | chip_device_config_firmware_build_time = "" |
Jiacheng Guo | e4ac46a | 2020-11-11 00:04:34 +0800 | [diff] [blame] | 49 | |
| 50 | # By pass provision and secure session |
| 51 | chip_bypass_rendezvous = false |
hnnajh | 9661374 | 2021-01-06 08:05:28 -0800 | [diff] [blame] | 52 | |
| 53 | # Enable including the additional data in the advertisement packets |
| 54 | chip_enable_additional_data_advertising = true |
hnnajh | 846f2f1 | 2021-02-18 05:45:15 -0800 | [diff] [blame] | 55 | |
| 56 | # Enable adding rotating device id to the additional data. |
| 57 | chip_enable_rotating_device_id = true |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 58 | } |
| 59 | |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 60 | buildconfig_header("platform_buildconfig") { |
| 61 | header = "CHIPDeviceBuildConfig.h" |
| 62 | header_dir = "platform" |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 63 | |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 64 | chip_with_gio = chip_enable_wifi |
| 65 | chip_device_config_enable_wpa = chip_enable_wifi |
| 66 | |
| 67 | defines = [ |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 68 | "CHIP_DEVICE_CONFIG_ENABLE_WPA=${chip_device_config_enable_wpa}", |
| 69 | "CHIP_ENABLE_OPENTHREAD=${chip_enable_openthread}", |
| 70 | "CHIP_WITH_GIO=${chip_with_gio}", |
| 71 | "OPENTHREAD_CONFIG_ENABLE_TOBLE=false", |
| 72 | ] |
| 73 | |
Michael Spang | e1aa7b1 | 2021-03-09 18:08:38 -0500 | [diff] [blame] | 74 | if (chip_device_platform == "linux" || chip_device_platform == "darwin") { |
| 75 | defines += [ "CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE=${chip_enable_ble}" ] |
| 76 | } |
| 77 | |
Kamil Kasperczyk | 4401402 | 2021-03-12 21:18:45 +0100 | [diff] [blame^] | 78 | if (chip_mdns != "none") { |
Kamil Kasperczyk | 5f04138 | 2021-03-04 20:58:04 +0100 | [diff] [blame] | 79 | defines += [ "CHIP_DEVICE_CONFIG_ENABLE_MDNS=1" ] |
| 80 | } |
| 81 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 82 | if (chip_device_project_config_include != "") { |
| 83 | defines += [ "CHIP_DEVICE_PROJECT_CONFIG_INCLUDE=${chip_device_project_config_include}" ] |
| 84 | } |
| 85 | if (chip_device_platform_config_include != "") { |
| 86 | defines += [ "CHIP_DEVICE_PLATFORM_CONFIG_INCLUDE=${chip_device_platform_config_include}" ] |
| 87 | } |
| 88 | |
Michael Spang | da4c125 | 2020-08-06 10:40:49 -0400 | [diff] [blame] | 89 | if (chip_device_config_firmware_build_date != "") { |
Michael Spang | 801349e | 2020-08-10 09:15:04 -0400 | [diff] [blame] | 90 | defines += [ "CHIP_DEVICE_CONFIG_FIRWMARE_BUILD_DATE=\"${chip_device_config_firmware_build_date}\"" ] |
Michael Spang | da4c125 | 2020-08-06 10:40:49 -0400 | [diff] [blame] | 91 | } |
| 92 | if (chip_device_config_firmware_build_time != "") { |
Michael Spang | 801349e | 2020-08-10 09:15:04 -0400 | [diff] [blame] | 93 | defines += [ "CHIP_DEVICE_CONFIG_FIRMWARE_BUILD_TIME=\"${chip_device_config_firmware_build_time}\"" ] |
Michael Spang | da4c125 | 2020-08-06 10:40:49 -0400 | [diff] [blame] | 94 | } |
| 95 | |
Jiacheng Guo | e4ac46a | 2020-11-11 00:04:34 +0800 | [diff] [blame] | 96 | if (chip_bypass_rendezvous) { |
| 97 | defines += [ "CHIP_BYPASS_RENDEZVOUS=1" ] |
| 98 | } |
| 99 | |
hnnajh | 9661374 | 2021-01-06 08:05:28 -0800 | [diff] [blame] | 100 | if (chip_enable_additional_data_advertising) { |
| 101 | defines += [ "CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING=1" ] |
| 102 | } else { |
| 103 | defines += [ "CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING=0" ] |
| 104 | } |
| 105 | |
hnnajh | 846f2f1 | 2021-02-18 05:45:15 -0800 | [diff] [blame] | 106 | if (chip_enable_rotating_device_id) { |
| 107 | defines += [ "CHIP_ENABLE_ROTATING_DEVICE_ID=1" ] |
| 108 | } else { |
| 109 | defines += [ "CHIP_ENABLE_ROTATING_DEVICE_ID=0" ] |
| 110 | } |
| 111 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 112 | if (chip_device_platform == "cc13x2_26x2") { |
| 113 | defines += [ |
| 114 | "CHIP_DEVICE_LAYER_TARGET_CC13X2_26X2=1", |
| 115 | "CHIP_DEVICE_LAYER_TARGET=cc13x2_26x2", |
| 116 | ] |
| 117 | } else if (chip_device_platform == "darwin") { |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 118 | defines += [ |
| 119 | "CHIP_DEVICE_LAYER_TARGET_DARWIN=1", |
| 120 | "CHIP_DEVICE_LAYER_TARGET=Darwin", |
| 121 | ] |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 122 | } else if (chip_device_platform == "efr32") { |
| 123 | defines += [ |
| 124 | "CHIP_DEVICE_LAYER_TARGET_EFR32=1", |
| 125 | "CHIP_DEVICE_LAYER_TARGET=EFR32", |
| 126 | ] |
| 127 | } else if (chip_device_platform == "esp32") { |
| 128 | defines += [ |
| 129 | "CHIP_DEVICE_LAYER_TARGET_ESP32=1", |
| 130 | "CHIP_DEVICE_LAYER_TARGET=ESP32", |
| 131 | ] |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 132 | } else if (chip_device_platform == "linux") { |
| 133 | defines += [ |
| 134 | "CHIP_DEVICE_LAYER_TARGET_LINUX=1", |
| 135 | "CHIP_DEVICE_LAYER_TARGET=Linux", |
| 136 | ] |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 137 | } else if (chip_device_platform == "nrfconnect") { |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 138 | defines += [ |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 139 | "CHIP_DEVICE_LAYER_TARGET_NRFCONNECT=1", |
| 140 | "CHIP_DEVICE_LAYER_TARGET=nrfconnect", |
Kedar Sovani | 8617e2a | 2020-08-30 02:33:21 +0530 | [diff] [blame] | 141 | ] |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 142 | } else if (chip_device_platform == "qpg6100") { |
| 143 | defines += [ |
| 144 | "CHIP_DEVICE_LAYER_TARGET_QPG6100=1", |
| 145 | "CHIP_DEVICE_LAYER_TARGET=qpg6100", |
| 146 | ] |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 147 | } else if (chip_device_platform == "k32w") { |
| 148 | defines += [ |
| 149 | "CHIP_DEVICE_LAYER_TARGET_K32W=1", |
| 150 | "CHIP_DEVICE_LAYER_TARGET=K32W", |
| 151 | ] |
Kedar Sovani | 8617e2a | 2020-08-30 02:33:21 +0530 | [diff] [blame] | 152 | } |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 153 | } |
Jiacheng Guo | e4ac46a | 2020-11-11 00:04:34 +0800 | [diff] [blame] | 154 | } else { |
| 155 | buildconfig_header("platform_buildconfig") { |
| 156 | header = "CHIPDeviceBuildConfig.h" |
| 157 | header_dir = "platform" |
| 158 | |
| 159 | defines = [ |
| 160 | "CHIP_DEVICE_LAYER_NONE=1", |
| 161 | "CHIP_DEVICE_LAYER_TARGET=NONE", |
| 162 | ] |
| 163 | } |
Jiacheng Guo | 57945c2 | 2020-08-29 03:56:59 +0800 | [diff] [blame] | 164 | } |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 165 | |
Jiacheng Guo | 57945c2 | 2020-08-29 03:56:59 +0800 | [diff] [blame] | 166 | if (chip_device_platform != "none" && chip_device_platform != "external") { |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 167 | config("platform_config") { |
| 168 | if (chip_device_platform == "darwin") { |
Michael Spang | 1b27142 | 2020-07-27 12:02:42 -0400 | [diff] [blame] | 169 | frameworks = [ |
| 170 | "CoreFoundation.framework", |
| 171 | "CoreBluetooth.framework", |
| 172 | "Foundation.framework", |
| 173 | ] |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 174 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | static_library("platform") { |
| 178 | output_name = "libDeviceLayer" |
| 179 | |
| 180 | sources = [ |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 181 | "../include/platform/CHIPDeviceConfig.h", |
| 182 | "../include/platform/CHIPDeviceError.h", |
| 183 | "../include/platform/CHIPDeviceEvent.h", |
| 184 | "../include/platform/CHIPDeviceLayer.h", |
| 185 | "../include/platform/ConfigurationManager.h", |
| 186 | "../include/platform/ConnectivityManager.h", |
| 187 | "../include/platform/GeneralUtils.h", |
rgoliver | bf60cc2 | 2021-01-26 21:15:59 -0500 | [diff] [blame] | 188 | "../include/platform/KeyValueStoreManager.h", |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 189 | "../include/platform/PersistedStorage.h", |
| 190 | "../include/platform/PlatformManager.h", |
| 191 | "../include/platform/SoftwareUpdateManager.h", |
| 192 | "../include/platform/SoftwareUpdateManagerImpl.h", |
| 193 | "../include/platform/ThreadStackManager.h", |
| 194 | "../include/platform/TimeSyncManager.h", |
| 195 | "../include/platform/internal/BLEManager.h", |
| 196 | "../include/platform/internal/CHIPDeviceLayerInternal.h", |
| 197 | "../include/platform/internal/DeviceDescriptionServer.h", |
| 198 | "../include/platform/internal/DeviceNetworkInfo.h", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 199 | "../include/platform/internal/DeviceNetworkProvisioning.h", |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 200 | "../include/platform/internal/EventLogging.h", |
| 201 | "../include/platform/internal/GenericConfigurationManagerImpl.h", |
| 202 | "../include/platform/internal/GenericConnectivityManagerImpl.h", |
| 203 | "../include/platform/internal/GenericConnectivityManagerImpl_BLE.h", |
| 204 | "../include/platform/internal/GenericConnectivityManagerImpl_NoBLE.h", |
| 205 | "../include/platform/internal/GenericConnectivityManagerImpl_NoThread.h", |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 206 | "../include/platform/internal/GenericConnectivityManagerImpl_NoWiFi.h", |
| 207 | "../include/platform/internal/GenericConnectivityManagerImpl_Thread.h", |
Yufeng Wang | 2a1e8bc | 2020-09-27 23:27:02 -0700 | [diff] [blame] | 208 | "../include/platform/internal/GenericConnectivityManagerImpl_WiFi.h", |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 209 | "../include/platform/internal/GenericNetworkProvisioningServerImpl.h", |
| 210 | "../include/platform/internal/GenericPlatformManagerImpl.h", |
| 211 | "../include/platform/internal/GenericPlatformManagerImpl_FreeRTOS.h", |
| 212 | "../include/platform/internal/GenericPlatformManagerImpl_POSIX.h", |
| 213 | "../include/platform/internal/GenericSoftwareUpdateManagerImpl.h", |
| 214 | "../include/platform/internal/GenericSoftwareUpdateManagerImpl_BDX.h", |
| 215 | "../include/platform/internal/NetworkProvisioningServer.h", |
| 216 | "../include/platform/internal/testing/ConfigUnitTest.h", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 217 | "GeneralUtils.cpp", |
| 218 | "Globals.cpp", |
| 219 | "PersistedStorage.cpp", |
| 220 | "SystemEventSupport.cpp", |
| 221 | "SystemTimerSupport.cpp", |
Jiacheng Guo | e4ac46a | 2020-11-11 00:04:34 +0800 | [diff] [blame] | 222 | "TestIdentity.cpp", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 223 | ] |
| 224 | |
Boris Zbarsky | 444b50b | 2020-09-23 19:53:06 -0400 | [diff] [blame] | 225 | cflags = [ "-Wconversion" ] |
| 226 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 227 | public_deps = [ |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 228 | ":platform_buildconfig", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 229 | "${chip_root}/src/ble", |
Vivien Nicolas | 0320920 | 2020-07-21 20:57:37 +0200 | [diff] [blame] | 230 | "${chip_root}/src/inet", |
Yufeng Wang | c22c899 | 2020-09-03 15:34:33 -0700 | [diff] [blame] | 231 | "${chip_root}/src/lib/core", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 232 | "${chip_root}/src/lib/core:chip_config_header", |
| 233 | "${chip_root}/src/lib/support", |
Andrei Litvin | 5630230 | 2021-02-12 15:44:09 -0500 | [diff] [blame] | 234 | "${chip_root}/src/platform/logging:headers", |
Sagar Dhawan | 1d812b7 | 2020-11-05 08:55:40 -0800 | [diff] [blame] | 235 | "${chip_root}/src/setup_payload", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 236 | "${nlio_root}:nlio", |
| 237 | ] |
| 238 | |
Michael Spang | 1fcb6dd | 2020-08-24 11:19:04 -0400 | [diff] [blame] | 239 | public_configs = [ |
| 240 | ":platform_config", |
| 241 | "${chip_root}/src:includes", |
| 242 | ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 243 | |
Kamil Kasperczyk | 4401402 | 2021-03-12 21:18:45 +0100 | [diff] [blame^] | 244 | if (chip_mdns != "none") { |
Michael Spang | 247ea28 | 2020-11-20 16:58:11 -0500 | [diff] [blame] | 245 | public_deps += [ "${chip_root}/src/lib/mdns:platform_header" ] |
| 246 | } |
| 247 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 248 | if (chip_device_platform == "cc13x2_26x2") { |
| 249 | sources += [ |
| 250 | "FreeRTOS/SystemTimeSupport.cpp", |
| 251 | "cc13x2_26x2/BlePlatformConfig.h", |
| 252 | "cc13x2_26x2/CC13X2_26X2Config.cpp", |
| 253 | "cc13x2_26x2/CC13X2_26X2Config.h", |
| 254 | "cc13x2_26x2/CHIPDevicePlatformConfig.h", |
| 255 | "cc13x2_26x2/CHIPDevicePlatformConfig.h", |
| 256 | "cc13x2_26x2/CHIPDevicePlatformEvent.h", |
| 257 | "cc13x2_26x2/ConfigurationManagerImpl.cpp", |
| 258 | "cc13x2_26x2/ConnectivityManagerImpl.cpp", |
| 259 | "cc13x2_26x2/ConnectivityManagerImpl.h", |
Seth Rickard | e76ed54 | 2021-02-17 17:27:21 -0600 | [diff] [blame] | 260 | "cc13x2_26x2/DeviceNetworkProvisioningDelegateImpl.cpp", |
| 261 | "cc13x2_26x2/DeviceNetworkProvisioningDelegateImpl.h", |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 262 | "cc13x2_26x2/InetPlatformConfig.h", |
Pankaj Garg | 9a791a8 | 2021-02-24 07:48:03 -0800 | [diff] [blame] | 263 | "cc13x2_26x2/KeyValueStoreManagerImpl.cpp", |
| 264 | "cc13x2_26x2/KeyValueStoreManagerImpl.h", |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 265 | "cc13x2_26x2/Logging.cpp", |
| 266 | "cc13x2_26x2/PlatformManagerImpl.cpp", |
| 267 | "cc13x2_26x2/PlatformManagerImpl.h", |
| 268 | "cc13x2_26x2/SystemPlatformConfig.h", |
| 269 | ] |
Andrei Litvin | 5630230 | 2021-02-12 15:44:09 -0500 | [diff] [blame] | 270 | |
Seth Rickard | e76ed54 | 2021-02-17 17:27:21 -0600 | [diff] [blame] | 271 | if (chip_enable_ble) { |
| 272 | sources += [ |
| 273 | "cc13x2_26x2/BLEManagerImpl.cpp", |
| 274 | "cc13x2_26x2/BLEManagerImpl.h", |
| 275 | ] |
| 276 | } |
| 277 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 278 | if (chip_enable_openthread) { |
Seth Rickard | e76ed54 | 2021-02-17 17:27:21 -0600 | [diff] [blame] | 279 | # needed for MTD/FTD |
| 280 | import("//build_overrides/ti_simplelink_sdk.gni") |
| 281 | import("${ti_simplelink_sdk_build_root}/ti_simplelink_board.gni") |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 282 | public_deps += [ |
| 283 | "${chip_root}/third_party/ti_simplelink_sdk:mbedtls", |
| 284 | "${chip_root}/third_party/ti_simplelink_sdk:ti_simplelink_sdk", |
| 285 | "${chip_root}/third_party/ti_simplelink_sdk:ti_simplelink_sysconfig", |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 286 | ] |
| 287 | |
Seth Rickard | e76ed54 | 2021-02-17 17:27:21 -0600 | [diff] [blame] | 288 | if (ti_simplelink_device_family == "cc13x2_26x2") { |
| 289 | public_deps += [ "${openthread_root}:libopenthread-mtd" ] |
| 290 | } else if (ti_simplelink_device_family == "cc13x2x7_26x2x7") { |
| 291 | public_deps += [ "${openthread_root}:libopenthread-ftd" ] |
| 292 | } |
| 293 | |
Seth Rickard | 4f0521f | 2021-01-12 16:06:52 -0600 | [diff] [blame] | 294 | sources += [ |
| 295 | "OpenThread/OpenThreadUtils.cpp", |
| 296 | "cc13x2_26x2/ThreadStackManagerImpl.cpp", |
| 297 | "cc13x2_26x2/ThreadStackManagerImpl.h", |
| 298 | ] |
| 299 | } |
| 300 | } else if (chip_device_platform == "darwin") { |
Michael Spang | 1b27142 | 2020-07-27 12:02:42 -0400 | [diff] [blame] | 301 | sources += [ |
| 302 | "Darwin/BLEManagerImpl.cpp", |
| 303 | "Darwin/BLEManagerImpl.h", |
Michael Spang | 1b27142 | 2020-07-27 12:02:42 -0400 | [diff] [blame] | 304 | "Darwin/BlePlatformConfig.h", |
Michael Spang | 1b27142 | 2020-07-27 12:02:42 -0400 | [diff] [blame] | 305 | "Darwin/CHIPDevicePlatformConfig.h", |
| 306 | "Darwin/CHIPDevicePlatformEvent.h", |
| 307 | "Darwin/CHIPPlatformConfig.h", |
| 308 | "Darwin/ConfigurationManagerImpl.cpp", |
| 309 | "Darwin/ConfigurationManagerImpl.h", |
| 310 | "Darwin/ConnectivityManagerImpl.cpp", |
| 311 | "Darwin/ConnectivityManagerImpl.h", |
| 312 | "Darwin/InetPlatformConfig.h", |
Andrei Litvin | 5630230 | 2021-02-12 15:44:09 -0500 | [diff] [blame] | 313 | "Darwin/Logging.cpp", |
Michael Spang | 1b27142 | 2020-07-27 12:02:42 -0400 | [diff] [blame] | 314 | "Darwin/PlatformManagerImpl.cpp", |
| 315 | "Darwin/PlatformManagerImpl.h", |
| 316 | "Darwin/PosixConfig.cpp", |
| 317 | "Darwin/PosixConfig.h", |
| 318 | "Darwin/SystemPlatformConfig.h", |
| 319 | ] |
Vivien Nicolas | 3b333f0 | 2020-10-27 16:17:15 +0100 | [diff] [blame] | 320 | |
Pankaj Garg | 9a791a8 | 2021-02-24 07:48:03 -0800 | [diff] [blame] | 321 | sources += [ |
| 322 | "Darwin/KeyValueStoreManagerImpl.cpp", |
| 323 | "Darwin/KeyValueStoreManagerImpl.h", |
| 324 | ] |
| 325 | |
Vivien Nicolas | 3b333f0 | 2020-10-27 16:17:15 +0100 | [diff] [blame] | 326 | if (chip_enable_ble) { |
| 327 | sources += [ |
| 328 | "Darwin/BleApplicationDelegate.h", |
| 329 | "Darwin/BleApplicationDelegateImpl.mm", |
| 330 | "Darwin/BleConnectionDelegate.h", |
| 331 | "Darwin/BleConnectionDelegateImpl.mm", |
| 332 | "Darwin/BlePlatformDelegate.h", |
| 333 | "Darwin/BlePlatformDelegateImpl.mm", |
Vivien Nicolas | 49022e4 | 2020-12-08 18:06:19 +0100 | [diff] [blame] | 334 | "Darwin/UUIDHelper.h", |
| 335 | "Darwin/UUIDHelperImpl.mm", |
Vivien Nicolas | 3b333f0 | 2020-10-27 16:17:15 +0100 | [diff] [blame] | 336 | ] |
| 337 | } |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 338 | } else if (chip_device_platform == "efr32") { |
| 339 | sources += [ |
| 340 | "EFR32/BLEManagerImpl.cpp", |
| 341 | "EFR32/BLEManagerImpl.h", |
| 342 | "EFR32/BlePlatformConfig.h", |
| 343 | "EFR32/CHIPDevicePlatformConfig.h", |
| 344 | "EFR32/CHIPDevicePlatformEvent.h", |
| 345 | "EFR32/CHIPPlatformConfig.h", |
| 346 | "EFR32/ConfigurationManagerImpl.cpp", |
| 347 | "EFR32/ConfigurationManagerImpl.h", |
| 348 | "EFR32/ConnectivityManagerImpl.cpp", |
| 349 | "EFR32/ConnectivityManagerImpl.h", |
jmartinez-silabs | 122da92 | 2020-11-10 11:01:19 -0500 | [diff] [blame] | 350 | "EFR32/DeviceNetworkProvisioningDelegateImpl.cpp", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 351 | "EFR32/DeviceNetworkProvisioningDelegateImpl.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 352 | "EFR32/EFR32Config.cpp", |
| 353 | "EFR32/EFR32Config.h", |
| 354 | "EFR32/InetPlatformConfig.h", |
| 355 | "EFR32/Logging.cpp", |
| 356 | "EFR32/PlatformManagerImpl.cpp", |
| 357 | "EFR32/PlatformManagerImpl.h", |
| 358 | "EFR32/SystemPlatformConfig.h", |
| 359 | "EFR32/freertos_bluetooth.c", |
| 360 | "EFR32/freertos_bluetooth.h", |
| 361 | "EFR32/gatt_db.c", |
| 362 | "EFR32/gatt_db.h", |
| 363 | "FreeRTOS/SystemTimeSupport.cpp", |
| 364 | ] |
rgoliver | bf60cc2 | 2021-01-26 21:15:59 -0500 | [diff] [blame] | 365 | |
| 366 | # Add pigweed KVS |
| 367 | deps = [ |
| 368 | "$dir_pw_kvs:crc16", |
| 369 | "$dir_pw_log", |
| 370 | ] |
Pankaj Garg | 9a791a8 | 2021-02-24 07:48:03 -0800 | [diff] [blame] | 371 | public_deps += [ |
| 372 | "$dir_pw_checksum", |
| 373 | "$dir_pw_kvs", |
| 374 | ] |
rgoliver | bf60cc2 | 2021-01-26 21:15:59 -0500 | [diff] [blame] | 375 | sources += [ |
| 376 | "EFR32/KeyValueStoreManagerImpl.cpp", |
| 377 | "EFR32/KeyValueStoreManagerImpl.h", |
| 378 | ] |
| 379 | |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 380 | if (chip_enable_openthread) { |
| 381 | public_deps += [ "${openthread_root}:libopenthread-ftd" ] |
| 382 | |
| 383 | sources += [ |
| 384 | "EFR32/ThreadStackManagerImpl.cpp", |
| 385 | "EFR32/ThreadStackManagerImpl.h", |
| 386 | "OpenThread/OpenThreadUtils.cpp", |
| 387 | ] |
| 388 | } |
| 389 | } else if (chip_device_platform == "esp32") { |
| 390 | sources += [ |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 391 | "ESP32/BLEManagerImpl.h", |
| 392 | "ESP32/CHIPDevicePlatformConfig.h", |
| 393 | "ESP32/CHIPDevicePlatformEvent.h", |
| 394 | "ESP32/ConfigurationManagerImpl.cpp", |
| 395 | "ESP32/ConfigurationManagerImpl.h", |
| 396 | "ESP32/ConnectivityManagerImpl.cpp", |
| 397 | "ESP32/ConnectivityManagerImpl.h", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 398 | "ESP32/DeviceNetworkProvisioningDelegateImpl.cpp", |
| 399 | "ESP32/DeviceNetworkProvisioningDelegateImpl.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 400 | "ESP32/ESP32Config.cpp", |
| 401 | "ESP32/ESP32Config.h", |
| 402 | "ESP32/ESP32Utils.cpp", |
| 403 | "ESP32/ESP32Utils.h", |
rgoliver | 6ce4044 | 2021-02-05 15:13:18 -0500 | [diff] [blame] | 404 | "ESP32/KeyValueStoreManagerImpl.cpp", |
| 405 | "ESP32/KeyValueStoreManagerImpl.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 406 | "ESP32/Logging.cpp", |
| 407 | "ESP32/LwIPCoreLock.cpp", |
Jiacheng Guo | 5ad6518 | 2020-10-30 04:14:16 +0800 | [diff] [blame] | 408 | "ESP32/MdnsImpl.cpp", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 409 | "ESP32/NetworkProvisioningServerImpl.h", |
| 410 | "ESP32/PlatformManagerImpl.cpp", |
| 411 | "ESP32/PlatformManagerImpl.h", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 412 | "ESP32/ServiceProvisioning.cpp", |
| 413 | "ESP32/ServiceProvisioning.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 414 | "ESP32/SoftwareUpdateManagerImpl.h", |
| 415 | "ESP32/SystemTimeSupport.cpp", |
Prasad Alatkar | 6b48d71 | 2020-10-02 20:25:00 +0530 | [diff] [blame] | 416 | "ESP32/bluedroid/BLEManagerImpl.cpp", |
| 417 | "ESP32/nimble/BLEManagerImpl.cpp", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 418 | "FreeRTOS/SystemTimeSupport.cpp", |
| 419 | ] |
Michael Spang | 247ea28 | 2020-11-20 16:58:11 -0500 | [diff] [blame] | 420 | |
| 421 | public_deps += [ "${chip_root}/src/crypto" ] |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 422 | } else if (chip_device_platform == "k32w") { |
| 423 | sources += [ |
| 424 | "FreeRTOS/SystemTimeSupport.cpp", |
| 425 | "K32W/BLEManagerImpl.cpp", |
| 426 | "K32W/BLEManagerImpl.h", |
| 427 | "K32W/CHIPDevicePlatformConfig.h", |
| 428 | "K32W/CHIPDevicePlatformEvent.h", |
| 429 | "K32W/ConfigurationManagerImpl.cpp", |
| 430 | "K32W/ConfigurationManagerImpl.h", |
| 431 | "K32W/ConnectivityManagerImpl.cpp", |
| 432 | "K32W/ConnectivityManagerImpl.h", |
doru91 | 9d0d48f | 2021-01-28 20:45:01 +0200 | [diff] [blame] | 433 | "K32W/DeviceNetworkProvisioningDelegateImpl.cpp", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 434 | "K32W/DeviceNetworkProvisioningDelegateImpl.h", |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 435 | "K32W/K32WConfig.cpp", |
| 436 | "K32W/K32WConfig.h", |
Pankaj Garg | 9a791a8 | 2021-02-24 07:48:03 -0800 | [diff] [blame] | 437 | "K32W/KeyValueStoreManagerImpl.cpp", |
| 438 | "K32W/KeyValueStoreManagerImpl.h", |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 439 | "K32W/Logging.cpp", |
| 440 | "K32W/NetworkProvisioningServerImpl.h", |
| 441 | "K32W/PlatformManagerImpl.cpp", |
| 442 | "K32W/PlatformManagerImpl.h", |
| 443 | "K32W/SoftwareUpdateManagerImpl.h", |
doru91 | 9d0d48f | 2021-01-28 20:45:01 +0200 | [diff] [blame] | 444 | "K32W/ble_function_mux.c", |
doru91 | 04ac26b | 2020-10-13 18:23:28 +0300 | [diff] [blame] | 445 | ] |
| 446 | |
| 447 | if (chip_enable_openthread) { |
| 448 | public_deps += [ "${openthread_root}:libopenthread-ftd" ] |
| 449 | |
| 450 | sources += [ |
| 451 | "K32W/ThreadStackManagerImpl.cpp", |
| 452 | "K32W/ThreadStackManagerImpl.h", |
| 453 | "OpenThread/OpenThreadUtils.cpp", |
| 454 | ] |
| 455 | } |
Michael Spang | 4863248 | 2021-01-28 19:11:47 -0500 | [diff] [blame] | 456 | |
| 457 | public_deps += [ "${chip_root}/src/crypto" ] |
Michael Spang | 4314d81 | 2020-08-07 10:17:09 -0400 | [diff] [blame] | 458 | } else if (chip_device_platform == "linux") { |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 459 | sources += [ |
| 460 | "Linux/BLEManagerImpl.cpp", |
| 461 | "Linux/BLEManagerImpl.h", |
| 462 | "Linux/BlePlatformConfig.h", |
| 463 | "Linux/CHIPDevicePlatformConfig.h", |
| 464 | "Linux/CHIPDevicePlatformEvent.h", |
| 465 | "Linux/CHIPLinuxStorage.cpp", |
| 466 | "Linux/CHIPLinuxStorage.h", |
| 467 | "Linux/CHIPLinuxStorageIni.cpp", |
| 468 | "Linux/CHIPLinuxStorageIni.h", |
| 469 | "Linux/CHIPPlatformConfig.h", |
| 470 | "Linux/ConfigurationManagerImpl.cpp", |
| 471 | "Linux/ConfigurationManagerImpl.h", |
| 472 | "Linux/ConnectivityManagerImpl.cpp", |
| 473 | "Linux/ConnectivityManagerImpl.h", |
Yufeng Wang | fb28e6d | 2020-11-03 12:47:38 -0800 | [diff] [blame] | 474 | "Linux/DeviceNetworkProvisioningDelegateImpl.cpp", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 475 | "Linux/DeviceNetworkProvisioningDelegateImpl.h", |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 476 | "Linux/InetPlatformConfig.h", |
rgoliver | bd88148 | 2021-01-28 09:16:27 -0500 | [diff] [blame] | 477 | "Linux/KeyValueStoreManagerImpl.cpp", |
| 478 | "Linux/KeyValueStoreManagerImpl.h", |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 479 | "Linux/Logging.cpp", |
| 480 | "Linux/PlatformManagerImpl.cpp", |
| 481 | "Linux/PlatformManagerImpl.h", |
| 482 | "Linux/PosixConfig.cpp", |
| 483 | "Linux/PosixConfig.h", |
| 484 | "Linux/SystemPlatformConfig.h", |
| 485 | "Linux/SystemTimeSupport.cpp", |
Andrei Litvin | 6d06bee | 2021-02-19 16:04:04 -0500 | [diff] [blame] | 486 | "Linux/bluez/AdapterIterator.cpp", |
| 487 | "Linux/bluez/AdapterIterator.h", |
Andrei Litvin | 5ca7308 | 2021-02-25 11:53:45 -0500 | [diff] [blame] | 488 | "Linux/bluez/ChipDeviceScanner.cpp", |
| 489 | "Linux/bluez/ChipDeviceScanner.h", |
Andrei Litvin | 6d06bee | 2021-02-19 16:04:04 -0500 | [diff] [blame] | 490 | "Linux/bluez/Helper.cpp", |
| 491 | "Linux/bluez/Helper.h", |
Andrei Litvin | 5ca7308 | 2021-02-25 11:53:45 -0500 | [diff] [blame] | 492 | "Linux/bluez/MainLoop.cpp", |
| 493 | "Linux/bluez/MainLoop.h", |
Andrei Litvin | 6d06bee | 2021-02-19 16:04:04 -0500 | [diff] [blame] | 494 | "Linux/bluez/Types.h", |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 495 | ] |
| 496 | |
Kamil Kasperczyk | 4401402 | 2021-03-12 21:18:45 +0100 | [diff] [blame^] | 497 | if (chip_mdns != "none") { |
Jiacheng Guo | 5de2929 | 2020-10-26 14:41:40 +0800 | [diff] [blame] | 498 | sources += [ |
| 499 | "Linux/MdnsImpl.cpp", |
| 500 | "Linux/MdnsImpl.h", |
| 501 | ] |
| 502 | |
| 503 | public_configs += [ ":avahi_client_config" ] |
| 504 | } |
| 505 | |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 506 | if (chip_enable_openthread) { |
| 507 | sources += [ |
| 508 | "Linux/ThreadStackManagerImpl.cpp", |
| 509 | "Linux/ThreadStackManagerImpl.h", |
| 510 | ] |
Jiacheng Guo | 77817a7 | 2020-08-18 00:54:16 +0800 | [diff] [blame] | 511 | public_deps += [ "${ot_br_posix_root}:ot_br_client" ] |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 512 | } |
| 513 | |
Yufeng Wang | e78b3a7 | 2020-08-12 09:13:26 -0700 | [diff] [blame] | 514 | if (chip_enable_wifi) { |
yunhanw-google | 2413242 | 2020-09-08 12:33:16 -0700 | [diff] [blame] | 515 | public_deps += [ "Linux/dbus/wpa" ] |
| 516 | } |
| 517 | |
| 518 | if (chip_enable_ble) { |
| 519 | public_deps += [ "Linux/dbus/bluez" ] |
Yufeng Wang | e78b3a7 | 2020-08-12 09:13:26 -0700 | [diff] [blame] | 520 | } |
| 521 | |
Michael Spang | 8d085b3 | 2020-07-10 10:26:23 -0400 | [diff] [blame] | 522 | public_deps += [ "${chip_root}/third_party/inipp" ] |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 523 | } else if (chip_device_platform == "nrfconnect") { |
Kedar Sovani | 8617e2a | 2020-08-30 02:33:21 +0530 | [diff] [blame] | 524 | sources += [ |
Kamil Kasperczyk | 74c2696 | 2021-01-11 15:38:59 +0100 | [diff] [blame] | 525 | "Zephyr/BLEManagerImpl.cpp", |
| 526 | "Zephyr/ConfigurationManagerImpl.cpp", |
Kamil Kasperczyk | cb845e1 | 2021-02-15 21:36:35 +0100 | [diff] [blame] | 527 | "Zephyr/KeyValueStoreManagerImpl.cpp", |
Kamil Kasperczyk | 74c2696 | 2021-01-11 15:38:59 +0100 | [diff] [blame] | 528 | "Zephyr/Logging.cpp", |
| 529 | "Zephyr/PlatformManagerImpl.cpp", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 530 | "Zephyr/SystemTimeSupport.cpp", |
Kamil Kasperczyk | 74c2696 | 2021-01-11 15:38:59 +0100 | [diff] [blame] | 531 | "Zephyr/ZephyrConfig.cpp", |
| 532 | "Zephyr/ZephyrConfig.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 533 | "nrfconnect/BLEManagerImpl.h", |
| 534 | "nrfconnect/BlePlatformConfig.h", |
| 535 | "nrfconnect/CHIPDevicePlatformConfig.h", |
| 536 | "nrfconnect/CHIPDevicePlatformEvent.h", |
| 537 | "nrfconnect/CHIPPlatformConfig.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 538 | "nrfconnect/ConfigurationManagerImpl.h", |
| 539 | "nrfconnect/ConnectivityManagerImpl.cpp", |
| 540 | "nrfconnect/ConnectivityManagerImpl.h", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 541 | "nrfconnect/DeviceNetworkProvisioningDelegateImpl.cpp", |
| 542 | "nrfconnect/DeviceNetworkProvisioningDelegateImpl.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 543 | "nrfconnect/InetPlatformConfig.h", |
Kamil Kasperczyk | cb845e1 | 2021-02-15 21:36:35 +0100 | [diff] [blame] | 544 | "nrfconnect/KeyValueStoreManagerImpl.h", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 545 | "nrfconnect/PlatformManagerImpl.h", |
| 546 | "nrfconnect/SystemPlatformConfig.h", |
Kedar Sovani | 8617e2a | 2020-08-30 02:33:21 +0530 | [diff] [blame] | 547 | ] |
Michael Spang | 3afd993 | 2020-08-20 14:00:46 -0400 | [diff] [blame] | 548 | |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 549 | if (chip_enable_openthread) { |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 550 | sources += [ |
Michael Spang | 3afd993 | 2020-08-20 14:00:46 -0400 | [diff] [blame] | 551 | "OpenThread/OpenThreadUtils.cpp", |
Kamil Kasperczyk | 74c2696 | 2021-01-11 15:38:59 +0100 | [diff] [blame] | 552 | "Zephyr/ThreadStackManagerImpl.cpp", |
Rafał Kuźnia | 90bc94c | 2020-08-31 19:54:04 +0200 | [diff] [blame] | 553 | "nrfconnect/ThreadStackManagerImpl.h", |
jepenven-silabs | cec75ca | 2020-08-04 09:38:48 -0400 | [diff] [blame] | 554 | ] |
| 555 | } |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 556 | } else if (chip_device_platform == "qpg6100") { |
| 557 | sources += [ |
| 558 | "FreeRTOS/SystemTimeSupport.cpp", |
| 559 | "qpg6100/BLEManagerImpl.cpp", |
| 560 | "qpg6100/BLEManagerImpl.h", |
| 561 | "qpg6100/BlePlatformConfig.h", |
| 562 | "qpg6100/CHIPDevicePlatformConfig.h", |
| 563 | "qpg6100/CHIPDevicePlatformEvent.h", |
| 564 | "qpg6100/CHIPPlatformConfig.h", |
| 565 | "qpg6100/ConfigurationManagerImpl.cpp", |
| 566 | "qpg6100/ConfigurationManagerImpl.h", |
| 567 | "qpg6100/ConnectivityManagerImpl.cpp", |
| 568 | "qpg6100/ConnectivityManagerImpl.h", |
Timothy Maes | 872015b | 2021-01-13 16:02:14 +0100 | [diff] [blame] | 569 | "qpg6100/DeviceNetworkProvisioningDelegateImpl.cpp", |
Pankaj Garg | 4239bcf | 2020-10-27 08:41:54 -0700 | [diff] [blame] | 570 | "qpg6100/DeviceNetworkProvisioningDelegateImpl.h", |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 571 | "qpg6100/InetPlatformConfig.h", |
| 572 | "qpg6100/Logging.cpp", |
| 573 | "qpg6100/PlatformManagerImpl.cpp", |
| 574 | "qpg6100/PlatformManagerImpl.h", |
| 575 | "qpg6100/SystemPlatformConfig.h", |
| 576 | "qpg6100/qpg6100Config.cpp", |
| 577 | "qpg6100/qpg6100Config.h", |
| 578 | ] |
| 579 | |
Pankaj Garg | 9a791a8 | 2021-02-24 07:48:03 -0800 | [diff] [blame] | 580 | sources += [ |
| 581 | "qpg6100/KeyValueStoreManagerImpl.cpp", |
| 582 | "qpg6100/KeyValueStoreManagerImpl.h", |
| 583 | ] |
| 584 | |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 585 | if (chip_enable_openthread) { |
Timothy Maes | 71c5019 | 2021-02-18 17:05:50 +0100 | [diff] [blame] | 586 | public_deps += [ "${openthread_root}:libopenthread-ftd" ] |
| 587 | |
| 588 | public_configs += [ "${chip_root}/third_party/openthread/platforms/qpg6100:openthread_qpg6100_config" ] |
| 589 | |
Timothy Maes | b5b3d38 | 2020-10-05 16:59:21 +0200 | [diff] [blame] | 590 | sources += [ |
| 591 | "OpenThread/OpenThreadUtils.cpp", |
| 592 | "qpg6100/ThreadStackManagerImpl.cpp", |
| 593 | "qpg6100/ThreadStackManagerImpl.h", |
| 594 | ] |
| 595 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 596 | } |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 597 | |
Kamil Kasperczyk | 4401402 | 2021-03-12 21:18:45 +0100 | [diff] [blame^] | 598 | if (chip_enable_openthread && chip_mdns == "platform" && |
| 599 | chip_device_platform != "linux") { |
| 600 | sources += [ "OpenThread/MdnsImpl.cpp" ] |
| 601 | } |
| 602 | |
Michael Spang | db9b861 | 2020-07-13 09:43:13 -0400 | [diff] [blame] | 603 | allow_circular_includes_from = [ "${chip_root}/src/lib/support" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 604 | } |
Jiacheng Guo | d8f58a0 | 2020-08-19 00:23:40 +0800 | [diff] [blame] | 605 | } else if (chip_device_platform == "external") { |
| 606 | group("platform") { |
| 607 | public_deps = [ "${chip_platform_target}" ] |
| 608 | } |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 609 | } else { |
| 610 | group("platform") { |
Jiacheng Guo | e4ac46a | 2020-11-11 00:04:34 +0800 | [diff] [blame] | 611 | public_deps = [ ":platform_buildconfig" ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 612 | } |
| 613 | } |