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 Martin-NXP committed Dec 16, 2024
1 parent 764b93a commit af823a7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 53 deletions.
4 changes: 2 additions & 2 deletions examples/all-clusters-app/nxp/rt/rt1060/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ rt_executable("all_cluster_app") {
]
}

if(chip_enable_ble){
defines += ["APP_BT_DEVICE_NAME=\"NXP-AllClustersApp\""]
if (chip_enable_ble) {
defines += [ "APP_BT_DEVICE_NAME=\"NXP-AllClustersApp\"" ]
}

# In case a dedicated assert function needs to be supported the flag sdk_fsl_assert_support should be set to false
Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-app/nxp/rt/rt1170/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ rt_executable("all_cluster_app") {
sources += [ "${common_example_dir}/wifi_connect/source/WifiConnect.cpp" ]
}

if(chip_enable_ble){
defines += ["APP_BT_DEVICE_NAME=\"NXP-AllClustersApp\""]
if (chip_enable_ble) {
defines += [ "APP_BT_DEVICE_NAME=\"NXP-AllClustersApp\"" ]
}

# In case a dedicated assert function needs to be supported the flag sdk_fsl_assert_support should be set to false
Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-app/nxp/rt/rw61x/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ rt_executable("all_cluster_app") {
sources += [ "${common_example_dir}/wifi_connect/source/WifiConnect.cpp" ]
}

if(chip_enable_ble){
defines += ["APP_BT_DEVICE_NAME=\"NXP-AllClustersApp\""]
if (chip_enable_ble) {
defines += [ "APP_BT_DEVICE_NAME=\"NXP-AllClustersApp\"" ]
}

# In case a dedicated assert function needs to be supported the flag sdk_fsl_assert_support should be set to false
Expand Down
23 changes: 8 additions & 15 deletions examples/thermostat/nxp/rt/rt1060/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,15 @@ rt_executable("thermostat") {
"../../common/main/main.cpp",
]

if(chip_enable_ble){
defines += ["APP_BT_DEVICE_NAME=\"NXP-ThermostatApp\""]
include_dirs += [
"${common_example_dir}/app_ble/include",
]
if(ble_adv_data_custom){
if (chip_enable_ble) {
defines += [ "APP_BT_DEVICE_NAME=\"NXP-ThermostatApp\"" ]
include_dirs += [ "${common_example_dir}/app_ble/include" ]
if (ble_adv_data_custom) {
# to customize BLE advertising data
defines += [ "CONFIG_CHIP_CUSTOM_BLE_ADV_DATA=1",]
include_dirs += [
"${chip_root}/src/platform/nxp/common/ble_zephyr"
]
sources += [
"../../common/main/BleZephyrManagerApp.cpp",
]
}
else{
defines += [ "CONFIG_CHIP_CUSTOM_BLE_ADV_DATA=1" ]
include_dirs += [ "${chip_root}/src/platform/nxp/common/ble_zephyr" ]
sources += [ "../../common/main/BleZephyrManagerApp.cpp" ]
} else {
# Empty implementation, default matter advertising data
sources += [
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
Expand Down
24 changes: 8 additions & 16 deletions examples/thermostat/nxp/rt/rt1170/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -135,30 +135,22 @@ rt_executable("thermostat") {
"../../common/main/main.cpp",
]

if(chip_enable_ble){
defines += ["APP_BT_DEVICE_NAME=\"NXP-ThermostatApp\""]
include_dirs += [
"${common_example_dir}/app_ble/include",
]
if(ble_adv_data_custom){
if (chip_enable_ble) {
defines += [ "APP_BT_DEVICE_NAME=\"NXP-ThermostatApp\"" ]
include_dirs += [ "${common_example_dir}/app_ble/include" ]
if (ble_adv_data_custom) {
# to customize BLE advertising data
defines += [ "CONFIG_CHIP_CUSTOM_BLE_ADV_DATA=1",]
include_dirs += [
"${chip_root}/src/platform/nxp/common/ble_zephyr"
]
sources += [
"../../common/main/BleZephyrManagerApp.cpp",
]
}
else{
defines += [ "CONFIG_CHIP_CUSTOM_BLE_ADV_DATA=1" ]
include_dirs += [ "${chip_root}/src/platform/nxp/common/ble_zephyr" ]
sources += [ "../../common/main/BleZephyrManagerApp.cpp" ]
} else {
# Empty implementation, default matter advertising data
sources += [
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
]
}
}


if (chip_with_diag_logs_demo) {
include_dirs += [
"${common_example_dir}/diagnostic_logs/include",
Expand Down
25 changes: 9 additions & 16 deletions examples/thermostat/nxp/rt/rw61x/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -145,22 +145,15 @@ rt_executable("thermostat") {
"../../common/main/main.cpp",
]

if(chip_enable_ble){
defines += ["APP_BT_DEVICE_NAME=\"NXP-ThermostatApp\""]
include_dirs += [
"${common_example_dir}/app_ble/include",
]
if(ble_adv_data_custom){
if (chip_enable_ble) {
defines += [ "APP_BT_DEVICE_NAME=\"NXP-ThermostatApp\"" ]
include_dirs += [ "${common_example_dir}/app_ble/include" ]
if (ble_adv_data_custom) {
# to customize BLE advertising data
defines += [ "CONFIG_CHIP_CUSTOM_BLE_ADV_DATA=1",]
include_dirs += [
"${chip_root}/src/platform/nxp/common/ble_zephyr"
]
sources += [
"../../common/main/BleZephyrManagerApp.cpp",
]
}
else{
defines += [ "CONFIG_CHIP_CUSTOM_BLE_ADV_DATA=1" ]
include_dirs += [ "${chip_root}/src/platform/nxp/common/ble_zephyr" ]
sources += [ "../../common/main/BleZephyrManagerApp.cpp" ]
} else {
# Empty implementation, default matter advertising data
sources += [
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
Expand Down Expand Up @@ -200,7 +193,7 @@ rt_executable("thermostat") {
"${common_example_dir}/device_callbacks/include",
"${common_example_dir}/app_task/include",
"${common_example_dir}/factory_data/include",
]
]

sources += [
"${common_example_dir}/app_task/source/AppTaskBase.cpp",
Expand Down

0 comments on commit af823a7

Please sign in to comment.