committed by
Norman Feske
parent
6af2375ec9
commit
4d10959476
3
lib/import/import-protobuf-c.mk
Normal file
3
lib/import/import-protobuf-c.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
PROTOBUF_C_PORT_DIR := $(call select_from_ports,protobuf-c)
|
||||
|
||||
INC_DIR += $(PROTOBUF_C_PORT_DIR)/include
|
||||
11
lib/mk/protobuf-c.mk
Normal file
11
lib/mk/protobuf-c.mk
Normal file
@@ -0,0 +1,11 @@
|
||||
include $(REP_DIR)/lib/import/import-protobuf-c.mk
|
||||
|
||||
PROTOBUF_C_SRC_DIR := $(PROTOBUF_C_PORT_DIR)/src/lib/protobuf-c/protobuf-c
|
||||
|
||||
SRC_C := protobuf-c.c
|
||||
|
||||
LIBS := libc
|
||||
|
||||
SHARED_LIB := yes
|
||||
|
||||
vpath %.c $(PROTOBUF_C_SRC_DIR)
|
||||
19
lib/symbols/protobuf-c
Normal file
19
lib/symbols/protobuf-c
Normal file
@@ -0,0 +1,19 @@
|
||||
protobuf_c_buffer_simple_append T
|
||||
protobuf_c_empty_string R 1
|
||||
protobuf_c_enum_descriptor_get_value T
|
||||
protobuf_c_enum_descriptor_get_value_by_name T
|
||||
protobuf_c_message_check T
|
||||
protobuf_c_message_descriptor_get_field T
|
||||
protobuf_c_message_descriptor_get_field_by_name T
|
||||
protobuf_c_message_free_unpacked T
|
||||
protobuf_c_message_get_packed_size T
|
||||
protobuf_c_message_init T
|
||||
protobuf_c_message_pack T
|
||||
protobuf_c_message_pack_to_buffer T
|
||||
protobuf_c_message_unpack T
|
||||
protobuf_c_service_descriptor_get_method_by_name T
|
||||
protobuf_c_service_destroy T
|
||||
protobuf_c_service_generated_init T
|
||||
protobuf_c_service_invoke_internal T
|
||||
protobuf_c_version T
|
||||
protobuf_c_version_number T
|
||||
1
ports/protobuf-c.hash
Normal file
1
ports/protobuf-c.hash
Normal file
@@ -0,0 +1 @@
|
||||
97fddbba1e7713358117e7dae4188bb4ebcdc200
|
||||
19
ports/protobuf-c.port
Normal file
19
ports/protobuf-c.port
Normal file
@@ -0,0 +1,19 @@
|
||||
LICENSE := BSDv2
|
||||
VERSION := 1.3.1
|
||||
DOWNLOADS := protobuf-c.archive
|
||||
|
||||
BASE_URL := https://github.com/protobuf-c/protobuf-c/releases/download
|
||||
URL(protobuf-c) := $(BASE_URL)/v$(VERSION)/protobuf-c-$(VERSION).tar.gz
|
||||
SHA(protobuf-c) := 51472d3a191d6d7b425e32b612e477c06f73fe23e07f6a6a839b11808e9d2267
|
||||
DIR(protobuf-c) := src/lib/protobuf-c
|
||||
|
||||
DIRS := include/protobuf-c
|
||||
|
||||
DIR_CONTENT(include/protobuf-c) := src/lib/protobuf-c/protobuf-c/protobuf-c.h
|
||||
|
||||
default: change_path
|
||||
|
||||
# make building as a recipe easier
|
||||
change_path: _dirs
|
||||
$(VERBOSE)sed -i 's;de "protobuf-c.h";de <protobuf-c/protobuf-c.h>;' \
|
||||
src/lib/protobuf-c/protobuf-c/protobuf-c.c
|
||||
13
recipes/api/protobuf-c/content.mk
Normal file
13
recipes/api/protobuf-c/content.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
content: include/protobuf-c lib/symbols/protobuf-c LICENSE
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/protobuf-c)
|
||||
|
||||
include/protobuf-c:
|
||||
mkdir -p $@
|
||||
cp -r $(PORT_DIR)/$@/* $@
|
||||
|
||||
lib/symbols/protobuf-c:
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
LICENSE:
|
||||
cp $(PORT_DIR)/src/lib/protobuf-c/LICENSE $@
|
||||
1
recipes/api/protobuf-c/hash
Normal file
1
recipes/api/protobuf-c/hash
Normal file
@@ -0,0 +1 @@
|
||||
2018-09-26 a3bc354e7ab019a6a71db3e52cbdca42bba53859
|
||||
1
recipes/src/protobuf-c/api
Normal file
1
recipes/src/protobuf-c/api
Normal file
@@ -0,0 +1 @@
|
||||
protobuf-c
|
||||
17
recipes/src/protobuf-c/content.mk
Normal file
17
recipes/src/protobuf-c/content.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
MIRROR_FROM_REP_DIR = lib/import/import-protobuf-c.mk lib/mk/protobuf-c.mk
|
||||
|
||||
content: $(MIRROR_FROM_REP_DIR) src/lib/protobuf-c/target.mk LICENSE
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/protobuf-c)
|
||||
|
||||
src/lib/protobuf-c/target.mk:
|
||||
mkdir -p src/lib/protobuf-c/protobuf-c
|
||||
cp -r $(PORT_DIR)/src/lib/protobuf-c/protobuf-c/*.c \
|
||||
src/lib/protobuf-c/protobuf-c/
|
||||
echo "LIBS := protobuf-c" > $@
|
||||
|
||||
LICENSE:
|
||||
cp $(PORT_DIR)/src/lib/protobuf-c/LICENSE $@
|
||||
1
recipes/src/protobuf-c/hash
Normal file
1
recipes/src/protobuf-c/hash
Normal file
@@ -0,0 +1 @@
|
||||
2018-09-26 6f7eb33e1013562ee36e9009390d35ac062bd83a
|
||||
2
recipes/src/protobuf-c/used_apis
Normal file
2
recipes/src/protobuf-c/used_apis
Normal file
@@ -0,0 +1,2 @@
|
||||
base
|
||||
libc
|
||||
Reference in New Issue
Block a user