diff --git a/CMakeLists.txt_idf3 b/CMakeLists.txt_idf3 new file mode 100644 index 0000000..650f323 --- /dev/null +++ b/CMakeLists.txt_idf3 @@ -0,0 +1,57 @@ +# 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) + +set(SUPPORTED_TARGETS esp32) + +set(COMPONENT_SRCS + "src/FreeRTOS.cpp" + "src/NimBLE2904.cpp" + "src/NimBLEAddress.cpp" + "src/NimBLEAdvertisedDevice.cpp" + "src/NimBLEAdvertising.cpp" + "src/NimBLEBeacon.cpp" + "src/NimBLECharacteristic.cpp" + "src/NimBLEClient.cpp" + "src/NimBLEDescriptor.cpp" + "src/NimBLEDevice.cpp" + "src/NimBLEEddystoneTLM.cpp" + "src/NimBLEEddystoneURL.cpp" + "src/NimBLEHIDDevice.cpp" + "src/NimBLERemoteCharacteristic.cpp" + "src/NimBLERemoteDescriptor.cpp" + "src/NimBLERemoteService.cpp" + "src/NimBLEScan.cpp" + "src/NimBLESecurity.cpp" + "src/NimBLEServer.cpp" + "src/NimBLEService.cpp" + "src/NimBLEUtils.cpp" + "src/NimBLEUUID.cpp" +) + +set(COMPONENT_ADD_INCLUDEDIRS + src +) + +set(COMPONENT_PRIV_REQUIRES + nvs_flash + bt +) + +if(COMPONENTS MATCHES "esp-nimble-component") + list(APPEND COMPONENT_PRIV_REQUIRES + esp-nimble-component + ) +elseif(COMPONENTS MATCHES "nimble") + list(APPEND COMPONENT_PRIV_REQUIRES + nimble + ) +endif() + +if(COMPONENTS MATCHES "arduino") + list(APPEND COMPONENT_PRIV_REQUIRES + arduino + ) +endif() + +register_component() diff --git a/Kconfig.projbuild b/Kconfig.projbuild deleted file mode 100644 index 069b000..0000000 --- a/Kconfig.projbuild +++ /dev/null @@ -1,27 +0,0 @@ -menu "ESP-NimBLE-CPP configuration" - -config NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT - bool "Show NimBLE return codes as text in debug log." - default "n" - help - Enabling this option will display return code values as text - messages in the debug log. This will use approximately 8kB - of flash memory. - -config NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT - bool "Show NimBLE gap events as text in debug log." - default "n" - help - Enabling this option will display gap event codes as text - messages in the debug log. This will use approximately 1kB - of flash memory. - -config NIMBLE_CPP_ENABLE_ADVERTISMENT_TYPE_TEXT - bool "Show advertisment types as text in debug log." - default "n" - help - Enabling this option will display advertisment types recieved - while scanning as text messages in the debug log. - This will use approximately 250 bytes of flash memory. - -endmenu