diff --git a/BUILD.gn b/BUILD.gn index 49563ff..637e989 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -133,7 +133,39 @@ ohos_shared_library("ejdb") { ":copy_iowow_header", "//third_party/iowow:iowow", ] - + version_script = "libejdb.map" + part_name = "ejdb" + subsystem_name = "thirdparty" +} + +ohos_static_library("ejdb_static_lib_for_tdd") { + configs = [ ":ejdb_config" ] + + public_configs = [ ":ejdb_public_config" ] + + sources = [ + "src/ejdb2.c", + "src/jbi/jbi_consumer.c", + "src/jbi/jbi_dup_scanner.c", + "src/jbi/jbi_full_scanner.c", + "src/jbi/jbi_pk_scanner.c", + "src/jbi/jbi_selection.c", + "src/jbi/jbi_sorter_consumer.c", + "src/jbi/jbi_uniq_scanner.c", + "src/jbi/jbi_util.c", + "src/jbl/binn.c", + "src/jbl/jbl.c", + "src/jbl/jbl_json.c", + "src/jql/jql.c", + "src/jql/jqp.c", + "src/util/lwre.c", + "src/util/utf8proc.c", + ] + + deps = [ + ":copy_iowow_header", + "//third_party/iowow:iowow", + ] part_name = "ejdb" subsystem_name = "thirdparty" } diff --git a/libejdb.map b/libejdb.map new file mode 100644 index 0000000..0cc2c0f --- /dev/null +++ b/libejdb.map @@ -0,0 +1,25 @@ +{ + global: + "ejdb_init"; + "ejdb_open"; + "ejdb_ensure_index"; + "ejdb_close"; + "jbl_from_json"; + "ejdb_put_new"; + "jbl_destroy"; + "ejdb_patch"; + "jql_create"; + "ejdb_exec"; + "jql_destroy"; + "ejdb_get_meta"; + "jbl_at"; + "jbl_get_i64"; + "ejdb_list2"; + "jbl_xstr_json_printer"; + "jbl_as_json"; + "ejdb_list_destroy"; + "ejdb_online_backup"; + + local: + *; +}; \ No newline at end of file