FS-10690: Added support for compiling civetweb inline when building libblade

This commit is contained in:
Shane Bryldt 2017-09-28 17:53:56 -05:00
parent a3be6fe2d9
commit 4c57f0aa5b
1 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,7 @@ AUTOMAKE_OPTIONS = subdir-objects
CIVETWEB_VERSION=1.9.1
CIVETWEB=civetweb-$(CIVETWEB_VERSION)
CIVETWEB_DIR=$(top_srcdir)/../$(CIVETWEB)
CIVETWEB_LIB=$(top_srcdir)/../$(CIVETWEB)/libcivetweb.a
AM_CFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/src/include -I$(CIVETWEB_DIR)/include
AM_LDFLAGS += -L$(CIVETWEB_DIR)
@ -36,10 +37,13 @@ library_include_HEADERS += src/include/blade_protocol.h src/include/blade_subscr
library_include_HEADERS += src/include/blade_transport.h src/include/blade_transport_wss.h
library_include_HEADERS += src/include/unqlite.h test/tap.h
BUILT_SOURCES=$(CIVETWEB_DIR)
BUILT_SOURCES=$(CIVETWEB_LIB)
$(CIVETWEB_LIB): $(CIVETWEB_DIR)
cd $(CIVETWEB_DIR) && $(MAKE) lib USE_STACK_SIZE=102400 MAX_REQUEST_SIZE=16384 WITH_LUA=1 LUA_COMPAT_ALL=1 USE_LUA_SQLITE3=1 USE_LUA_FILE_SYSTEM=1 WITH_IPV6=1 WITH_WEBSOCKET=1 && $(MAKE) lib USE_STACK_SIZE=102400 MAX_REQUEST_SIZE=16384 WITH_LUA=1 LUA_COMPAT_ALL=1 USE_LUA_SQLITE3=1 USE_LUA_FILE_SYSTEM=1 WITH_IPV6=1 WITH_WEBSOCKET=1 WITH_DUKTAPE=1
$(CIVETWEB_DIR):
$(GETLIB) $(CIVETWEB).tar.gz
$(GETLIB) $(CIVETWEB).tar.gz
tests: libblade.la
$(MAKE) -C test tests