2023-08-28 02:02:08 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
|
|
|
|
2023-09-07 22:10:07 -04:00
|
|
|
# API headers that are used in the docs are also compiled
|
|
|
|
# even if CONFIG_BT_ENABLED=n as long as CONFIG_IDF_DOC_BUILD=y
|
|
|
|
|
|
|
|
if(CONFIG_IDF_TARGET_ESP32)
|
|
|
|
set(target_specific_include_dirs include/esp32/include)
|
|
|
|
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
set(target_specific_include_dirs include/esp32c3/include)
|
|
|
|
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32S3)
|
|
|
|
set(target_specific_include_dirs include/esp32c3/include)
|
|
|
|
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C2)
|
|
|
|
set(target_specific_include_dirs include/esp32c2/include)
|
|
|
|
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C6)
|
|
|
|
set(target_specific_include_dirs include/esp32c6/include)
|
|
|
|
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32H2)
|
|
|
|
set(target_specific_include_dirs include/esp32h2/include)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(common_include_dirs
|
|
|
|
common/api/include/api
|
|
|
|
common/btc/profile/esp/blufi/include
|
|
|
|
common/btc/profile/esp/include
|
|
|
|
)
|
|
|
|
|
|
|
|
set(ble_mesh_include_dirs
|
|
|
|
"esp_ble_mesh/common/include"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/include"
|
|
|
|
"esp_ble_mesh/core"
|
|
|
|
"esp_ble_mesh/core/include"
|
|
|
|
"esp_ble_mesh/core/storage"
|
|
|
|
"esp_ble_mesh/btc/include"
|
|
|
|
"esp_ble_mesh/models/common/include"
|
|
|
|
"esp_ble_mesh/models/client/include"
|
|
|
|
"esp_ble_mesh/models/server/include"
|
|
|
|
"esp_ble_mesh/api/core/include"
|
|
|
|
"esp_ble_mesh/api/models/include"
|
|
|
|
"esp_ble_mesh/api"
|
2023-11-07 20:57:57 -05:00
|
|
|
"esp_ble_mesh/lib/include"
|
2023-09-07 22:10:07 -04:00
|
|
|
"esp_ble_mesh/v1.1/api/core/include"
|
|
|
|
"esp_ble_mesh/v1.1/api/models/include"
|
|
|
|
"esp_ble_mesh/v1.1/btc/include"
|
|
|
|
)
|
|
|
|
|
|
|
|
set(bluedroid_include_dirs host/bluedroid/api/include/api)
|
|
|
|
|
2023-12-27 00:43:57 -05:00
|
|
|
if(CONFIG_BT_CONTROLLER_ENABLED OR CONFIG_IDF_DOC_BUILD)
|
2023-09-07 22:10:07 -04:00
|
|
|
set(nimble_hci_include_dirs host/nimble/esp-hci/include)
|
2023-12-27 00:43:57 -05:00
|
|
|
endif()
|
2023-09-07 22:10:07 -04:00
|
|
|
|
|
|
|
if(CONFIG_IDF_DOC_BUILD)
|
|
|
|
list(APPEND include_dirs
|
|
|
|
${target_specific_include_dirs}
|
|
|
|
${common_include_dirs}
|
|
|
|
${ble_mesh_include_dirs}
|
|
|
|
${bluedroid_include_dirs}
|
|
|
|
${nimble_hci_include_dirs})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2018-03-22 02:27:10 -04:00
|
|
|
if(CONFIG_BT_ENABLED)
|
2020-07-09 08:58:13 -04:00
|
|
|
|
2022-06-03 09:57:44 -04:00
|
|
|
set(srcs "")
|
|
|
|
set(include_dirs "")
|
2023-10-08 04:08:47 -04:00
|
|
|
set(ldfragments "linker.lf")
|
2023-08-31 21:29:40 -04:00
|
|
|
if(CONFIG_BT_CONTROLLER_ENABLED)
|
|
|
|
if(CONFIG_IDF_TARGET_ESP32)
|
|
|
|
list(APPEND srcs "controller/esp32/bt.c"
|
|
|
|
"controller/esp32/hli_api.c"
|
|
|
|
"controller/esp32/hli_vectors.S")
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C3)
|
|
|
|
list(APPEND srcs "controller/esp32c3/bt.c")
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32S3)
|
|
|
|
list(APPEND srcs "controller/esp32c3/bt.c")
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C2)
|
|
|
|
list(APPEND srcs "controller/esp32c2/bt.c")
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C2)
|
|
|
|
set(ldfragments "linker.lf.esp32c2")
|
|
|
|
list(APPEND srcs "controller/esp32c2/bt.c")
|
2022-11-21 03:36:02 -05:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C6)
|
|
|
|
list(APPEND srcs "controller/esp32c6/bt.c")
|
2023-02-02 22:34:10 -05:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32H2)
|
|
|
|
list(APPEND srcs "controller/esp32h2/bt.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
list(APPEND include_dirs ${target_specific_include_dirs})
|
2019-06-30 04:39:00 -04:00
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
endif()
|
2022-06-17 09:11:34 -04:00
|
|
|
|
2022-06-03 09:57:44 -04:00
|
|
|
# Common
|
|
|
|
list(APPEND include_dirs common/osi/include)
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
list(APPEND priv_include_dirs
|
|
|
|
common/btc/include
|
2022-06-17 10:04:37 -04:00
|
|
|
common/include
|
|
|
|
porting/mem/
|
|
|
|
)
|
2023-09-07 22:10:07 -04:00
|
|
|
list(APPEND include_dirs ${common_include_dirs})
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
list(APPEND srcs "common/btc/core/btc_alarm.c"
|
2021-03-31 00:51:48 -04:00
|
|
|
"common/api/esp_blufi_api.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"common/btc/core/btc_manage.c"
|
|
|
|
"common/btc/core/btc_task.c"
|
2021-03-31 00:51:48 -04:00
|
|
|
"common/btc/profile/esp/blufi/blufi_prf.c"
|
|
|
|
"common/btc/profile/esp/blufi/blufi_protocol.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"common/osi/alarm.c"
|
|
|
|
"common/osi/allocator.c"
|
|
|
|
"common/osi/buffer.c"
|
|
|
|
"common/osi/config.c"
|
|
|
|
"common/osi/fixed_queue.c"
|
2022-07-17 13:55:37 -04:00
|
|
|
"common/osi/pkt_queue.c"
|
2022-07-19 23:18:33 -04:00
|
|
|
"common/osi/fixed_pkt_queue.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"common/osi/future.c"
|
|
|
|
"common/osi/hash_functions.c"
|
|
|
|
"common/osi/hash_map.c"
|
|
|
|
"common/osi/list.c"
|
|
|
|
"common/osi/mutex.c"
|
|
|
|
"common/osi/thread.c"
|
|
|
|
"common/osi/osi.c"
|
2022-06-17 09:11:34 -04:00
|
|
|
"common/osi/semaphore.c"
|
|
|
|
"porting/mem/bt_osi_mem.c"
|
|
|
|
)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2022-06-03 09:57:44 -04:00
|
|
|
# Host Bluedroid
|
2019-05-02 09:36:06 -04:00
|
|
|
if(CONFIG_BT_BLUEDROID_ENABLED)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2019-04-28 03:38:23 -04:00
|
|
|
list(APPEND priv_include_dirs
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/include
|
|
|
|
host/bluedroid/bta/ar/include
|
|
|
|
host/bluedroid/bta/av/include
|
|
|
|
host/bluedroid/bta/dm/include
|
|
|
|
host/bluedroid/bta/gatt/include
|
2019-10-09 05:24:30 -04:00
|
|
|
host/bluedroid/bta/hf_ag/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/hf_client/include
|
2021-09-07 03:29:22 -04:00
|
|
|
host/bluedroid/bta/hd/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/bta/hh/include
|
|
|
|
host/bluedroid/bta/jv/include
|
|
|
|
host/bluedroid/bta/sdp/include
|
|
|
|
host/bluedroid/bta/sys/include
|
|
|
|
host/bluedroid/device/include
|
|
|
|
host/bluedroid/hci/include
|
|
|
|
host/bluedroid/external/sbc/decoder/include
|
|
|
|
host/bluedroid/external/sbc/encoder/include
|
|
|
|
host/bluedroid/external/sbc/plc/include
|
|
|
|
host/bluedroid/btc/profile/esp/include
|
|
|
|
host/bluedroid/btc/profile/std/a2dp/include
|
|
|
|
host/bluedroid/btc/profile/std/include
|
|
|
|
host/bluedroid/btc/include
|
|
|
|
host/bluedroid/stack/btm/include
|
|
|
|
host/bluedroid/stack/gap/include
|
|
|
|
host/bluedroid/stack/gatt/include
|
2021-09-07 03:29:22 -04:00
|
|
|
host/bluedroid/stack/hid/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/bluedroid/stack/l2cap/include
|
|
|
|
host/bluedroid/stack/sdp/include
|
|
|
|
host/bluedroid/stack/smp/include
|
|
|
|
host/bluedroid/stack/avct/include
|
|
|
|
host/bluedroid/stack/avrc/include
|
|
|
|
host/bluedroid/stack/avdt/include
|
|
|
|
host/bluedroid/stack/a2dp/include
|
|
|
|
host/bluedroid/stack/rfcomm/include
|
|
|
|
host/bluedroid/stack/include
|
2023-08-29 04:49:49 -04:00
|
|
|
host/bluedroid/common/include
|
|
|
|
host/bluedroid/config/include)
|
2018-04-18 03:54:28 -04:00
|
|
|
|
2023-09-07 22:10:07 -04:00
|
|
|
list(APPEND include_dirs ${bluedroid_include_dirs})
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
list(APPEND srcs "host/bluedroid/api/esp_a2dp_api.c"
|
|
|
|
"host/bluedroid/api/esp_avrc_api.c"
|
2023-08-31 21:29:40 -04:00
|
|
|
"host/bluedroid/api/esp_bluedroid_hci.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/api/esp_bt_device.c"
|
|
|
|
"host/bluedroid/api/esp_bt_main.c"
|
|
|
|
"host/bluedroid/api/esp_gap_ble_api.c"
|
|
|
|
"host/bluedroid/api/esp_gap_bt_api.c"
|
|
|
|
"host/bluedroid/api/esp_gatt_common_api.c"
|
|
|
|
"host/bluedroid/api/esp_gattc_api.c"
|
|
|
|
"host/bluedroid/api/esp_gatts_api.c"
|
2021-09-07 03:29:22 -04:00
|
|
|
"host/bluedroid/api/esp_hidd_api.c"
|
|
|
|
"host/bluedroid/api/esp_hidh_api.c"
|
2019-10-09 05:24:30 -04:00
|
|
|
"host/bluedroid/api/esp_hf_ag_api.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/api/esp_hf_client_api.c"
|
|
|
|
"host/bluedroid/api/esp_spp_api.c"
|
2022-04-21 02:26:29 -04:00
|
|
|
"host/bluedroid/api/esp_sdp_api.c"
|
2022-04-20 23:45:55 -04:00
|
|
|
"host/bluedroid/api/esp_l2cap_bt_api.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/bta/ar/bta_ar.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_aact.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_act.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_api.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_cfg.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_ci.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_main.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_sbc.c"
|
|
|
|
"host/bluedroid/bta/av/bta_av_ssm.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_act.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_api.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_cfg.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_ci.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_co.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_main.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_pm.c"
|
|
|
|
"host/bluedroid/bta/dm/bta_dm_sco.c"
|
2021-01-04 21:32:47 -05:00
|
|
|
"host/bluedroid/bta/dm/bta_dm_qos.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/bta/gatt/bta_gatt_common.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_act.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_api.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_cache.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_ci.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_co.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_main.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_utils.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gatts_act.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gatts_api.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gatts_co.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gatts_main.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gatts_utils.c"
|
2021-09-07 03:29:22 -04:00
|
|
|
"host/bluedroid/bta/hd/bta_hd_api.c"
|
|
|
|
"host/bluedroid/bta/hd/bta_hd_act.c"
|
|
|
|
"host/bluedroid/bta/hd/bta_hd_main.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/bta/hh/bta_hh_act.c"
|
|
|
|
"host/bluedroid/bta/hh/bta_hh_api.c"
|
|
|
|
"host/bluedroid/bta/hh/bta_hh_cfg.c"
|
|
|
|
"host/bluedroid/bta/hh/bta_hh_le.c"
|
|
|
|
"host/bluedroid/bta/hh/bta_hh_main.c"
|
|
|
|
"host/bluedroid/bta/hh/bta_hh_utils.c"
|
|
|
|
"host/bluedroid/bta/jv/bta_jv_act.c"
|
|
|
|
"host/bluedroid/bta/jv/bta_jv_api.c"
|
|
|
|
"host/bluedroid/bta/jv/bta_jv_cfg.c"
|
|
|
|
"host/bluedroid/bta/jv/bta_jv_main.c"
|
2019-10-09 05:24:30 -04:00
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_act.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_api.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_at.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_cfg.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_cmd.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_main.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_rfc.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_sco.c"
|
|
|
|
"host/bluedroid/bta/hf_ag/bta_ag_sdp.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_act.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_api.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_at.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_cmd.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_main.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_rfc.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_sco.c"
|
|
|
|
"host/bluedroid/bta/hf_client/bta_hf_client_sdp.c"
|
|
|
|
"host/bluedroid/bta/sdp/bta_sdp.c"
|
|
|
|
"host/bluedroid/bta/sdp/bta_sdp_act.c"
|
|
|
|
"host/bluedroid/bta/sdp/bta_sdp_api.c"
|
|
|
|
"host/bluedroid/bta/sdp/bta_sdp_cfg.c"
|
|
|
|
"host/bluedroid/bta/sys/bta_sys_conn.c"
|
|
|
|
"host/bluedroid/bta/sys/bta_sys_main.c"
|
|
|
|
"host/bluedroid/bta/sys/utl.c"
|
|
|
|
"host/bluedroid/btc/core/btc_ble_storage.c"
|
|
|
|
"host/bluedroid/btc/core/btc_config.c"
|
|
|
|
"host/bluedroid/btc/core/btc_dev.c"
|
|
|
|
"host/bluedroid/btc/core/btc_dm.c"
|
|
|
|
"host/bluedroid/btc/core/btc_main.c"
|
|
|
|
"host/bluedroid/btc/core/btc_profile_queue.c"
|
|
|
|
"host/bluedroid/btc/core/btc_sec.c"
|
|
|
|
"host/bluedroid/btc/core/btc_sm.c"
|
|
|
|
"host/bluedroid/btc/core/btc_storage.c"
|
|
|
|
"host/bluedroid/btc/core/btc_util.c"
|
|
|
|
"host/bluedroid/btc/profile/std/a2dp/bta_av_co.c"
|
|
|
|
"host/bluedroid/btc/profile/std/a2dp/btc_a2dp.c"
|
|
|
|
"host/bluedroid/btc/profile/std/a2dp/btc_a2dp_control.c"
|
|
|
|
"host/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c"
|
|
|
|
"host/bluedroid/btc/profile/std/a2dp/btc_a2dp_source.c"
|
|
|
|
"host/bluedroid/btc/profile/std/a2dp/btc_av.c"
|
|
|
|
"host/bluedroid/btc/profile/std/avrc/btc_avrc.c"
|
|
|
|
"host/bluedroid/btc/profile/std/avrc/bta_avrc_co.c"
|
2019-10-09 05:24:30 -04:00
|
|
|
"host/bluedroid/btc/profile/std/hf_ag/bta_ag_co.c"
|
|
|
|
"host/bluedroid/btc/profile/std/hf_ag/btc_hf_ag.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/btc/profile/std/hf_client/btc_hf_client.c"
|
|
|
|
"host/bluedroid/btc/profile/std/hf_client/bta_hf_client_co.c"
|
2021-09-07 03:29:22 -04:00
|
|
|
"host/bluedroid/btc/profile/std/hid/btc_hd.c"
|
|
|
|
"host/bluedroid/btc/profile/std/hid/btc_hh.c"
|
|
|
|
"host/bluedroid/btc/profile/std/hid/bta_hh_co.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/btc/profile/std/gap/btc_gap_ble.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gap/btc_gap_bt.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gap/bta_gap_bt_co.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gatt/btc_gatt_common.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gatt/btc_gatt_util.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gatt/btc_gattc.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gatt/btc_gatts.c"
|
|
|
|
"host/bluedroid/btc/profile/std/spp/btc_spp.c"
|
2022-04-21 02:26:29 -04:00
|
|
|
"host/bluedroid/btc/profile/std/sdp/btc_sdp.c"
|
2022-04-20 23:45:55 -04:00
|
|
|
"host/bluedroid/btc/profile/std/l2cap/btc_l2cap.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/device/bdaddr.c"
|
|
|
|
"host/bluedroid/device/controller.c"
|
|
|
|
"host/bluedroid/device/interop.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/alloc.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/bitalloc-sbc.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/bitalloc.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/bitstream-decode.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/decoder-oina.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/decoder-private.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/decoder-sbc.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/dequant.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/framing-sbc.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/framing.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/oi_codec_version.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/synthesis-8-generated.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/synthesis-dct8.c"
|
|
|
|
"host/bluedroid/external/sbc/decoder/srce/synthesis-sbc.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_analysis.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_dct.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_dct_coeffs.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_enc_coeffs.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_encoder.c"
|
|
|
|
"host/bluedroid/external/sbc/encoder/srce/sbc_packing.c"
|
|
|
|
"host/bluedroid/external/sbc/plc/sbc_plc.c"
|
|
|
|
"host/bluedroid/hci/hci_audio.c"
|
|
|
|
"host/bluedroid/hci/hci_hal_h4.c"
|
|
|
|
"host/bluedroid/hci/hci_layer.c"
|
|
|
|
"host/bluedroid/hci/hci_packet_factory.c"
|
|
|
|
"host/bluedroid/hci/hci_packet_parser.c"
|
|
|
|
"host/bluedroid/hci/packet_fragmenter.c"
|
|
|
|
"host/bluedroid/main/bte_init.c"
|
|
|
|
"host/bluedroid/main/bte_main.c"
|
|
|
|
"host/bluedroid/stack/a2dp/a2d_api.c"
|
|
|
|
"host/bluedroid/stack/a2dp/a2d_sbc.c"
|
|
|
|
"host/bluedroid/stack/avct/avct_api.c"
|
|
|
|
"host/bluedroid/stack/avct/avct_ccb.c"
|
|
|
|
"host/bluedroid/stack/avct/avct_l2c.c"
|
|
|
|
"host/bluedroid/stack/avct/avct_lcb.c"
|
|
|
|
"host/bluedroid/stack/avct/avct_lcb_act.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_ad.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_api.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_ccb.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_ccb_act.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_l2c.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_msg.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_scb.c"
|
|
|
|
"host/bluedroid/stack/avdt/avdt_scb_act.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_api.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_bld_ct.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_bld_tg.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_opt.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_pars_ct.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_pars_tg.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_sdp.c"
|
|
|
|
"host/bluedroid/stack/avrc/avrc_utils.c"
|
2021-09-07 03:29:22 -04:00
|
|
|
"host/bluedroid/stack/hid/hidd_api.c"
|
|
|
|
"host/bluedroid/stack/hid/hidd_conn.c"
|
|
|
|
"host/bluedroid/stack/hid/hidh_api.c"
|
|
|
|
"host/bluedroid/stack/hid/hidh_conn.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/stack/btm/btm_acl.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_addr.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_adv_filter.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_batchscan.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_bgconn.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_cont_energy.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_gap.c"
|
2020-07-09 08:58:13 -04:00
|
|
|
"host/bluedroid/stack/btm/btm_ble_5_gap.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/stack/btm/btm_ble_multi_adv.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_ble_privacy.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_dev.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_devctl.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_inq.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_main.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_pm.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_sco.c"
|
|
|
|
"host/bluedroid/stack/btm/btm_sec.c"
|
|
|
|
"host/bluedroid/stack/btu/btu_hcif.c"
|
|
|
|
"host/bluedroid/stack/btu/btu_init.c"
|
|
|
|
"host/bluedroid/stack/btu/btu_task.c"
|
|
|
|
"host/bluedroid/stack/gap/gap_api.c"
|
|
|
|
"host/bluedroid/stack/gap/gap_ble.c"
|
|
|
|
"host/bluedroid/stack/gap/gap_conn.c"
|
|
|
|
"host/bluedroid/stack/gap/gap_utils.c"
|
|
|
|
"host/bluedroid/stack/gatt/att_protocol.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_api.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_attr.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_auth.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_cl.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_db.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_main.c"
|
|
|
|
"host/bluedroid/stack/gatt/gatt_sr.c"
|
2022-12-07 01:34:41 -05:00
|
|
|
"host/bluedroid/stack/gatt/gatt_sr_hash.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/bluedroid/stack/gatt/gatt_utils.c"
|
|
|
|
"host/bluedroid/stack/hcic/hciblecmds.c"
|
|
|
|
"host/bluedroid/stack/hcic/hcicmds.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_api.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_ble.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_csm.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_fcr.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_link.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_main.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_ucd.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2c_utils.c"
|
|
|
|
"host/bluedroid/stack/l2cap/l2cap_client.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/port_api.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/port_rfc.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/port_utils.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/rfc_l2cap_if.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/rfc_mx_fsm.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/rfc_port_fsm.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/rfc_port_if.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/rfc_ts_frames.c"
|
|
|
|
"host/bluedroid/stack/rfcomm/rfc_utils.c"
|
|
|
|
"host/bluedroid/stack/sdp/sdp_api.c"
|
|
|
|
"host/bluedroid/stack/sdp/sdp_db.c"
|
|
|
|
"host/bluedroid/stack/sdp/sdp_discovery.c"
|
|
|
|
"host/bluedroid/stack/sdp/sdp_main.c"
|
|
|
|
"host/bluedroid/stack/sdp/sdp_server.c"
|
|
|
|
"host/bluedroid/stack/sdp/sdp_utils.c"
|
|
|
|
"host/bluedroid/stack/smp/aes.c"
|
|
|
|
"host/bluedroid/stack/smp/p_256_curvepara.c"
|
|
|
|
"host/bluedroid/stack/smp/p_256_ecc_pp.c"
|
|
|
|
"host/bluedroid/stack/smp/p_256_multprecision.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_act.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_api.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_br_main.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_cmac.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_keys.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_l2c.c"
|
|
|
|
"host/bluedroid/stack/smp/smp_main.c"
|
2023-08-29 04:49:49 -04:00
|
|
|
"host/bluedroid/stack/smp/smp_utils.c"
|
|
|
|
"host/bluedroid/config/stack_config.c")
|
2022-06-17 09:11:34 -04:00
|
|
|
|
2022-06-03 09:57:44 -04:00
|
|
|
|
|
|
|
list(APPEND srcs "common/btc/profile/esp/blufi/bluedroid_host/esp_blufi.c")
|
2019-10-21 08:18:21 -04:00
|
|
|
|
|
|
|
if(CONFIG_BLE_MESH)
|
2023-08-25 02:28:44 -04:00
|
|
|
list(APPEND srcs "esp_ble_mesh/core/bluedroid_host/adapter.c")
|
2019-10-21 08:18:21 -04:00
|
|
|
endif()
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_BLE_MESH)
|
2023-09-07 22:10:07 -04:00
|
|
|
list(APPEND include_dirs ${ble_mesh_include_dirs})
|
2019-06-30 04:39:00 -04:00
|
|
|
|
2020-02-13 06:41:42 -05:00
|
|
|
list(APPEND srcs "esp_ble_mesh/api/core/esp_ble_mesh_ble_api.c"
|
|
|
|
"esp_ble_mesh/api/core/esp_ble_mesh_common_api.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"esp_ble_mesh/api/core/esp_ble_mesh_local_data_operation_api.c"
|
|
|
|
"esp_ble_mesh/api/core/esp_ble_mesh_low_power_api.c"
|
|
|
|
"esp_ble_mesh/api/core/esp_ble_mesh_networking_api.c"
|
|
|
|
"esp_ble_mesh/api/core/esp_ble_mesh_provisioning_api.c"
|
|
|
|
"esp_ble_mesh/api/core/esp_ble_mesh_proxy_api.c"
|
|
|
|
"esp_ble_mesh/api/models/esp_ble_mesh_config_model_api.c"
|
|
|
|
"esp_ble_mesh/api/models/esp_ble_mesh_generic_model_api.c"
|
|
|
|
"esp_ble_mesh/api/models/esp_ble_mesh_health_model_api.c"
|
|
|
|
"esp_ble_mesh/api/models/esp_ble_mesh_lighting_model_api.c"
|
|
|
|
"esp_ble_mesh/api/models/esp_ble_mesh_sensor_model_api.c"
|
|
|
|
"esp_ble_mesh/api/models/esp_ble_mesh_time_scene_model_api.c"
|
2020-10-26 04:04:34 -04:00
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_ble.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_config_model.c"
|
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_generic_model.c"
|
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_health_model.c"
|
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_lighting_model.c"
|
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_prov.c"
|
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_sensor_model.c"
|
|
|
|
"esp_ble_mesh/btc/btc_ble_mesh_time_scene_model.c"
|
2023-08-25 02:28:44 -04:00
|
|
|
"esp_ble_mesh/common/tinycrypt/src/aes_decrypt.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/aes_encrypt.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/cbc_mode.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ccm_mode.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/cmac_mode.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ctr_mode.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ctr_prng.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ecc_dh.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ecc_dsa.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ecc_platform_specific.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/ecc.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/hmac_prng.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/hmac.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/sha256.c"
|
|
|
|
"esp_ble_mesh/common/tinycrypt/src/utils.c"
|
|
|
|
"esp_ble_mesh/common/atomic.c"
|
|
|
|
"esp_ble_mesh/common/buf.c"
|
|
|
|
"esp_ble_mesh/common/common.c"
|
|
|
|
"esp_ble_mesh/common/kernel.c"
|
|
|
|
"esp_ble_mesh/common/mutex.c"
|
|
|
|
"esp_ble_mesh/common/timer.c"
|
|
|
|
"esp_ble_mesh/common/utils.c"
|
|
|
|
"esp_ble_mesh/core/storage/settings_nvs.c"
|
|
|
|
"esp_ble_mesh/core/storage/settings_uid.c"
|
|
|
|
"esp_ble_mesh/core/storage/settings.c"
|
|
|
|
"esp_ble_mesh/core/access.c"
|
|
|
|
"esp_ble_mesh/core/adv.c"
|
|
|
|
"esp_ble_mesh/core/beacon.c"
|
|
|
|
"esp_ble_mesh/core/cfg_cli.c"
|
|
|
|
"esp_ble_mesh/core/cfg_srv.c"
|
|
|
|
"esp_ble_mesh/core/crypto.c"
|
|
|
|
"esp_ble_mesh/core/fast_prov.c"
|
|
|
|
"esp_ble_mesh/core/friend.c"
|
|
|
|
"esp_ble_mesh/core/health_cli.c"
|
|
|
|
"esp_ble_mesh/core/health_srv.c"
|
2023-09-27 22:44:06 -04:00
|
|
|
"esp_ble_mesh/core/heartbeat.c"
|
2023-08-25 02:28:44 -04:00
|
|
|
"esp_ble_mesh/core/local.c"
|
|
|
|
"esp_ble_mesh/core/lpn.c"
|
|
|
|
"esp_ble_mesh/core/main.c"
|
|
|
|
"esp_ble_mesh/core/net.c"
|
2023-08-28 04:09:37 -04:00
|
|
|
"esp_ble_mesh/core/prov_common.c"
|
2023-08-25 02:28:44 -04:00
|
|
|
"esp_ble_mesh/core/prov_node.c"
|
|
|
|
"esp_ble_mesh/core/prov_pvnr.c"
|
|
|
|
"esp_ble_mesh/core/proxy_client.c"
|
|
|
|
"esp_ble_mesh/core/proxy_server.c"
|
|
|
|
"esp_ble_mesh/core/pvnr_mgmt.c"
|
2023-08-28 04:09:37 -04:00
|
|
|
"esp_ble_mesh/core/rpl.c"
|
2023-08-25 02:28:44 -04:00
|
|
|
"esp_ble_mesh/core/scan.c"
|
|
|
|
"esp_ble_mesh/core/test.c"
|
|
|
|
"esp_ble_mesh/models/common/device_property.c"
|
2023-08-28 04:09:37 -04:00
|
|
|
"esp_ble_mesh/models/common/model_common.c"
|
2023-08-25 02:28:44 -04:00
|
|
|
"esp_ble_mesh/models/client/client_common.c"
|
|
|
|
"esp_ble_mesh/models/client/generic_client.c"
|
|
|
|
"esp_ble_mesh/models/client/lighting_client.c"
|
|
|
|
"esp_ble_mesh/models/client/sensor_client.c"
|
|
|
|
"esp_ble_mesh/models/client/time_scene_client.c"
|
|
|
|
"esp_ble_mesh/models/server/generic_server.c"
|
|
|
|
"esp_ble_mesh/models/server/lighting_server.c"
|
|
|
|
"esp_ble_mesh/models/server/sensor_server.c"
|
|
|
|
"esp_ble_mesh/models/server/server_common.c"
|
|
|
|
"esp_ble_mesh/models/server/state_binding.c"
|
|
|
|
"esp_ble_mesh/models/server/state_transition.c"
|
2023-08-28 04:09:37 -04:00
|
|
|
"esp_ble_mesh/models/server/time_scene_server.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_agg_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_brc_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_cm_data_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_df_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_lcd_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_odp_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_prb_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_rpr_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_sar_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/core/esp_ble_mesh_srpl_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/api/models/esp_ble_mesh_mbt_model_api.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_agg_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_brc_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_df_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_lcd_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_mbt_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_odp_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_prb_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_rpr_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_sar_model.c"
|
|
|
|
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_srpl_model.c"
|
2023-11-07 20:57:57 -05:00
|
|
|
"esp_ble_mesh/lib/ext.c")
|
2023-11-02 04:25:41 -04:00
|
|
|
|
|
|
|
if(CONFIG_BLE_MESH_SAR_ENHANCEMENT)
|
|
|
|
list(APPEND srcs "esp_ble_mesh/core/transport.enh.c")
|
|
|
|
else()
|
|
|
|
list(APPEND srcs "esp_ble_mesh/core/transport.c")
|
|
|
|
endif()
|
2018-03-22 02:27:10 -04:00
|
|
|
endif()
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2022-06-03 09:57:44 -04:00
|
|
|
|
|
|
|
|
2022-06-17 10:04:37 -04:00
|
|
|
if(CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
|
2022-06-17 09:11:34 -04:00
|
|
|
list(APPEND srcs
|
|
|
|
"porting/npl/freertos/src/npl_os_freertos.c"
|
|
|
|
"porting/nimble/src/os_msys_init.c"
|
|
|
|
)
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2023-12-27 00:43:57 -05:00
|
|
|
if(CONFIG_BT_CONTROLLER_DISABLED)
|
|
|
|
list(APPEND srcs
|
|
|
|
"host/nimble/nimble/porting/nimble/src/hal_uart.c"
|
|
|
|
)
|
|
|
|
endif()
|
2022-06-03 09:57:44 -04:00
|
|
|
list(APPEND include_dirs
|
2022-06-17 09:11:34 -04:00
|
|
|
porting/include
|
|
|
|
porting/nimble/include
|
|
|
|
porting/npl/freertos/include
|
|
|
|
porting/transport/include
|
|
|
|
)
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2022-06-17 10:04:37 -04:00
|
|
|
if(CONFIG_BT_LE_HCI_INTERFACE_USE_UART)
|
|
|
|
list(APPEND srcs
|
|
|
|
"porting/transport/uart/hci_uart.c"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
2022-06-17 09:11:34 -04:00
|
|
|
|
|
|
|
|
2022-06-17 10:04:37 -04:00
|
|
|
if(NOT (CONFIG_BT_LE_CRYPTO_STACK_MBEDTLS OR CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS))
|
|
|
|
list(APPEND include_dirs
|
2022-06-17 09:11:34 -04:00
|
|
|
porting/ext/tinycrypt/include
|
2022-06-17 10:04:37 -04:00
|
|
|
)
|
|
|
|
list(APPEND srcs "porting/ext/tinycrypt/src/utils.c"
|
|
|
|
"porting/ext/tinycrypt/src/sha256.c"
|
|
|
|
"porting/ext/tinycrypt/src/ecc.c"
|
|
|
|
"porting/ext/tinycrypt/src/ctr_prng.c"
|
|
|
|
"porting/ext/tinycrypt/src/ctr_mode.c"
|
|
|
|
"porting/ext/tinycrypt/src/aes_decrypt.c"
|
|
|
|
"porting/ext/tinycrypt/src/aes_encrypt.c"
|
|
|
|
"porting/ext/tinycrypt/src/ccm_mode.c"
|
|
|
|
"porting/ext/tinycrypt/src/ecc_dsa.c"
|
|
|
|
"porting/ext/tinycrypt/src/cmac_mode.c"
|
|
|
|
"porting/ext/tinycrypt/src/ecc_dh.c"
|
|
|
|
"porting/ext/tinycrypt/src/hmac_prng.c"
|
|
|
|
"porting/ext/tinycrypt/src/ecc_platform_specific.c"
|
|
|
|
"porting/ext/tinycrypt/src/hmac.c"
|
|
|
|
"porting/ext/tinycrypt/src/cbc_mode.c")
|
2022-06-03 09:57:44 -04:00
|
|
|
endif()
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
if(CONFIG_BT_NIMBLE_ENABLED)
|
2019-01-07 02:16:47 -05:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
list(APPEND include_dirs
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/include
|
2024-01-29 23:58:36 -05:00
|
|
|
host/nimble/nimble/nimble/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/ans/include
|
|
|
|
host/nimble/nimble/nimble/host/services/bas/include
|
2020-08-03 14:19:41 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/dis/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/gap/include
|
|
|
|
host/nimble/nimble/nimble/host/services/gatt/include
|
2023-03-10 02:16:49 -05:00
|
|
|
host/nimble/nimble/nimble/host/services/hr/include
|
2023-03-30 08:01:24 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/htp/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/ias/include
|
2019-10-29 00:52:05 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/ipss/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/lls/include
|
2023-04-11 01:51:15 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/prox/include
|
2023-08-30 12:54:53 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/cts/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/tps/include
|
2023-07-31 06:02:07 -04:00
|
|
|
host/nimble/nimble/nimble/host/services/hid/include
|
|
|
|
host/nimble/nimble/nimble/host/services/sps/include
|
2019-06-30 04:39:00 -04:00
|
|
|
host/nimble/nimble/nimble/host/util/include
|
|
|
|
host/nimble/nimble/nimble/host/store/ram/include
|
|
|
|
host/nimble/nimble/nimble/host/store/config/include
|
2022-06-03 09:57:44 -04:00
|
|
|
)
|
2019-09-30 02:15:43 -04:00
|
|
|
|
2023-01-10 01:54:03 -05:00
|
|
|
list(APPEND srcs "host/nimble/nimble/nimble/transport/src/transport.c"
|
|
|
|
"host/nimble/nimble/nimble/host/util/src/addr.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/gatt/src/ble_svc_gatt.c"
|
|
|
|
"host/nimble/nimble/nimble/host/services/tps/src/ble_svc_tps.c"
|
|
|
|
"host/nimble/nimble/nimble/host/services/ias/src/ble_svc_ias.c"
|
2019-10-29 00:52:05 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/ipss/src/ble_svc_ipss.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/ans/src/ble_svc_ans.c"
|
2023-03-10 02:16:49 -05:00
|
|
|
"host/nimble/nimble/nimble/host/services/hr/src/ble_svc_hr.c"
|
2023-03-30 08:01:24 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/htp/src/ble_svc_htp.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/gap/src/ble_svc_gap.c"
|
|
|
|
"host/nimble/nimble/nimble/host/services/bas/src/ble_svc_bas.c"
|
2020-08-03 14:19:41 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/dis/src/ble_svc_dis.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/lls/src/ble_svc_lls.c"
|
2023-04-11 01:51:15 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/prox/src/ble_svc_prox.c"
|
2023-08-30 12:54:53 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/cts/src/ble_svc_cts.c"
|
2023-07-31 06:02:07 -04:00
|
|
|
"host/nimble/nimble/nimble/host/services/hid/src/ble_svc_hid.c"
|
|
|
|
"host/nimble/nimble/nimble/host/services/sps/src/ble_svc_sps.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_conn.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_store_util.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_sm.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_shutdown.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_l2cap_sig_cmd.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_hci_cmd.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_id.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_att_svr.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_gatts_lcl.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_ibeacon.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_atomic.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_sm_alg.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_stop.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_mqueue.c"
|
2019-10-29 00:52:05 -04:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_periodic_sync.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_att.c"
|
2023-05-05 03:13:21 -04:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_ead.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_aes_ccm.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_gattc.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_store.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_sm_lgcy.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_cfg.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_att_clt.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_mbuf.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_att_cmd.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_log.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_eddystone.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_startup.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_l2cap_sig.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_gap.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_sm_cmd.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_uuid.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_pvcy.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_flow.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_l2cap.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_sm_sc.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_misc.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_gatts.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_adv.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_hci.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_hci_util.c"
|
2020-03-05 22:02:18 -05:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_hs_resolv.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/store/ram/src/ble_store_ram.c"
|
|
|
|
"host/nimble/nimble/nimble/host/store/config/src/ble_store_config.c"
|
|
|
|
"host/nimble/nimble/nimble/host/store/config/src/ble_store_nvs.c"
|
2023-10-30 05:04:55 -04:00
|
|
|
"host/nimble/nimble/nimble/host/src/ble_gattc_cache.c"
|
|
|
|
"host/nimble/nimble/nimble/host/src/ble_gattc_cache_conn.c"
|
2022-06-03 09:57:44 -04:00
|
|
|
)
|
2021-12-06 04:38:11 -05:00
|
|
|
|
2023-12-27 00:43:57 -05:00
|
|
|
if(CONFIG_BT_CONTROLLER_DISABLED AND CONFIG_BT_NIMBLE_TRANSPORT_UART)
|
|
|
|
list(APPEND srcs
|
|
|
|
"host/nimble/nimble/nimble/transport/uart_ll/src/hci_uart.c"
|
|
|
|
"host/nimble/nimble/nimble/transport/common/hci_h4/src/hci_h4.c"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-12-06 04:38:11 -05:00
|
|
|
list(APPEND srcs
|
2022-06-17 09:11:34 -04:00
|
|
|
"host/nimble/nimble/porting/nimble/src/nimble_port.c"
|
|
|
|
"host/nimble/nimble/porting/npl/freertos/src/nimble_port_freertos.c"
|
2023-10-30 05:04:55 -04:00
|
|
|
"host/nimble/port/src/nvs_port.c"
|
2022-06-17 09:11:34 -04:00
|
|
|
)
|
|
|
|
list(APPEND include_dirs
|
|
|
|
porting/include
|
|
|
|
host/nimble/nimble/porting/nimble/include
|
|
|
|
host/nimble/port/include
|
2023-01-10 01:54:03 -05:00
|
|
|
host/nimble/nimble/nimble/transport/include
|
2022-06-17 09:11:34 -04:00
|
|
|
)
|
|
|
|
|
2023-12-27 00:43:57 -05:00
|
|
|
if(CONFIG_BT_CONTROLLER_DISABLED)
|
|
|
|
list(APPEND include_dirs
|
|
|
|
host/nimble/nimble/nimble/transport/common/hci_h4/include
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-06-17 10:04:37 -04:00
|
|
|
if(NOT CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
|
2021-12-06 04:38:11 -05:00
|
|
|
list(APPEND srcs
|
|
|
|
"host/nimble/nimble/porting/nimble/src/endian.c"
|
|
|
|
"host/nimble/nimble/porting/nimble/src/os_mempool.c"
|
|
|
|
"host/nimble/nimble/porting/nimble/src/mem.c"
|
2022-06-17 09:11:34 -04:00
|
|
|
"host/nimble/nimble/porting/nimble/src/os_mbuf.c"
|
|
|
|
"host/nimble/nimble/porting/nimble/src/os_msys_init.c"
|
|
|
|
"host/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c"
|
|
|
|
)
|
2023-12-27 00:43:57 -05:00
|
|
|
|
|
|
|
if(CONFIG_BT_CONTROLLER_DISABLED AND CONFIG_BT_NIMBLE_TRANSPORT_UART)
|
|
|
|
list(APPEND srcs
|
|
|
|
"host/nimble/nimble/porting/nimble/src/hal_uart.c"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-06-17 09:11:34 -04:00
|
|
|
list(APPEND include_dirs
|
|
|
|
host/nimble/nimble/porting/npl/freertos/include
|
|
|
|
host/nimble/nimble/porting/nimble/include
|
|
|
|
host/nimble/nimble/nimble/include
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2023-12-27 00:43:57 -05:00
|
|
|
if(CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE AND CONFIG_BT_CONTROLLER_ENABLED)
|
2021-12-06 04:38:11 -05:00
|
|
|
list(APPEND srcs
|
2022-06-17 09:11:34 -04:00
|
|
|
"host/nimble/esp-hci/src/esp_nimble_hci.c"
|
|
|
|
)
|
2023-09-07 22:10:07 -04:00
|
|
|
list(APPEND include_dirs ${nimble_hci_include_dirs})
|
2021-12-06 04:38:11 -05:00
|
|
|
endif()
|
|
|
|
|
2022-06-03 09:57:44 -04:00
|
|
|
list(APPEND srcs
|
2021-03-31 00:51:48 -04:00
|
|
|
"common/btc/profile/esp/blufi/nimble_host/esp_blufi.c")
|
2022-06-03 09:57:44 -04:00
|
|
|
|
2020-11-10 01:51:08 -05:00
|
|
|
if(CONFIG_BLE_MESH)
|
2023-08-25 02:28:44 -04:00
|
|
|
list(APPEND srcs "esp_ble_mesh/core/nimble_host/adapter.c")
|
2019-10-21 08:18:21 -04:00
|
|
|
endif()
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
if(CONFIG_BT_NIMBLE_MESH)
|
|
|
|
|
|
|
|
list(APPEND include_dirs
|
2021-12-06 04:38:11 -05:00
|
|
|
host/nimble/nimble/nimble/host/mesh/include
|
|
|
|
host/nimble/nimble/nimble/host/include/host)
|
2019-06-30 04:39:00 -04:00
|
|
|
|
|
|
|
list(APPEND srcs "host/nimble/nimble/nimble/host/mesh/src/shell.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/friend.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/crypto.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/settings.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/adv.c"
|
2023-01-10 01:54:03 -05:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/adv_ext.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/adv_legacy.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/model_srv.c"
|
2023-01-10 01:54:03 -05:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/msg.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/beacon.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/glue.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/model_cli.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/transport.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/prov.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/mesh.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/access.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/cfg_srv.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/cfg_cli.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/light_model.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/health_cli.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/lpn.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/health_srv.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/testing.c"
|
2021-12-06 04:38:11 -05:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/aes-ccm.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/app_keys.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/cdb.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/cfg.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/pb_adv.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/pb_gatt.c"
|
2023-01-10 01:54:03 -05:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/pb_gatt_srv.c"
|
2021-12-06 04:38:11 -05:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/prov_device.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/provisioner.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/heartbeat.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/rpl.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/subnet.c"
|
2023-01-10 01:54:03 -05:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/proxy_msg.c"
|
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/proxy_srv.c"
|
2019-06-30 04:39:00 -04:00
|
|
|
"host/nimble/nimble/nimble/host/mesh/src/net.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-04-27 02:29:54 -04:00
|
|
|
|
2019-01-07 02:16:47 -05:00
|
|
|
endif()
|
|
|
|
|
2019-04-28 03:38:23 -04:00
|
|
|
idf_component_register(SRCS "${srcs}"
|
2023-10-08 04:08:47 -04:00
|
|
|
INCLUDE_DIRS "${include_dirs}"
|
|
|
|
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
|
|
|
|
REQUIRES esp_timer esp_wifi
|
2023-11-22 04:27:43 -05:00
|
|
|
PRIV_REQUIRES nvs_flash soc esp_pm esp_phy esp_coex mbedtls esp_driver_uart vfs esp_ringbuf
|
2023-10-08 04:08:47 -04:00
|
|
|
LDFRAGMENTS "${ldfragments}")
|
2018-02-27 01:44:31 -05:00
|
|
|
|
2018-03-22 02:27:10 -04:00
|
|
|
if(CONFIG_BT_ENABLED)
|
2019-11-05 06:20:26 -05:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough -Wno-unused-const-variable)
|
2020-07-09 08:58:13 -04:00
|
|
|
if(CONFIG_IDF_TARGET_ESP32)
|
2022-08-28 11:07:49 -04:00
|
|
|
target_link_directories(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32/esp32")
|
2020-07-09 08:58:13 -04:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
|
2021-09-01 09:55:50 -04:00
|
|
|
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_hli_vectors_bt")
|
2020-07-09 08:58:13 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C3)
|
2022-08-28 11:07:49 -04:00
|
|
|
target_link_directories(${COMPONENT_LIB} INTERFACE
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32c3")
|
2021-05-24 07:39:39 -04:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
|
2020-07-09 08:58:13 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32S3)
|
2022-08-28 11:07:49 -04:00
|
|
|
target_link_directories(${COMPONENT_LIB} INTERFACE
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32s3")
|
2021-05-24 07:39:39 -04:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
|
2022-06-03 09:57:44 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C2)
|
2023-02-02 22:34:10 -05:00
|
|
|
add_prebuilt_library(libble_app "controller/lib_esp32c2/esp32c2-bt-lib/libble_app.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
|
2022-11-21 03:36:02 -05:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C6)
|
2023-02-02 22:34:10 -05:00
|
|
|
add_prebuilt_library(libble_app "controller/lib_esp32c6/esp32c6-bt-lib/libble_app.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32H2)
|
|
|
|
add_prebuilt_library(libble_app "controller/lib_esp32h2/esp32h2-bt-lib/libble_app.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
|
2020-07-09 08:58:13 -04:00
|
|
|
endif()
|
2022-01-29 05:18:07 -05:00
|
|
|
|
|
|
|
set_source_files_properties(
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_act.c"
|
|
|
|
"host/bluedroid/bta/gatt/bta_gattc_cache.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gatt/btc_gatt_util.c"
|
|
|
|
"host/bluedroid/btc/profile/std/gatt/btc_gatts.c"
|
|
|
|
PROPERTIES COMPILE_FLAGS -Wno-address-of-packed-member)
|
2022-01-31 13:45:31 -05:00
|
|
|
|
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
2018-03-22 02:27:10 -04:00
|
|
|
endif()
|
2021-02-12 00:01:05 -05:00
|
|
|
|
2023-08-28 04:09:37 -04:00
|
|
|
if(CONFIG_BLE_MESH)
|
|
|
|
if(CONFIG_IDF_TARGET_ESP32)
|
2023-11-07 20:57:57 -05:00
|
|
|
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/esp32/libble_mesh.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
|
2023-08-28 04:09:37 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32S3)
|
2023-11-07 20:57:57 -05:00
|
|
|
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/esp32s3/libble_mesh.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
|
2023-08-28 04:09:37 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C3)
|
2023-11-07 20:57:57 -05:00
|
|
|
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/esp32c3/libble_mesh.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
|
2023-08-28 04:09:37 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C6)
|
2023-11-07 20:57:57 -05:00
|
|
|
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/esp32c6/libble_mesh.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
|
2023-08-28 04:09:37 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32H2)
|
2023-11-07 20:57:57 -05:00
|
|
|
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/esp32h2/libble_mesh.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
|
2023-08-28 04:09:37 -04:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-02-12 00:01:05 -05:00
|
|
|
if(CONFIG_BT_NIMBLE_MESH)
|
|
|
|
set_source_files_properties("host/nimble/nimble/nimble/host/mesh/src/net.c"
|
|
|
|
PROPERTIES COMPILE_FLAGS -Wno-type-limits)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE AND CONFIG_BT_NIMBLE_ENABLED)
|
|
|
|
# some variables in NimBLE are only used by asserts
|
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-but-set-variable -Wno-unused-variable)
|
|
|
|
endif()
|
2021-05-06 02:54:30 -04:00
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
2022-11-18 07:29:39 -05:00
|
|
|
set(jump_table_opts "-fjump-tables")
|
|
|
|
if(NOT (CMAKE_C_COMPILER_ID MATCHES "Clang") )
|
|
|
|
set(jump_table_opts "${jump_table_opts} -ftree-switch-conversion")
|
|
|
|
endif()
|
2021-05-06 02:54:30 -04:00
|
|
|
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/host/bluedroid/bta/hf_ag/bta_ag_cmd.c"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/host/bluedroid/btc/profile/std/gap/btc_gap_ble.c"
|
2022-11-18 07:29:39 -05:00
|
|
|
PROPERTIES COMPILE_FLAGS "${jump_table_opts}")
|
2021-05-06 02:54:30 -04:00
|
|
|
endif()
|