diff --git a/librz/include/meson.build b/librz/include/meson.build index d3cb51fb076..45e2cc21417 100644 --- a/librz/include/meson.build +++ b/librz/include/meson.build @@ -117,6 +117,11 @@ rz_util_files = [ 'rz_util/rz_utf8.h', 'rz_util/rz_version.h', 'rz_util/rz_x509.h', + 'rz_util/ht_inc.h', + 'rz_util/ht_pp.h', + 'rz_util/ht_pu.h', + 'rz_util/ht_up.h', + 'rz_util/ht_uu.h', ] install_headers(rz_util_files, install_dir: join_paths(rizin_incdir, 'rz_util')) diff --git a/librz/util/sdb/src/ht_inc.h b/librz/include/rz_util/ht_inc.h similarity index 100% rename from librz/util/sdb/src/ht_inc.h rename to librz/include/rz_util/ht_inc.h diff --git a/librz/util/sdb/src/ht_pp.h b/librz/include/rz_util/ht_pp.h similarity index 100% rename from librz/util/sdb/src/ht_pp.h rename to librz/include/rz_util/ht_pp.h diff --git a/librz/util/sdb/src/ht_pu.h b/librz/include/rz_util/ht_pu.h similarity index 100% rename from librz/util/sdb/src/ht_pu.h rename to librz/include/rz_util/ht_pu.h diff --git a/librz/util/sdb/src/ht_up.h b/librz/include/rz_util/ht_up.h similarity index 100% rename from librz/util/sdb/src/ht_up.h rename to librz/include/rz_util/ht_up.h diff --git a/librz/util/sdb/src/ht_uu.h b/librz/include/rz_util/ht_uu.h similarity index 100% rename from librz/util/sdb/src/ht_uu.h rename to librz/include/rz_util/ht_uu.h diff --git a/librz/util/sdb/src/ht_inc.c b/librz/util/ht/ht_inc.c similarity index 100% rename from librz/util/sdb/src/ht_inc.c rename to librz/util/ht/ht_inc.c diff --git a/librz/util/sdb/src/ht_pp.c b/librz/util/ht/ht_pp.c similarity index 100% rename from librz/util/sdb/src/ht_pp.c rename to librz/util/ht/ht_pp.c diff --git a/librz/util/sdb/src/ht_pu.c b/librz/util/ht/ht_pu.c similarity index 100% rename from librz/util/sdb/src/ht_pu.c rename to librz/util/ht/ht_pu.c diff --git a/librz/util/sdb/src/ht_up.c b/librz/util/ht/ht_up.c similarity index 100% rename from librz/util/sdb/src/ht_up.c rename to librz/util/ht/ht_up.c diff --git a/librz/util/sdb/src/ht_uu.c b/librz/util/ht/ht_uu.c similarity index 100% rename from librz/util/sdb/src/ht_uu.c rename to librz/util/ht/ht_uu.c diff --git a/librz/util/meson.build b/librz/util/meson.build index d3c1f62fc62..69143d37194 100644 --- a/librz/util/meson.build +++ b/librz/util/meson.build @@ -83,6 +83,11 @@ rz_util_common_sources = [ 'version.c', 'w32-sys.c', 'x509.c', + 'ht/ht_uu.c', + 'ht/ht_pp.c', + 'ht/ht_up.c', + 'ht/ht_pu.c', + 'set.c', ] rz_util_sources = rz_util_common_sources @@ -112,7 +117,7 @@ else rz_util_sources += ['big.c'] endif -rz_util_includes = [platform_inc, include_directories('sdb/src', 'sdb')] +rz_util_includes = [platform_inc, include_directories('sdb/src', 'sdb', '../include/rz_util', '.')] rz_util = library('rz_util', rz_util_sources, libsdb_sources, include_directories: rz_util_includes, diff --git a/librz/util/sdb/src/meson.build b/librz/util/sdb/src/meson.build index 5662f7061d6..ec1d2759416 100644 --- a/librz/util/sdb/src/meson.build +++ b/librz/util/sdb/src/meson.build @@ -1,6 +1,5 @@ libsdb_sources = files( 'array.c', - 'set.c', 'base64.c', 'buffer.c', 'cdb.c', @@ -8,10 +7,6 @@ libsdb_sources = files( 'diff.c', 'disk.c', 'fmt.c', - 'ht_uu.c', - 'ht_pp.c', - 'ht_up.c', - 'ht_pu.c', 'lock.c', 'ls.c', 'match.c', @@ -30,15 +25,9 @@ include_files = files( 'buffer.h', 'cdb.h', 'cdb_make.h', - 'ht_inc.h', - 'ht_pp.h', - 'ht_up.h', - 'ht_uu.h', - 'ht_pu.h', 'ls.h', 'sdb.h', 'sdbht.h', - 'set.h', ) install_headers(include_files, install_dir: join_paths(rizin_incdir, 'sdb')) diff --git a/librz/util/sdb/src/set.c b/librz/util/set.c similarity index 100% rename from librz/util/sdb/src/set.c rename to librz/util/set.c diff --git a/librz/util/sdb/src/set.h b/librz/util/set.h similarity index 100% rename from librz/util/sdb/src/set.h rename to librz/util/set.h