Skip to content

Commit 0d2d4c7

Browse files
committed
style: samples: apply coding style on CMakeLists.txt files
Apply the CMake style guidelines to CMakeList.txt files in samples/. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent bd56c10 commit 0d2d4c7

File tree

32 files changed

+284
-281
lines changed

32 files changed

+284
-281
lines changed

samples/bluetooth/bap_broadcast_sink/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/bap_broadcast_source/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/bap_unicast_client/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/bap_unicast_server/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/cap_acceptor/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/cap_initiator/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/ccp_call_control_client/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/ccp_call_control_server/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/central_hr/sysbuild.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
5+
# For builds in the nrf5340, we build the netcore image with the controller
66

7-
set(NET_APP hci_ipc)
8-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
99

10-
ExternalZephyrProject_Add(
11-
APPLICATION ${NET_APP}
12-
SOURCE_DIR ${NET_APP_SRC_DIR}
13-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14-
)
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
1515

16-
set(${NET_APP}_EXTRA_CONF_FILE
17-
${ZEPHYR_BASE}/samples/bluetooth/central_hr/overlay-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
16+
set(${NET_APP}_EXTRA_CONF_FILE
17+
${ZEPHYR_BASE}/samples/bluetooth/central_hr/overlay-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
2020

21-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
21+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
2222
endif()
2323

2424
native_simulator_set_final_executable(${DEFAULT_IMAGE})

samples/bluetooth/iso_broadcast_benchmark/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ project(iso_broadcast_benchmark)
1212
FILE(GLOB app_sources src/*.c)
1313

1414
target_sources(app PRIVATE
15-
${app_sources}
15+
${app_sources}
1616
)
1717

1818
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

0 commit comments

Comments
 (0)