Skip to content

Commit

Permalink
jsonc: create shared library and depot recipes
Browse files Browse the repository at this point in the history
 - build a shared library
 - create src and api depot recipes

Issue: gapfruit#1571
Issue: genodelabs#383
  • Loading branch information
Renato Carvalho authored and trimpim committed Jan 27, 2025
1 parent ca99e72 commit 97e8e09
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/import/import-jsonc.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
JSONC_PORT_DIR := $(call select_from_ports,jsonc)

INC_DIR += $(JSONC_PORT_DIR)/include/jsonc
INC_DIR += $(call select_from_ports,jsonc)/include/jsonc
1 change: 1 addition & 0 deletions lib/mk/jsonc.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
JSONC_DIR := $(call select_from_ports,jsonc)/src/lib/jsonc

SHARED_LIB := yes
include $(REP_DIR)/lib/import/import-jsonc.mk

SRC_C = arraylist.c \
Expand Down
133 changes: 133 additions & 0 deletions lib/symbols/jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
__gnu_Unwind_Find_exidx T
_json_c_set_last_err T
_json_c_strerror T
_json_c_strerror_enable B 4
array_list_add T
array_list_bsearch T
array_list_del_idx T
array_list_free T
array_list_get_idx T
array_list_length T
array_list_new T
array_list_put_idx T
array_list_sort T
dl_unwind_find_exidx W
json_c_get_random_seed T
json_c_object_sizeof T
json_c_set_serialization_double_format T
json_c_shallow_copy_default T
json_c_version T
json_c_version_num T
json_c_visit T
json_global_set_string_hash T
json_hex_chars D 8
json_number_chars D 8
json_object_array_add T
json_object_array_bsearch T
json_object_array_del_idx T
json_object_array_get_idx T
json_object_array_length T
json_object_array_put_idx T
json_object_array_sort T
json_object_deep_copy T
json_object_double_to_json_string T
json_object_equal T
json_object_free_userdata T
json_object_from_fd T
json_object_from_file T
json_object_get T
json_object_get_array T
json_object_get_boolean T
json_object_get_double T
json_object_get_int T
json_object_get_int64 T
json_object_get_object T
json_object_get_string T
json_object_get_string_len T
json_object_get_type T
json_object_get_userdata T
json_object_int_inc T
json_object_is_type T
json_object_iter_begin T
json_object_iter_end T
json_object_iter_equal T
json_object_iter_init_default T
json_object_iter_next T
json_object_iter_peek_name T
json_object_iter_peek_value T
json_object_new_array T
json_object_new_boolean T
json_object_new_double T
json_object_new_double_s T
json_object_new_int T
json_object_new_int64 T
json_object_new_object T
json_object_new_string T
json_object_new_string_len T
json_object_object_add T
json_object_object_add_ex T
json_object_object_del T
json_object_object_get T
json_object_object_get_ex T
json_object_object_length T
json_object_put T
json_object_set_boolean T
json_object_set_double T
json_object_set_int T
json_object_set_int64 T
json_object_set_serializer T
json_object_set_string T
json_object_set_string_len T
json_object_set_userdata T
json_object_to_fd T
json_object_to_file T
json_object_to_file_ext T
json_object_to_json_string T
json_object_to_json_string_ext T
json_object_to_json_string_length T
json_object_userdata_to_json_string T
json_parse_double T
json_parse_int64 T
json_pointer_get T
json_pointer_getf T
json_pointer_set T
json_pointer_setf T
json_tokener_error_desc T
json_tokener_free T
json_tokener_get_error T
json_tokener_new T
json_tokener_new_ex T
json_tokener_parse T
json_tokener_parse_ex T
json_tokener_parse_verbose T
json_tokener_reset T
json_tokener_set_flags T
json_type_to_name T
json_util_get_last_err T
lh_char_equal T
lh_kchar_table_new T
lh_kptr_table_new T
lh_ptr_equal T
lh_table_delete T
lh_table_delete_entry T
lh_table_free T
lh_table_insert T
lh_table_insert_w_hash T
lh_table_length T
lh_table_lookup_entry T
lh_table_lookup_entry_w_hash T
lh_table_lookup_ex T
lh_table_new T
lh_table_resize T
mc_debug T
mc_error T
mc_get_debug T
mc_info T
mc_set_debug T
mc_set_syslog T
printbuf_free T
printbuf_memappend T
printbuf_memset T
printbuf_new T
printbuf_reset T
sprintbuf T
15 changes: 15 additions & 0 deletions recipes/api/jsonc/content.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MIRROR_FROM_REP_DIR = lib/import/import-jsonc.mk lib/symbols/jsonc

content: $(MIRROR_FROM_REP_DIR) include LICENSE

PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jsonc)

$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)

include:
mkdir -p "$(dir $@)"
cp -R $(PORT_DIR)/include/* $@

LICENSE:
cp $(PORT_DIR)/src/lib/jsonc/COPYING $@
1 change: 1 addition & 0 deletions recipes/api/jsonc/hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2022-11-21-c aba967206a85bb579cd9349db9c673a38b4e2a6d
1 change: 1 addition & 0 deletions recipes/src/jsonc/api
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jsonc
20 changes: 20 additions & 0 deletions recipes/src/jsonc/content.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SRC_DIR := src/lib/jsonc
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jsonc)

MIRROR_FROM_REP_DIR := lib/mk/jsonc.mk
MIRROR_FROM_REP_DIR += lib/import/import-jsonc.mk

MIRROR_FROM_PORT := src/lib/jsonc

content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT) LICENSE

$(MIRROR_FROM_PORT):
mkdir -p $(dir $@)
cp -ar $(PORT_DIR)/$@ $@
echo "LIBS := jsonc" > $@/target.mk

$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)

LICENSE:
cp $(PORT_DIR)/src/lib/jsonc/COPYING $@
1 change: 1 addition & 0 deletions recipes/src/jsonc/hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2022-11-21-b f86c7cd93d87f3c02368cec84d2dacdaf61e430f
2 changes: 2 additions & 0 deletions recipes/src/jsonc/used_apis
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
base
libc

0 comments on commit 97e8e09

Please sign in to comment.