From e7e6df63584f1d51e459279d5a069ae70fa39f08 Mon Sep 17 00:00:00 2001 From: "Ruslan V. Uss" Date: Wed, 23 Nov 2016 21:58:02 +0600 Subject: [PATCH] HTTP parser intergation (#263) * HTTP parser intergation * include path fixed --- .gitmodules | 3 +++ extras/http-parser/component.mk | 11 +++++++++++ extras/http-parser/http-parser | 1 + 3 files changed, 15 insertions(+) create mode 100644 extras/http-parser/component.mk create mode 160000 extras/http-parser/http-parser diff --git a/.gitmodules b/.gitmodules index d9d5e4c..a769e1d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "tests/fs-test"] path = tests/fs-test url = https://github.com/sheinz/fs-test +[submodule "extras/http-parser/http-parser"] + path = extras/http-parser/http-parser + url = https://github.com/nodejs/http-parser diff --git a/extras/http-parser/component.mk b/extras/http-parser/component.mk new file mode 100644 index 0000000..d3787fb --- /dev/null +++ b/extras/http-parser/component.mk @@ -0,0 +1,11 @@ +# Component makefile for extras/http-parser + +# Include it as 'http-parser/http_parser.h' +INC_DIRS += $(http-parser_ROOT) + +# args for passing into compile rule generation +http-parser_INC_DIR = +http-parser_SRC_DIR = $(http-parser_ROOT)http-parser +http-parser_SRC_FILES = $(http-parser_SRC_DIR)/http_parser.c + +$(eval $(call component_compile_rules,http-parser)) diff --git a/extras/http-parser/http-parser b/extras/http-parser/http-parser new file mode 160000 index 0000000..335850f --- /dev/null +++ b/extras/http-parser/http-parser @@ -0,0 +1 @@ +Subproject commit 335850f6b868d3411968cbf5a4d59fe619dee36f