Skip to content

Commit

Permalink
Add pico_btstack_mesh CMake library to link BlueTooth Mesh capabili…
Browse files Browse the repository at this point in the history
…ties hidden in BTstack
  • Loading branch information
theshteves authored and peterharperuk committed Oct 25, 2024
1 parent 3708588 commit f08fe38
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions src/rp2_common/pico_btstack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
${PICO_BTSTACK_PATH}/src/hci_event.c
${PICO_BTSTACK_PATH}/src/l2cap.c
${PICO_BTSTACK_PATH}/src/l2cap_signaling.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_provisioning_service_server.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_proxy_service_server.c
${PICO_BTSTACK_PATH}/3rd-party/md5/md5.c
${PICO_BTSTACK_PATH}/3rd-party/yxml/yxml.c
${CMAKE_CURRENT_LIST_DIR}/btstack_stdin_pico.c
Expand Down Expand Up @@ -157,6 +155,49 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
ENABLE_CLASSIC=1
)

pico_add_library(pico_btstack_mesh)
target_sources(pico_btstack_mesh INTERFACE
${PICO_BTSTACK_PATH}/src/mesh/mesh.c
${PICO_BTSTACK_PATH}/src/mesh/adv_bearer.c
${PICO_BTSTACK_PATH}/src/mesh/beacon.c
${PICO_BTSTACK_PATH}/src/mesh/gatt_bearer.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_provisioning_service_server.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_proxy_service_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_access.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_configuration_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_configuration_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_crypto.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_foundation.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_default_transition_time_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_default_transition_time_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_level_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_level_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_on_off_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_on_off_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_health_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_iv_index_seq_number.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_keys.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_lower_transport.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_network.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_node.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_peer.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_proxy.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_upper_transport.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_virtual_addresses.c
${PICO_BTSTACK_PATH}/src/mesh/pb_adv.c
${PICO_BTSTACK_PATH}/src/mesh/pb_gatt.c
${PICO_BTSTACK_PATH}/src/mesh/provisioning.c
${PICO_BTSTACK_PATH}/src/mesh/provisioning_device.c
${PICO_BTSTACK_PATH}/src/mesh/provisioning_provisioner.c
)
pico_mirrored_target_link_libraries(pico_btstack_mesh INTERFACE
pico_btstack_ble
)
target_compile_definitions(pico_btstack_mesh_headers INTERFACE
ENABLE_MESH=1
)

pico_add_library(pico_btstack_flash_bank)
target_sources(pico_btstack_flash_bank INTERFACE
${CMAKE_CURRENT_LIST_DIR}/btstack_flash_bank.c
Expand Down

0 comments on commit f08fe38

Please sign in to comment.