port library: lz4

Issue #2528
This commit is contained in:
Ben Larson 2017-11-07 17:44:50 -07:00 committed by Christian Helmuth
parent a36def9a10
commit b34f70d312
6 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1 @@
INC_DIR += $(call select_from_ports,lz4)/include/lz4

View File

@ -0,0 +1,15 @@
LZ4_PORT_DIR := $(call select_from_ports,lz4)
LZ4_DIR := $(LZ4_PORT_DIR)/src/lib/lz4/lib
SRC_C = lz4.c \
lz4frame.c \
lz4hc.c \
xxhash.c
vpath %.c $(LZ4_DIR)
INC_DIR += $(LZ4_DIR)
LIBS += libc
SHARED_LIB = yes

View File

@ -0,0 +1 @@
3328c266215d8ee160d99b415ad5d1161b2eac86

View File

@ -0,0 +1,10 @@
LICENSE := BSD
DOWNLOADS := lz4.archive
VERSION := 1.8.0
URL(lz4) := https://github.com/lz4/lz4/archive/v$(VERSION).tar.gz
SHA(lz4) := 3ef95c78f14ac26a806518846e4a24a2b0d825b4
DIR(lz4) := src/lib/lz4
DIRS := include/lz4
DIR_CONTENT(include/lz4) := $(addprefix src/lib/lz4/lib/,lz4.h lz4frame.h lz4hc.h)

View File

@ -0,0 +1,7 @@
#include <lz4.h>
#include <lz4frame.h>
#include <lz4hc.h>
int main() {
return 0;
}

View File

@ -0,0 +1,3 @@
TARGET = test-lz4
LIBS = lz4 posix
SRC_C = main.c