diff --git a/esp32_component/esp-idf/components/pip/CMakeLists.txt b/esp32_component/esp-idf/components/pip/CMakeLists.txt new file mode 100644 index 00000000..17ea1cde --- /dev/null +++ b/esp32_component/esp-idf/components/pip/CMakeLists.txt @@ -0,0 +1,31 @@ +set(COMPONENT_SRCS "main.cpp" "pip/src_main/io_devices/piiodevice.cpp") +set(COMPONENT_ADD_INCLUDEDIRS pip/src_main) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/auxiliary) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/code) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/console) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/containers) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/core) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/crypt) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/geo) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/io_devices) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/io_utils) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/math) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/opencl) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/resources) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/system) +list(APPEND COMPONENT_ADD_INCLUDEDIRS pip/src_main/thread) +set(COMPONENT_PRIV_REQUIRES pthread) +register_component() +set(PIP_FREERTOS ON) +set(LIB OFF) +include_directories(${IDF_INCLUDE_DIRECTORIES} ../newlib/platform_include ../libsodium/libsodium/src/libsodium/include ../libsodium/port_include) +#message("IDF_COMPILE_DEFINITIONS = ${IDF_COMPILE_DEFINITIONS}") +#message("IDF_INCLUDE_DIRECTORIES = ${IDF_INCLUDE_DIRECTORIES}") +add_compile_options(${IDF_COMPILE_OPTIONS}) +add_compile_options(${IDF_CXX_COMPILE_OPTIONS}) +add_definitions(-DESP_PLATFORM) +add_definitions(-DGCC_NOT_5_2_0=0) +add_definitions(-DHAVE_CONFIG_H) +add_subdirectory(pip) + +target_link_libraries(${COMPONENT_TARGET} pip) \ No newline at end of file diff --git a/esp32_component/esp-idf/components/pip/main.cpp b/esp32_component/esp-idf/components/pip/main.cpp new file mode 100644 index 00000000..87e4eb10 --- /dev/null +++ b/esp32_component/esp-idf/components/pip/main.cpp @@ -0,0 +1,2 @@ +#include "pip.h" +