From 3f9b0d8c2a923479942efaedcc189b63cdd6c2e5 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Wed, 11 Sep 2019 16:12:53 +0530 Subject: [PATCH] nghttp: move config.h to private_include dirs --- components/nghttp/CMakeLists.txt | 3 ++- components/nghttp/component.mk | 2 ++ components/nghttp/{port/include => private_include}/config.h | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename components/nghttp/{port/include => private_include}/config.h (100%) diff --git a/components/nghttp/CMakeLists.txt b/components/nghttp/CMakeLists.txt index 1c9ba17a2..f97cc7731 100644 --- a/components/nghttp/CMakeLists.txt +++ b/components/nghttp/CMakeLists.txt @@ -24,6 +24,7 @@ set(srcs "port/http_parser.c") idf_component_register(SRCS "${srcs}" - INCLUDE_DIRS port/include nghttp2/lib/includes) + INCLUDE_DIRS port/include nghttp2/lib/includes + PRIV_INCLUDE_DIRS private_include) target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DHAVE_CONFIG_H") diff --git a/components/nghttp/component.mk b/components/nghttp/component.mk index 2a69cd5e1..10d0bdefb 100644 --- a/components/nghttp/component.mk +++ b/components/nghttp/component.mk @@ -4,6 +4,8 @@ COMPONENT_ADD_INCLUDEDIRS := port/include nghttp2/lib/includes +COMPONENT_PRIV_INCLUDEDIRS := private_include + COMPONENT_SRCDIRS := nghttp2/lib port COMPONENT_SUBMODULES := nghttp2 diff --git a/components/nghttp/port/include/config.h b/components/nghttp/private_include/config.h similarity index 100% rename from components/nghttp/port/include/config.h rename to components/nghttp/private_include/config.h