2020-04-01 04:16:27 +02:00
|
|
|
# The following lines of boilerplate have to be in your project's
|
|
|
|
# CMakeLists in this exact order for cmake to work correctly
|
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
2021-03-05 05:00:21 +01:00
|
|
|
idf_build_get_property(__hack_component_targets __COMPONENT_TARGETS)
|
2020-04-01 04:16:27 +02:00
|
|
|
|
2021-03-05 05:00:21 +01:00
|
|
|
if("esp-nimble-component" IN_LIST BUILD_COMPONENTS OR "__esp-nimble-component" IN_LIST __hack_component_targets)
|
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
esp-nimble-component
|
|
|
|
)
|
|
|
|
elseif("nimble" IN_LIST BUILD_COMPONENTS OR "__nimble" IN_LIST __hack_component_targets)
|
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
nimble
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if("arduino" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "__idf_arduino")
|
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
arduino
|
|
|
|
)
|
2023-05-28 18:44:17 +02:00
|
|
|
elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "___idf_framework-arduinoespressif32")
|
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
framework-arduinoespressif32
|
|
|
|
)
|
2021-03-05 05:00:21 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(
|
|
|
|
REQUIRED_IDF_TARGETS
|
|
|
|
"esp32"
|
|
|
|
"esp32s3"
|
2023-09-01 19:56:52 +02:00
|
|
|
"esp32c2"
|
2021-03-05 05:00:21 +01:00
|
|
|
"esp32c3"
|
2023-08-13 18:08:11 +02:00
|
|
|
"esp32c6"
|
2024-06-18 12:50:54 +02:00
|
|
|
"esp32h2"
|
2021-03-05 05:00:21 +01:00
|
|
|
INCLUDE_DIRS
|
|
|
|
"src"
|
|
|
|
SRCS
|
2021-01-16 03:56:06 +01:00
|
|
|
"src/NimBLE2904.cpp"
|
|
|
|
"src/NimBLEAddress.cpp"
|
|
|
|
"src/NimBLEAdvertisedDevice.cpp"
|
|
|
|
"src/NimBLEAdvertising.cpp"
|
2024-07-17 23:35:13 +02:00
|
|
|
"src/NimBLEAttValue.cpp"
|
2021-01-16 03:56:06 +01:00
|
|
|
"src/NimBLEBeacon.cpp"
|
|
|
|
"src/NimBLECharacteristic.cpp"
|
|
|
|
"src/NimBLEClient.cpp"
|
|
|
|
"src/NimBLEDescriptor.cpp"
|
|
|
|
"src/NimBLEDevice.cpp"
|
|
|
|
"src/NimBLEEddystoneTLM.cpp"
|
|
|
|
"src/NimBLEEddystoneURL.cpp"
|
2022-04-10 18:21:45 +02:00
|
|
|
"src/NimBLEExtAdvertising.cpp"
|
2021-02-08 19:46:11 +01:00
|
|
|
"src/NimBLEHIDDevice.cpp"
|
2021-01-16 03:56:06 +01:00
|
|
|
"src/NimBLERemoteCharacteristic.cpp"
|
|
|
|
"src/NimBLERemoteDescriptor.cpp"
|
|
|
|
"src/NimBLERemoteService.cpp"
|
2024-07-26 22:47:36 +02:00
|
|
|
"src/NimBLERemoteValueAttribute.cpp"
|
2021-01-16 03:56:06 +01:00
|
|
|
"src/NimBLEScan.cpp"
|
|
|
|
"src/NimBLEServer.cpp"
|
|
|
|
"src/NimBLEService.cpp"
|
|
|
|
"src/NimBLEUtils.cpp"
|
|
|
|
"src/NimBLEUUID.cpp"
|
2021-03-05 05:00:21 +01:00
|
|
|
REQUIRES
|
2021-01-16 03:56:06 +01:00
|
|
|
bt
|
2021-03-05 05:00:21 +01:00
|
|
|
nvs_flash
|
2023-08-21 16:36:27 +02:00
|
|
|
driver
|
2021-03-05 05:00:21 +01:00
|
|
|
PRIV_REQUIRES
|
|
|
|
${ESP_NIMBLE_PRIV_REQUIRES}
|
2021-01-16 03:56:06 +01:00
|
|
|
)
|
|
|
|
|