added http-parser

main
phani 5 years ago
parent 9376453058
commit 69b6dcf83c

3
.gitmodules vendored

@ -5,3 +5,6 @@
[submodule "runtime/jsmn"] [submodule "runtime/jsmn"]
path = runtime/jsmn path = runtime/jsmn
url = https://github.com/zserge/jsmn.git url = https://github.com/zserge/jsmn.git
[submodule "runtime/http-parser"]
path = runtime/http-parser
url = https://github.com/nodejs/http-parser.git

@ -31,6 +31,12 @@ JSMN=jsmn
JSMNINC=-I${JSMN} JSMNINC=-I${JSMN}
JSMNCFLAGS=${JSMNINC} -DJSMN_STATIC -DJSMN_STRICT JSMNCFLAGS=${JSMNINC} -DJSMN_STATIC -DJSMN_STRICT
HTTPPARSE=http-parser
HTTPPARSEINC=-I${HTTPPARSE}
HTTPPARSESRC=${HTTPPARSE}/http_parser.c
HTTPPARSECFLAGS=${HTTPPARSEINC}
CFILES += ${HTTPPARSESRC}
ifeq ($(USE_MEM),USE_MEM_GENERIC) ifeq ($(USE_MEM),USE_MEM_GENERIC)
CFILES += ${RTDIR}/memory/generic.c CFILES += ${RTDIR}/memory/generic.c
else ifeq ($(USE_MEM),USE_MEM_VM) else ifeq ($(USE_MEM),USE_MEM_VM)
@ -42,7 +48,7 @@ all: clean runtime tools
runtime: runtime:
@echo "Compiling runtime" @echo "Compiling runtime"
@mkdir -p bin/ @mkdir -p bin/
@${CC} ${CFLAGS} ${LDFLAGS} ${CFILES} ${JSMNCFLAGS} -L/usr/lib/ -luv $^ -o ${RUNTIME} @${CC} ${CFLAGS} ${LDFLAGS} ${CFILES} ${JSMNCFLAGS} ${HTTPPARSECFLAGS} -L/usr/lib/ -luv $^ -o ${RUNTIME}
tools: tools:
# @echo "Compiling tools" # @echo "Compiling tools"

@ -0,0 +1 @@
Subproject commit 28f3c35c215ffbe0241685901338fad484660454
Loading…
Cancel
Save