From b7ef5bfdcbedce137d9e55aa6408650d62c583d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 5 Feb 2019 09:25:24 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@686 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- .../esp-idf/components/pip/CMakeLists.txt | 31 +++++++++++++++++++ .../esp-idf/components/pip/main.cpp | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 esp32_component/esp-idf/components/pip/CMakeLists.txt create mode 100644 esp32_component/esp-idf/components/pip/main.cpp 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" +