Skip to content

Commit

Permalink
added libhttp_parser build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wildart committed Jun 28, 2016
1 parent c775fc5 commit 9c63d77
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions deps/http_parser.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## http_parser

HTTPPARSER_GIT_URL := git://github.com/nodejs/http-parser.git
HTTPPARSER_TAR_URL = https://api.github.com/repos/nodejs/http-parser/tarball/$1
$(eval $(call git-external,http_parser,HTTPPARSER,Makefile,libhttpparser.$(SHLIB_EXT),$(BUILDDIR)))

HTTPPARSER_OBJ_TARGET := $(build_shlibdir)/libhttp_parser.$(SHLIB_EXT)
HTTPPARSER_OBJ_SOURCE := $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)/libhttp_parser.$(SHLIB_EXT)

$(HTTPPARSER_OBJ_SOURCE): $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)/Makefile
$(MAKE) -C $(dir $<) library $(MAKE_COMMON)
touch -c $@
$(HTTPPARSER_OBJ_TARGET): $(HTTPPARSER_OBJ_SOURCE)
$(call make-install,$(HTTPPARSER_SRC_DIR), library PREFIX=$(build_staging)/$(HTTPPARSER_SRC_DIR)$(build_prefix))
touch -c $(HTTPPARSER_OBJ_TARGET)

clean-http_parser:
-rm -rf $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)
-rm -f $(HTTPPARSER_OBJ_TARGET)
distclean-http_parser:
-rm -rf $(SRCDIR)/srccache/http_parser-$(HTTPPARSER_SHA1).tar.gz \
$(SRCDIR)/srccache/http_parser-$(HTTPPARSER_SHA1) \
$(BUILDDIR)/http_parser-$(HTTPPARSER_SHA1)

get-http_parser: $(HTTPPARSER_SRC_FILE)
configure-http_parser: $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)/Makefile
compile-http_parser: $(HTTPPARSER_OBJ_SOURCE)
check-http_parser: compile-http_parser

This comment has been minimized.

Copy link
@tkelman

tkelman Jun 30, 2016

Contributor

if this has actual tests, we should run them

install-http_parser: $(HTTPPARSER_OBJ_TARGET)
2 changes: 2 additions & 0 deletions deps/http_parser.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HTTPPARSER_BRANCH=master
HTTPPARSER_SHA1=9b0d5b33ebdaacff1dadd06bad4e198b11ff880e

0 comments on commit 9c63d77

Please sign in to comment.