blob: 2af62c34d6accc1f2120c8861de6e2cb7ea3f7bb [file] [log] [blame]
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build_overrides/chip.gni")
import("${chip_root}/src/platform/device.gni")
assert(chip_device_platform == "cyw30739")
if (chip_enable_openthread) {
import("//build_overrides/openthread.gni")
}
static_library("CYW30739") {
sources = [
"../../SingletonConfigurationManager.cpp",
"BLEManagerImpl.cpp",
"BLEManagerImpl.h",
"BlePlatformConfig.h",
"CHIPDevicePlatformConfig.h",
"CHIPDevicePlatformEvent.h",
"CHIPPlatformConfig.h",
"CYW30739Config.cpp",
"CYW30739Config.h",
"ConfigurationManagerImpl.cpp",
"ConfigurationManagerImpl.h",
"ConnectivityManagerImpl.cpp",
"ConnectivityManagerImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"EventFlags.cpp",
"EventFlags.h",
"FactoryDataProvider.cpp",
"FactoryDataProvider.h",
"InetPlatformConfig.h",
"KeyValueStoreManagerImpl.cpp",
"KeyValueStoreManagerImpl.h",
"Logging.cpp",
"PlatformManagerImpl.cpp",
"PlatformManagerImpl.h",
"SystemPlatformConfig.h",
"SystemTimeSupport.cpp",
"cycfg_gatt_db.c",
"cycfg_gatt_db.h",
"cyw30739-chip-mbedtls-config.h",
]
if (chip_enable_ota_requestor) {
sources += [
"OTAImageProcessorImpl.cpp",
"OTAImageProcessorImpl.h",
]
}
deps = [ "${chip_root}/src/crypto" ]
public = [
"${chip_root}/src/credentials/DeviceAttestationCredsProvider.h",
"FactoryDataProvider.h",
"OTAImageProcessorImpl.h",
]
public_deps = [ "${chip_root}/src/platform:platform_base" ]
if (chip_enable_openthread) {
sources += [
"../../OpenThread/OpenThreadUtils.cpp",
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
public_configs = [
"${chip_root}/src/lib/address_resolve:default_address_resolve_config",
]
deps += [
"${chip_root}/third_party/openthread/platforms:libopenthread-platform",
]
if (chip_openthread_ftd) {
deps += [ "${chip_root}/third_party/openthread/repo:libopenthread-ftd" ]
} else {
deps += [ "${chip_root}/third_party/openthread/repo:libopenthread-mtd" ]
}
if (chip_mdns == "platform") {
sources += [
"../../OpenThread/DnssdImpl.cpp",
"../../OpenThread/OpenThreadDnssdImpl.cpp",
"../../OpenThread/OpenThreadDnssdImpl.h",
]
deps += [ "${chip_root}/src/lib/dnssd:platform_header" ]
}
}
}