mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
parent
a36def9a10
commit
b34f70d312
1
repos/libports/lib/import/import-lz4.mk
Normal file
1
repos/libports/lib/import/import-lz4.mk
Normal file
@ -0,0 +1 @@
|
||||
INC_DIR += $(call select_from_ports,lz4)/include/lz4
|
15
repos/libports/lib/mk/lz4.mk
Normal file
15
repos/libports/lib/mk/lz4.mk
Normal 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
|
1
repos/libports/ports/lz4.hash
Normal file
1
repos/libports/ports/lz4.hash
Normal file
@ -0,0 +1 @@
|
||||
3328c266215d8ee160d99b415ad5d1161b2eac86
|
10
repos/libports/ports/lz4.port
Normal file
10
repos/libports/ports/lz4.port
Normal 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)
|
7
repos/libports/src/test/lz4/main.c
Normal file
7
repos/libports/src/test/lz4/main.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <lz4.h>
|
||||
#include <lz4frame.h>
|
||||
#include <lz4hc.h>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
3
repos/libports/src/test/lz4/target.mk
Normal file
3
repos/libports/src/test/lz4/target.mk
Normal file
@ -0,0 +1,3 @@
|
||||
TARGET = test-lz4
|
||||
LIBS = lz4 posix
|
||||
SRC_C = main.c
|
Loading…
Reference in New Issue
Block a user