Skip to content

Commit

Permalink
Do not include Ble* platform specific files for Darwin if ble is not …
Browse files Browse the repository at this point in the history
…enabled (#3461)
  • Loading branch information
vivien-apple authored Oct 27, 2020
1 parent fcddc43 commit 3b333f0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/platform/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,7 @@ if (chip_device_platform != "none" && chip_device_platform != "external") {
sources += [
"Darwin/BLEManagerImpl.cpp",
"Darwin/BLEManagerImpl.h",
"Darwin/BleApplicationDelegate.h",
"Darwin/BleApplicationDelegateImpl.mm",
"Darwin/BleConnectionDelegate.h",
"Darwin/BleConnectionDelegateImpl.mm",
"Darwin/BlePlatformConfig.h",
"Darwin/BlePlatformDelegate.h",
"Darwin/BlePlatformDelegateImpl.mm",
"Darwin/CHIPDevicePlatformConfig.h",
"Darwin/CHIPDevicePlatformEvent.h",
"Darwin/CHIPPlatformConfig.h",
Expand All @@ -218,6 +212,17 @@ if (chip_device_platform != "none" && chip_device_platform != "external") {
"Darwin/PosixConfig.h",
"Darwin/SystemPlatformConfig.h",
]

if (chip_enable_ble) {
sources += [
"Darwin/BleApplicationDelegate.h",
"Darwin/BleApplicationDelegateImpl.mm",
"Darwin/BleConnectionDelegate.h",
"Darwin/BleConnectionDelegateImpl.mm",
"Darwin/BlePlatformDelegate.h",
"Darwin/BlePlatformDelegateImpl.mm",
]
}
} else if (chip_device_platform == "efr32") {
sources += [
"EFR32/BLEManagerImpl.cpp",
Expand Down

0 comments on commit 3b333f0

Please sign in to comment.