From af823a7a4b5d040e10ec5e4c586040e938dfca33 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 16 Dec 2024 10:10:54 +0000 Subject: [PATCH] Restyled by gn --- .../all-clusters-app/nxp/rt/rt1060/BUILD.gn | 4 +-- .../all-clusters-app/nxp/rt/rt1170/BUILD.gn | 4 +-- .../all-clusters-app/nxp/rt/rw61x/BUILD.gn | 4 +-- examples/thermostat/nxp/rt/rt1060/BUILD.gn | 23 ++++++----------- examples/thermostat/nxp/rt/rt1170/BUILD.gn | 24 ++++++------------ examples/thermostat/nxp/rt/rw61x/BUILD.gn | 25 +++++++------------ 6 files changed, 31 insertions(+), 53 deletions(-) diff --git a/examples/all-clusters-app/nxp/rt/rt1060/BUILD.gn b/examples/all-clusters-app/nxp/rt/rt1060/BUILD.gn index 1f66d4110ffb2a..d5a4936a48f5a0 100644 --- a/examples/all-clusters-app/nxp/rt/rt1060/BUILD.gn +++ b/examples/all-clusters-app/nxp/rt/rt1060/BUILD.gn @@ -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 diff --git a/examples/all-clusters-app/nxp/rt/rt1170/BUILD.gn b/examples/all-clusters-app/nxp/rt/rt1170/BUILD.gn index 6cbf8d510d6905..edbd208506b824 100644 --- a/examples/all-clusters-app/nxp/rt/rt1170/BUILD.gn +++ b/examples/all-clusters-app/nxp/rt/rt1170/BUILD.gn @@ -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 diff --git a/examples/all-clusters-app/nxp/rt/rw61x/BUILD.gn b/examples/all-clusters-app/nxp/rt/rw61x/BUILD.gn index 87d96fac5ee75a..cb4e017b9b45bf 100644 --- a/examples/all-clusters-app/nxp/rt/rw61x/BUILD.gn +++ b/examples/all-clusters-app/nxp/rt/rw61x/BUILD.gn @@ -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 diff --git a/examples/thermostat/nxp/rt/rt1060/BUILD.gn b/examples/thermostat/nxp/rt/rt1060/BUILD.gn index 59a01cf02a9514..c365ee9d47b4ca 100644 --- a/examples/thermostat/nxp/rt/rt1060/BUILD.gn +++ b/examples/thermostat/nxp/rt/rt1060/BUILD.gn @@ -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", diff --git a/examples/thermostat/nxp/rt/rt1170/BUILD.gn b/examples/thermostat/nxp/rt/rt1170/BUILD.gn index a547b70f09facd..3e03df43488247 100644 --- a/examples/thermostat/nxp/rt/rt1170/BUILD.gn +++ b/examples/thermostat/nxp/rt/rt1170/BUILD.gn @@ -135,22 +135,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", @@ -158,7 +151,6 @@ rt_executable("thermostat") { } } - if (chip_with_diag_logs_demo) { include_dirs += [ "${common_example_dir}/diagnostic_logs/include", diff --git a/examples/thermostat/nxp/rt/rw61x/BUILD.gn b/examples/thermostat/nxp/rt/rw61x/BUILD.gn index a10a24054a3e27..6dd71061c010c5 100644 --- a/examples/thermostat/nxp/rt/rw61x/BUILD.gn +++ b/examples/thermostat/nxp/rt/rw61x/BUILD.gn @@ -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", @@ -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",