Skip to content
Snippets Groups Projects
Commit 63db1372 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

Move 'http_parser' to src/lib

Http_parser in fact does not depend on anything, even on the core.
As a rule, such basic libraries are stored in src/lib.

The patch is not necessary for anything, but it is a right thing
to do, while some activity is happening there.
parent 8f695fc4
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,6 @@ set (core_sources ...@@ -100,7 +100,6 @@ set (core_sources
util.c util.c
random.c random.c
trigger.cc trigger.cc
http_parser.c
coll.c coll.c
coll_def.c coll_def.c
mpstream.c mpstream.c
...@@ -219,7 +218,7 @@ endif() ...@@ -219,7 +218,7 @@ endif()
set_source_files_compile_flags(${server_sources}) set_source_files_compile_flags(${server_sources})
add_library(server STATIC ${server_sources}) add_library(server STATIC ${server_sources})
target_link_libraries(server core bit uri uuid ${ICU_LIBRARIES}) target_link_libraries(server core http_parser bit uri uuid ${ICU_LIBRARIES})
# Rule of thumb: if exporting a symbol from a static library, list the # Rule of thumb: if exporting a symbol from a static library, list the
# library here. # library here.
......
...@@ -6,6 +6,7 @@ add_subdirectory(salad) ...@@ -6,6 +6,7 @@ add_subdirectory(salad)
add_subdirectory(csv) add_subdirectory(csv)
add_subdirectory(json) add_subdirectory(json)
add_subdirectory(uri) add_subdirectory(uri)
add_subdirectory(http_parser)
if(ENABLE_BUNDLED_MSGPUCK) if(ENABLE_BUNDLED_MSGPUCK)
add_subdirectory(msgpuck EXCLUDE_FROM_ALL) add_subdirectory(msgpuck EXCLUDE_FROM_ALL)
endif() endif()
add_library(http_parser STATIC http_parser.c)
File moved
File moved
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
*/ */
#define DRIVER_LUA_UDATA_NAME "httpc" #define DRIVER_LUA_UDATA_NAME "httpc"
#include <http_parser.h> #include "http_parser/http_parser.h"
#include "src/httpc.h" #include "src/httpc.h"
#include "say.h" #include "say.h"
#include "lua/utils.h" #include "lua/utils.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment