From a7a261680661bd3808fd7073864a110f8175e877 Mon Sep 17 00:00:00 2001 From: tongkai0808fh Date: Sat, 17 Feb 2024 08:18:04 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9absl-cpp=E9=83=A8=E4=BB=B6BUI?= =?UTF-8?q?LD.gn=E6=96=87=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0InnerAPI?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tongkai0808fh --- BUILD.gn | 20 ++--- bundle.json | 252 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 260 insertions(+), 12 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 3df3c0f..4f15c08 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,7 +31,7 @@ ohos_shared_library("absl_base") { cflags = ABSL_DEFAULT_COPTS - public_deps = [ + deps = [ ":absl_log_severity", ":absl_raw_logging_internal", ":absl_spinlock_wait", @@ -112,7 +112,7 @@ ohos_shared_library("absl_stacktrace") { ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - public_deps = [ ":absl_base" ] + deps = [ ":absl_base" ] install_enable = true subsystem_name = "${THIRDPARTY_ABSEIL_SUBSYS_NAME}" part_name = "${THIRDPARTY_ABSEIL_PART_NAME}" @@ -130,7 +130,7 @@ ohos_shared_library("absl_symbolize") { ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - public_deps = [ ":absl_base" ] + deps = [ ":absl_base" ] install_enable = true subsystem_name = "${THIRDPARTY_ABSEIL_SUBSYS_NAME}" part_name = "${THIRDPARTY_ABSEIL_PART_NAME}" @@ -149,7 +149,7 @@ ohos_shared_library("absl_hash") { ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - public_deps = [ + deps = [ ":absl_base", ":absl_stacktrace", ":absl_symbolize", @@ -186,7 +186,7 @@ ohos_shared_library("absl_status") { cflags = ABSL_DEFAULT_COPTS #deps = [ "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal" ] - public_deps = [ + deps = [ ":absl_cord", ":absl_raw_logging_internal", ":absl_strings", @@ -205,7 +205,7 @@ ohos_shared_library("absl_statusor") { cflags = ABSL_DEFAULT_COPTS - public_deps = [ + deps = [ ":absl_cord", ":absl_spinlock_wait", ":absl_status", @@ -299,7 +299,7 @@ ohos_shared_library("absl_strings") { include_dirs = [ "${ABSEIL_DIR}/" ] configs = [ ":cflags_config" ] - public_deps = [ + deps = [ ":absl_int128", ":absl_raw_logging_internal", ":absl_strings_internal", @@ -405,7 +405,7 @@ ohos_shared_library("absl_sync") { ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - public_deps = [ + deps = [ ":absl_base", ":absl_stacktrace", ":absl_symbolize", @@ -428,7 +428,7 @@ ohos_shared_library("absl_container") { sources = [ "${ABSEIL_DIR}/absl/container/internal/raw_hash_set.cc" ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - public_deps = [ ":absl_base" ] + deps = [ ":absl_base" ] install_enable = true subsystem_name = "${THIRDPARTY_ABSEIL_SUBSYS_NAME}" part_name = "${THIRDPARTY_ABSEIL_PART_NAME}" @@ -472,7 +472,7 @@ ohos_shared_library("absl_time") { ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - public_deps = [ + deps = [ ":absl_base", ":absl_civil_time", ":absl_int128", diff --git a/bundle.json b/bundle.json index 75b94e0..f022c72 100644 --- a/bundle.json +++ b/bundle.json @@ -14,7 +14,9 @@ "subsystem": "thirdparty", "syscap": [], "features": [], - "adapted_system_type": [ "standard" ], + "adapted_system_type": [ + "standard" + ], "rom": "", "ram": "", "deps": { @@ -23,7 +25,253 @@ }, "build": { "sub_component": [], - "inner_kits": [], + "inner_kits": [ + { + "name": "//third_party/abseil-cpp:absl_base", + "header": { + "header_files": [ + "cycleclock.h", + "low_level_alloc.h", + "spinlock.h", + "sysinfo.h", + "thread_identity.h", + "unscaledcycleclock.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/base/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_raw_logging_internal", + "header": { + "header_files": [ + "raw_logging.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/base/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_log_severity", + "header": { + "header_files": [ + "log_severity.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/base" + } + }, + { + "name": "//third_party/abseil-cpp:absl_spinlock_wait", + "header": { + "header_files": [ + "spinlock_wait.h", + "spinlock.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/base/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_throw_delegate", + "header": { + "header_files": [ + "throw_delegate.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/base/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_stacktrace", + "header": { + "header_files": [ + "address_is_readable.h", + "elf_mem_image.h", + "examine_stack.h", + "stack_consumption.h", + "stacktrace_config.h", + "vdso_support.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/debugging/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_symbolize", + "header": { + "header_files": [ + "symbolize.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/debugging" + } + }, + { + "name": "//third_party/abseil-cpp:absl_hash", + "header": { + "header_files": [ + "city.h", + "hash.h", + "low_level_hash.h", + "spy_hash_state.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/hash/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_int128", + "header": { + "header_files": [ + "int128.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/numeric" + } + }, + { + "name": "//third_party/abseil-cpp:absl_status", + "header": { + "header_files": [ + "status_payload_printer.h", + "status.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/status" + } + }, + { + "name": "//third_party/abseil-cpp:absl_statusor", + "header": { + "header_files": [ + "statusor.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/status" + } + }, + { + "name": "//third_party/abseil-cpp:absl_strings", + "header": { + "header_files": [ + "ascii.h", + "charconv.h", + "escaping.h", + "match.h", + "numbers.h", + "str_cat.h", + "str_replace.h", + "str_split.h", + "string_view.h", + "substitute.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/strings" + } + }, + { + "name": "//third_party/abseil-cpp:absl_cord", + "header": { + "header_files": [ + "cord_internal.h", + "cord_rep_btree.h", + "cord_rep_btree_navigator.h", + "cord_rep_btree_reader.h", + "cord_rep_consume.h", + "cord_rep_crc.h", + "cord_rep_ring.h", + "cordz_functions.h", + "cordz_handle.h", + "cordz_info.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/strings/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_str_format_internal", + "header": { + "header_files": [ + "arg.h", + "bind.h", + "checker.h", + "extension.h", + "float_conversion.h", + "output.h", + "parser.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/strings/internal/str_format" + } + }, + { + "name": "//third_party/abseil-cpp:absl_sync", + "header": { + "header_files": [ + "barrier.h", + "blocking_counter.h", + "mutex.h", + "notification.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/synchronization" + } + }, + { + "name": "//third_party/abseil-cpp:absl_civil_time", + "header": { + "header_files": [ + "time_zone_fixed.h", + "time_zone_if.h", + "time_zone_impl.h", + "time_zone_info.h", + "time_zone_libc.h", + "time_zone_posix.h", + "tzfile.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/time/internal/cctz/src" + } + }, + { + "name": "//third_party/abseil-cpp:absl_container", + "header": { + "header_files": [ + "raw_hash_set.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/container/internal" + } + }, + { + "name": "//third_party/abseil-cpp:absl_time_zone", + "header": { + "header_files": [ + "time_zone_fixed.h", + "time_zone_if.h", + "time_zone_impl.h", + "time_zone_info.h", + "time_zone_libc.h", + "time_zone_posix.h", + "tzfile.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/time/internal/cctz/src" + } + }, + { + "name": "//third_party/abseil-cpp:absl_time", + "header": { + "header_files": [ + "civil_time.h", + "clock.h", + "time.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/time" + } + }, + { + "name": "//third_party/abseil-cpp:absl_bad_optional_access", + "header": { + "header_files": [ + "bad_optional_access.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/types" + } + }, + { + "name": "//third_party/abseil-cpp:absl_bad_variant_access", + "header": { + "header_files": [ + "bad_variant_access.h" + ], + "header_base": "//third_party/abseil-cpp/abseil-cpp/absl/types" + } + } + ], "test": [] } } -- Gitee