Skip to content

Commit

Permalink
Merge branch 'example/blemesh_bridge_platform_update' into 'main'
Browse files Browse the repository at this point in the history
blemesh_bridge: sync nimble/BLEManagerImpl.cpp for blemesh_bridge

See merge request app-frameworks/esp-matter!652
  • Loading branch information
dhrishi committed Mar 25, 2024
2 parents 8b7d90a + b6ddb30 commit e8e6d70
Show file tree
Hide file tree
Showing 3 changed files with 622 additions and 33 deletions.
71 changes: 62 additions & 9 deletions examples/common/blemesh_platform/platform/ESP32_custom/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ static_library("ESP32_custom") {
"${chip_root}/src/setup_payload",
]

public = [ "${chip_root}/src/credentials/DeviceAttestationCredsProvider.h" ]
public = [
"${chip_root}/src/credentials/CHIPCert.h",
"${chip_root}/src/credentials/DeviceAttestationCredsProvider.h",
]

public_deps = [
"${chip_root}/src/crypto",
Expand All @@ -132,19 +135,31 @@ static_library("ESP32_custom") {
if (chip_enable_chipoble) {
sources += [
"BLEManagerImpl.h",
"ChipDeviceScanner.h",
]
}

if (chip_enable_ble_controller) {
sources += [ "ChipDeviceScanner.h" ]
}

if (chip_bt_nimble_enabled) {
sources += [
"nimble/BLEManagerImpl.cpp",
]
sources += [ "nimble/BLEManagerImpl.cpp" ]
if (chip_enable_ble_controller) {
sources += [
"nimble/ChipDeviceScanner.cpp",
"nimble/blecent.h",
"nimble/misc.c",
"nimble/peer.c",
]
}
}

if (chip_bt_bluedroid_enabled) {
sources += [
"bluedroid/BLEManagerImpl.cpp",
]
sources += [ "bluedroid/BLEManagerImpl.cpp" ]
if (chip_enable_ble_controller) {
sources += [ "bluedroid/ChipDeviceScanner.cpp" ]
}
}

if (chip_enable_wifi) {
Expand All @@ -159,6 +174,9 @@ static_library("ESP32_custom") {
"WiFiDnssdImpl.h",
]
}
if (chip_mdns == "minimal") {
sources += [ "ESP32EndpointQueueFilter.h" ]
}
if (chip_enable_route_hook) {
sources += [
"route_hook/ESP32RouteHook.c",
Expand All @@ -169,15 +187,34 @@ static_library("ESP32_custom") {
}
}

if (chip_mdns == "platform") {
sources += [ "DnssdImpl.cpp" ]
}

if (chip_enable_ethernet) {
sources += [
"ConnectivityManagerImpl_Ethernet.cpp",
"NetworkCommissioningDriver_Ethernet.cpp",
]
}

if (chip_mdns == "platform") {
sources += [ "DnssdImpl.cpp" ]
if (chip_enable_openthread) {
sources += [
"${chip_root}/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp",
"${chip_root}/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.h",
"${chip_root}/src/platform/OpenThread/OpenThreadUtils.cpp",
"OpenthreadLauncher.cpp",
"OpenthreadLauncher.h",
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
if (chip_mdns == "platform") {
sources += [
"${chip_root}/src/platform/OpenThread/OpenThreadDnssdImpl.cpp",
"${chip_root}/src/platform/OpenThread/OpenThreadDnssdImpl.h",
]
}
configs -= [ "${chip_root}/build/config/compiler:warnings_default" ]
}

if (chip_use_factory_data_provider) {
Expand All @@ -193,4 +230,20 @@ static_library("ESP32_custom") {
"ESP32DeviceInfoProvider.h",
]
}

if (chip_use_secure_cert_dac_provider) {
sources += [
"ESP32SecureCertDACProvider.cpp",
"ESP32SecureCertDACProvider.h",
]
}

if (chip_use_esp32_ecdsa_peripheral) {
sources += [
"ESP32CHIPCryptoPAL.cpp",
"ESP32CHIPCryptoPAL.h",
]
}

cflags = [ "-Wconversion" ]
}
Loading

0 comments on commit e8e6d70

Please sign in to comment.