2020-03-31 20:16:27 -06: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)
|
|
|
|
|
|
2024-11-02 17:58:51 -06:00
|
|
|
if(__COMPONENT_TARGETS MATCHES "___idf_esp-nimble-component")
|
2021-03-04 23:00:21 -05:00
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
|
esp-nimble-component
|
|
|
|
|
)
|
2024-11-02 17:58:51 -06:00
|
|
|
elseif(__COMPONENT_TARGETS MATCHES "__idf_nimble")
|
2021-03-04 23:00:21 -05:00
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
|
nimble
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-10-06 17:16:48 -07:00
|
|
|
# Arduino install using IDF component manager
|
2024-11-02 17:58:51 -06:00
|
|
|
if(__COMPONENT_TARGETS MATCHES "___idf_espressif__arduino-esp32")
|
2024-10-06 17:16:48 -07:00
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
|
arduino-esp32
|
|
|
|
|
)
|
|
|
|
|
# Manual installation of Arduino framework
|
2024-11-02 17:58:51 -06:00
|
|
|
elseif(__COMPONENT_TARGETS MATCHES "__idf_arduino")
|
2021-03-04 23:00:21 -05:00
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
|
arduino
|
|
|
|
|
)
|
2024-10-06 17:16:48 -07:00
|
|
|
# PlatformIO
|
2024-11-02 17:58:51 -06:00
|
|
|
elseif(__COMPONENT_TARGETS MATCHES "___idf_framework-arduinoespressif32")
|
2023-05-28 10:44:17 -06:00
|
|
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
|
|
|
|
framework-arduinoespressif32
|
|
|
|
|
)
|
2021-03-04 23:00:21 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
idf_component_register(
|
|
|
|
|
REQUIRED_IDF_TARGETS
|
|
|
|
|
"esp32"
|
|
|
|
|
"esp32s3"
|
2023-09-01 19:56:52 +02:00
|
|
|
"esp32c2"
|
2021-03-04 23:00:21 -05:00
|
|
|
"esp32c3"
|
2023-08-13 10:08:11 -06:00
|
|
|
"esp32c6"
|
2024-06-18 12:50:54 +02:00
|
|
|
"esp32h2"
|
2024-11-01 02:06:57 +01:00
|
|
|
"esp32p4"
|
2021-03-04 23:00:21 -05:00
|
|
|
INCLUDE_DIRS
|
|
|
|
|
"src"
|
|
|
|
|
SRCS
|
2021-01-15 19:56:06 -07:00
|
|
|
"src/NimBLE2904.cpp"
|
|
|
|
|
"src/NimBLEAddress.cpp"
|
|
|
|
|
"src/NimBLEAdvertisedDevice.cpp"
|
|
|
|
|
"src/NimBLEAdvertising.cpp"
|
2024-07-17 15:35:13 -06:00
|
|
|
"src/NimBLEAttValue.cpp"
|
2021-01-15 19:56:06 -07: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 10:21:45 -06:00
|
|
|
"src/NimBLEExtAdvertising.cpp"
|
2021-02-08 11:46:11 -07:00
|
|
|
"src/NimBLEHIDDevice.cpp"
|
2021-01-15 19:56:06 -07:00
|
|
|
"src/NimBLERemoteCharacteristic.cpp"
|
|
|
|
|
"src/NimBLERemoteDescriptor.cpp"
|
|
|
|
|
"src/NimBLERemoteService.cpp"
|
2024-07-26 14:47:36 -06:00
|
|
|
"src/NimBLERemoteValueAttribute.cpp"
|
2021-01-15 19:56:06 -07:00
|
|
|
"src/NimBLEScan.cpp"
|
|
|
|
|
"src/NimBLEServer.cpp"
|
|
|
|
|
"src/NimBLEService.cpp"
|
|
|
|
|
"src/NimBLEUtils.cpp"
|
|
|
|
|
"src/NimBLEUUID.cpp"
|
2021-03-04 23:00:21 -05:00
|
|
|
REQUIRES
|
2021-01-15 19:56:06 -07:00
|
|
|
bt
|
2021-03-04 23:00:21 -05:00
|
|
|
nvs_flash
|
2023-08-21 16:36:27 +02:00
|
|
|
driver
|
2021-03-04 23:00:21 -05:00
|
|
|
PRIV_REQUIRES
|
|
|
|
|
${ESP_NIMBLE_PRIV_REQUIRES}
|
2021-01-15 19:56:06 -07:00
|
|
|
)
|
|
|
|
|
|