Skip to content

Commit

Permalink
Restyled by gn
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and wqx6 committed Dec 25, 2023
1 parent db01acf commit ad209bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
18 changes: 5 additions & 13 deletions examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ buildconfig_header("custom_buildconfig") {
}

group("platform_buildconfig") {
public_deps = [
":custom_buildconfig",
]
public_deps = [ ":custom_buildconfig" ]
}

static_library("ESP32_custom") {
Expand Down Expand Up @@ -100,9 +98,9 @@ static_library("ESP32_custom") {
]

public_deps = [
":platform_buildconfig",
"${chip_root}/src/crypto",
"${chip_root}/src/platform:platform_base",
":platform_buildconfig",
]

if (chip_enable_ota_requestor) {
Expand All @@ -113,21 +111,15 @@ static_library("ESP32_custom") {
}

if (chip_enable_chipoble) {
sources += [
"BLEManagerImpl.h",
]
sources += [ "BLEManagerImpl.h" ]
}

if (chip_bt_nimble_enabled) {
sources += [
"nimble/BLEManagerImpl.cpp",
]
sources += [ "nimble/BLEManagerImpl.cpp" ]
}

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

if (chip_enable_wifi) {
Expand Down
5 changes: 3 additions & 2 deletions src/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ config("includes") {
"${root_gen_dir}/include",
]

if (chip_device_platform == "external" && chip_external_platform_include_dir != "") {
include_dirs += [ "${chip_external_platform_include_dir}"]
if (chip_device_platform == "external" &&
chip_external_platform_include_dir != "") {
include_dirs += [ "${chip_external_platform_include_dir}" ]
}

# TODO: generated file dependency should be a lib NOT an include
Expand Down

0 comments on commit ad209bd

Please sign in to comment.