blob: 85d3fde0466553bacaa82b79629e4ce623f2efde [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 == "cc13x2_26x2")
if (chip_enable_openthread) {
import("//build_overrides/openthread.gni")
}
static_library("cc13x2_26x2") {
sources = [
"../FreeRTOS/SystemTimeSupport.cpp",
"../SingletonConfigurationManager.cpp",
"BlePlatformConfig.h",
"CC13X2_26X2Config.cpp",
"CC13X2_26X2Config.h",
"CHIPDevicePlatformConfig.h",
"CHIPDevicePlatformConfig.h",
"CHIPDevicePlatformEvent.h",
"ConfigurationManagerImpl.cpp",
"ConnectivityManagerImpl.cpp",
"ConnectivityManagerImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"InetPlatformConfig.h",
"KeyValueStoreManagerImpl.cpp",
"KeyValueStoreManagerImpl.h",
"Logging.cpp",
"PlatformManagerImpl.cpp",
"PlatformManagerImpl.h",
"Random.c",
"SystemPlatformConfig.h",
]
deps = []
public_deps = [
"${chip_root}/src/crypto",
"${chip_root}/src/platform:platform_base",
]
public_configs =
[ "${chip_root}/src/lib/address_resolve:default_address_resolve_config" ]
if (chip_enable_ble) {
sources += [
"BLEManagerImpl.cpp",
"BLEManagerImpl.h",
]
}
if (chip_enable_ota_requestor) {
sources += [
# this needs to be in the final link to place the data correctly
# see ${chip_root}/third_party/ti_simplelink_sdk/ti_simplelink_executable.gni
#"oad_image_header.c",
"OTAImageProcessorImpl.cpp",
"OTAImageProcessorImpl.h",
]
}
if (chip_enable_openthread) {
# needed for MTD/FTD
import("//build_overrides/ti_simplelink_sdk.gni")
import("${ti_simplelink_sdk_build_root}/ti_simplelink_board.gni")
public_deps += [
"${chip_root}/third_party/ti_simplelink_sdk:mbedtls",
"${chip_root}/third_party/ti_simplelink_sdk:ti_simplelink_sdk",
"${chip_root}/third_party/ti_simplelink_sdk:ti_simplelink_sysconfig",
]
if (chip_openthread_ftd) {
public_deps +=
[ "${chip_root}/third_party/openthread/repo:libopenthread-ftd" ]
} else {
public_deps +=
[ "${chip_root}/third_party/openthread/repo:libopenthread-mtd" ]
}
sources += [
"../OpenThread/OpenThreadUtils.cpp",
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
if (chip_mdns == "platform") {
sources += [ "../OpenThread/DnssdImpl.cpp" ]
deps += [ "${chip_root}/src/lib/dnssd:platform_header" ]
}
}
}