提交 6c2d0442 编写于 作者: L lifeng68

refact: move buffer.c to utils directory

Signed-off-by: Nlifeng68 <lifeng68@huawei.com>
上级 71d32bfa
......@@ -6,6 +6,7 @@ add_subdirectory(cutils)
add_subdirectory(sha256)
add_subdirectory(tar)
add_subdirectory(http)
add_subdirectory(buffer)
set(local_utils_srcs
${utils_top_srcs}
......@@ -13,6 +14,7 @@ set(local_utils_srcs
${SHA256_SRCS}
${CUTILS_SRCS}
${CONSOLE_SRCS}
${BUFFER_SRCS}
)
set(local_utils_incs
......@@ -21,6 +23,7 @@ set(local_utils_incs
${SHA256_INCS}
${CUTILS_INCS}
${CONSOLE_INCS}
${BUFFER_INCS}
)
if (GRPC_CONNECTOR)
......
# get current directory sources files
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} local_buffer_srcs)
set(BUFFER_SRCS
${local_buffer_srcs}
PARENT_SCOPE
)
set(BUFFER_INCS
${CMAKE_CURRENT_SOURCE_DIR}
PARENT_SCOPE
)
......@@ -12,6 +12,7 @@ target_include_directories(libhttpclient PUBLIC
${CMAKE_SOURCE_DIR}/src/utils
${CMAKE_SOURCE_DIR}/src/utils/cutils
${CMAKE_SOURCE_DIR}/src/utils/http
${CMAKE_SOURCE_DIR}/src/utils/buffer
${CHECKED_INCLUDE_DIRS}
)
......
......@@ -17,7 +17,7 @@
#include <stddef.h>
#include "http/buffer.h"
#include "buffer.h"
#include "http/http.h"
#include "parser.h"
......@@ -49,4 +49,3 @@ void put_body(char *body);
#endif
#endif // UTILS_HTTP_REST_COMMON_H
......@@ -21,7 +21,7 @@ add_executable(${EXE}
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/daemon/common/err_msg.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/daemon/config/daemon_arguments.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/utils/http/parser.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/utils/http/buffer.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/utils/buffer/buffer.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/utils/cutils/utils_aes.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/daemon/modules/image/oci/storage/image_store/image_type.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/daemon/config/isulad_config.c
......
......@@ -84,7 +84,7 @@ add_executable(${LAYER_EXE}
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/cutils/path.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/cutils/map/map.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/cutils/map/rb_tree.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/http/buffer.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/buffer/buffer.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/tar/util_archive.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/tar/util_gzip.c
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src/utils/sha256/sha256.c
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册