diff options
| author | Peter Harper <peter.harper@raspberrypi.com> | 2022-08-02 17:34:30 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-06-14 22:20:20 +1000 |
| commit | 35182a86884f23d8bbee212506abb785920be055 (patch) | |
| tree | 926e23f82b6c56d63a6965f5df1a53d8855cc39e /extmod/btstack | |
| parent | 1de335f7ff0758ebdda5bd6abea3ea45a9c29c5e (diff) | |
extmod/btstack: Add cmake support for BTstack.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/btstack')
| -rw-r--r-- | extmod/btstack/btstack.cmake | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/extmod/btstack/btstack.cmake b/extmod/btstack/btstack.cmake new file mode 100644 index 000000000..dd416fcbf --- /dev/null +++ b/extmod/btstack/btstack.cmake @@ -0,0 +1,60 @@ +set(BTSTACK_LIB_DIR "${MICROPY_DIR}/lib/btstack") +set(BTSTACK_EXTMOD_DIR "${MICROPY_DIR}/extmod/btstack") + +add_library(micropy_extmod_btstack INTERFACE) + +target_include_directories(micropy_extmod_btstack INTERFACE + ${MICROPY_DIR}/ + ${MICROPY_PORT_DIR}/ + ${BTSTACK_EXTMOD_DIR}/ + ${BTSTACK_LIB_DIR}/src + ${BTSTACK_LIB_DIR}/3rd-party/bluedroid/decoder/include + ${BTSTACK_LIB_DIR}/3rd-party/bluedroid/encoder/include + ${BTSTACK_LIB_DIR}/3rd-party/md5 + ${BTSTACK_LIB_DIR}/3rd-party/yxml +) + +target_sources(micropy_extmod_btstack INTERFACE + ${BTSTACK_LIB_DIR}/platform/embedded/hci_dump_embedded_stdout.c + ${BTSTACK_LIB_DIR}/src/ad_parser.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/ancs_client.c + ${BTSTACK_LIB_DIR}/src/ble/att_db.c + ${BTSTACK_LIB_DIR}/src/ble/att_db_util.c + ${BTSTACK_LIB_DIR}/src/ble/att_dispatch.c + ${BTSTACK_LIB_DIR}/src/ble/att_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/battery_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/cycling_power_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/cycling_speed_and_cadence_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/device_information_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/heart_rate_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/hids_device.c + ${BTSTACK_LIB_DIR}/src/mesh/gatt-service/mesh_provisioning_service_server.c + ${BTSTACK_LIB_DIR}/src/mesh/gatt-service/mesh_proxy_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/nordic_spp_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt-service/ublox_spp_service_server.c + ${BTSTACK_LIB_DIR}/src/ble/gatt_client.c + ${BTSTACK_LIB_DIR}/src/ble/le_device_db_memory.c + ${BTSTACK_LIB_DIR}/src/ble/sm.c + ${BTSTACK_LIB_DIR}/src/btstack_audio.c + ${BTSTACK_LIB_DIR}/src/btstack_base64_decoder.c + ${BTSTACK_LIB_DIR}/src/btstack_crypto.c + ${BTSTACK_LIB_DIR}/src/btstack_hid_parser.c + ${BTSTACK_LIB_DIR}/src/btstack_linked_list.c + ${BTSTACK_LIB_DIR}/src/btstack_memory.c + ${BTSTACK_LIB_DIR}/src/btstack_memory_pool.c + ${BTSTACK_LIB_DIR}/src/btstack_resample.c + ${BTSTACK_LIB_DIR}/src/btstack_ring_buffer.c + ${BTSTACK_LIB_DIR}/src/btstack_run_loop.c + ${BTSTACK_LIB_DIR}/src/btstack_run_loop_base.c + ${BTSTACK_LIB_DIR}/src/btstack_slip.c + ${BTSTACK_LIB_DIR}/src/btstack_tlv.c + ${BTSTACK_LIB_DIR}/src/btstack_tlv_none.c + ${BTSTACK_LIB_DIR}/src/btstack_util.c + ${BTSTACK_LIB_DIR}/src/hci.c + ${BTSTACK_LIB_DIR}/src/hci_cmd.c + ${BTSTACK_LIB_DIR}/src/hci_dump.c + ${BTSTACK_LIB_DIR}/src/hci_transport_em9304_spi.c + ${BTSTACK_LIB_DIR}/src/hci_transport_h4.c + ${BTSTACK_LIB_DIR}/src/l2cap.c + ${BTSTACK_LIB_DIR}/src/l2cap_signaling.c +) |
