Skip to content

Commit 97e8e09

Browse files
Renato Carvalhotrimpim
Renato Carvalho
authored andcommitted
jsonc: create shared library and depot recipes
- build a shared library - create src and api depot recipes Issue: gapfruit#1571 Issue: genodelabs#383
1 parent ca99e72 commit 97e8e09

File tree

9 files changed

+175
-3
lines changed

9 files changed

+175
-3
lines changed

lib/import/import-jsonc.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
JSONC_PORT_DIR := $(call select_from_ports,jsonc)
2-
3-
INC_DIR += $(JSONC_PORT_DIR)/include/jsonc
1+
INC_DIR += $(call select_from_ports,jsonc)/include/jsonc

lib/mk/jsonc.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
JSONC_DIR := $(call select_from_ports,jsonc)/src/lib/jsonc
22

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

56
SRC_C = arraylist.c \

lib/symbols/jsonc

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
__gnu_Unwind_Find_exidx T
2+
_json_c_set_last_err T
3+
_json_c_strerror T
4+
_json_c_strerror_enable B 4
5+
array_list_add T
6+
array_list_bsearch T
7+
array_list_del_idx T
8+
array_list_free T
9+
array_list_get_idx T
10+
array_list_length T
11+
array_list_new T
12+
array_list_put_idx T
13+
array_list_sort T
14+
dl_unwind_find_exidx W
15+
json_c_get_random_seed T
16+
json_c_object_sizeof T
17+
json_c_set_serialization_double_format T
18+
json_c_shallow_copy_default T
19+
json_c_version T
20+
json_c_version_num T
21+
json_c_visit T
22+
json_global_set_string_hash T
23+
json_hex_chars D 8
24+
json_number_chars D 8
25+
json_object_array_add T
26+
json_object_array_bsearch T
27+
json_object_array_del_idx T
28+
json_object_array_get_idx T
29+
json_object_array_length T
30+
json_object_array_put_idx T
31+
json_object_array_sort T
32+
json_object_deep_copy T
33+
json_object_double_to_json_string T
34+
json_object_equal T
35+
json_object_free_userdata T
36+
json_object_from_fd T
37+
json_object_from_file T
38+
json_object_get T
39+
json_object_get_array T
40+
json_object_get_boolean T
41+
json_object_get_double T
42+
json_object_get_int T
43+
json_object_get_int64 T
44+
json_object_get_object T
45+
json_object_get_string T
46+
json_object_get_string_len T
47+
json_object_get_type T
48+
json_object_get_userdata T
49+
json_object_int_inc T
50+
json_object_is_type T
51+
json_object_iter_begin T
52+
json_object_iter_end T
53+
json_object_iter_equal T
54+
json_object_iter_init_default T
55+
json_object_iter_next T
56+
json_object_iter_peek_name T
57+
json_object_iter_peek_value T
58+
json_object_new_array T
59+
json_object_new_boolean T
60+
json_object_new_double T
61+
json_object_new_double_s T
62+
json_object_new_int T
63+
json_object_new_int64 T
64+
json_object_new_object T
65+
json_object_new_string T
66+
json_object_new_string_len T
67+
json_object_object_add T
68+
json_object_object_add_ex T
69+
json_object_object_del T
70+
json_object_object_get T
71+
json_object_object_get_ex T
72+
json_object_object_length T
73+
json_object_put T
74+
json_object_set_boolean T
75+
json_object_set_double T
76+
json_object_set_int T
77+
json_object_set_int64 T
78+
json_object_set_serializer T
79+
json_object_set_string T
80+
json_object_set_string_len T
81+
json_object_set_userdata T
82+
json_object_to_fd T
83+
json_object_to_file T
84+
json_object_to_file_ext T
85+
json_object_to_json_string T
86+
json_object_to_json_string_ext T
87+
json_object_to_json_string_length T
88+
json_object_userdata_to_json_string T
89+
json_parse_double T
90+
json_parse_int64 T
91+
json_pointer_get T
92+
json_pointer_getf T
93+
json_pointer_set T
94+
json_pointer_setf T
95+
json_tokener_error_desc T
96+
json_tokener_free T
97+
json_tokener_get_error T
98+
json_tokener_new T
99+
json_tokener_new_ex T
100+
json_tokener_parse T
101+
json_tokener_parse_ex T
102+
json_tokener_parse_verbose T
103+
json_tokener_reset T
104+
json_tokener_set_flags T
105+
json_type_to_name T
106+
json_util_get_last_err T
107+
lh_char_equal T
108+
lh_kchar_table_new T
109+
lh_kptr_table_new T
110+
lh_ptr_equal T
111+
lh_table_delete T
112+
lh_table_delete_entry T
113+
lh_table_free T
114+
lh_table_insert T
115+
lh_table_insert_w_hash T
116+
lh_table_length T
117+
lh_table_lookup_entry T
118+
lh_table_lookup_entry_w_hash T
119+
lh_table_lookup_ex T
120+
lh_table_new T
121+
lh_table_resize T
122+
mc_debug T
123+
mc_error T
124+
mc_get_debug T
125+
mc_info T
126+
mc_set_debug T
127+
mc_set_syslog T
128+
printbuf_free T
129+
printbuf_memappend T
130+
printbuf_memset T
131+
printbuf_new T
132+
printbuf_reset T
133+
sprintbuf T

recipes/api/jsonc/content.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
MIRROR_FROM_REP_DIR = lib/import/import-jsonc.mk lib/symbols/jsonc
2+
3+
content: $(MIRROR_FROM_REP_DIR) include LICENSE
4+
5+
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jsonc)
6+
7+
$(MIRROR_FROM_REP_DIR):
8+
$(mirror_from_rep_dir)
9+
10+
include:
11+
mkdir -p "$(dir $@)"
12+
cp -R $(PORT_DIR)/include/* $@
13+
14+
LICENSE:
15+
cp $(PORT_DIR)/src/lib/jsonc/COPYING $@

recipes/api/jsonc/hash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-11-21-c aba967206a85bb579cd9349db9c673a38b4e2a6d

recipes/src/jsonc/api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jsonc

recipes/src/jsonc/content.mk

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
SRC_DIR := src/lib/jsonc
2+
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jsonc)
3+
4+
MIRROR_FROM_REP_DIR := lib/mk/jsonc.mk
5+
MIRROR_FROM_REP_DIR += lib/import/import-jsonc.mk
6+
7+
MIRROR_FROM_PORT := src/lib/jsonc
8+
9+
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT) LICENSE
10+
11+
$(MIRROR_FROM_PORT):
12+
mkdir -p $(dir $@)
13+
cp -ar $(PORT_DIR)/$@ $@
14+
echo "LIBS := jsonc" > $@/target.mk
15+
16+
$(MIRROR_FROM_REP_DIR):
17+
$(mirror_from_rep_dir)
18+
19+
LICENSE:
20+
cp $(PORT_DIR)/src/lib/jsonc/COPYING $@

recipes/src/jsonc/hash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-11-21-b f86c7cd93d87f3c02368cec84d2dacdaf61e430f

recipes/src/jsonc/used_apis

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
base
2+
libc

0 commit comments

Comments
 (0)