From eff80360ffb7e71f03e33bb022597e24f42c1a78 Mon Sep 17 00:00:00 2001 From: hu_chao Date: Mon, 20 Dec 2021 14:45:45 +0800 Subject: [PATCH] remove no use abseil dependency Change-Id: Ie21cd738ea4296b2a146d1fe04ce297e9d6c03a5 Reviewed-on: http://10.20.23.240:8080/c/OHOS_STD/third_party_abseil-cpp/+/13483 Tested-by: Reviewed-by: Signed-off-by: hu_chao --- absl/base/BUILD.gn | 45 ++------------- absl/container/BUILD.gn | 49 ----------------- absl/debugging/BUILD.gn | 100 ---------------------------------- absl/hash/BUILD.gn | 38 ------------- absl/status/BUILD.gn | 37 ------------- absl/strings/BUILD.gn | 16 ------ absl/synchronization/BUILD.gn | 61 --------------------- 7 files changed, 6 insertions(+), 340 deletions(-) delete mode 100755 absl/container/BUILD.gn delete mode 100755 absl/debugging/BUILD.gn delete mode 100755 absl/hash/BUILD.gn delete mode 100755 absl/status/BUILD.gn delete mode 100755 absl/synchronization/BUILD.gn diff --git a/absl/base/BUILD.gn b/absl/base/BUILD.gn index c4a1e86..caa1342 100755 --- a/absl/base/BUILD.gn +++ b/absl/base/BUILD.gn @@ -33,7 +33,9 @@ ohos_shared_library("absl_base") { ":absl_raw_logging_internal", ":absl_spinlock_wait", ] - install_enable = false + if (target_cpu == "arm") { + install_enable = false + } subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" part_name = "${OHOS_PROFILER_PART_NAME}" } @@ -70,44 +72,9 @@ ohos_shared_library("absl_spinlock_wait") { ] include_dirs = [ "${ABSEIL_DIR}/" ] cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_dynamic_annotations") { - sources = [ "dynamic_annotations.cc" ] - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_malloc_internal") { - sources = [ "internal/low_level_alloc.cc" ] - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - - deps = [ - ":absl_base", - ":absl_spinlock_wait", - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_exponential_biased") { - sources = [ "internal/exponential_biased.cc" ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - install_enable = false + if (target_cpu == "arm") { + install_enable = false + } subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" part_name = "${OHOS_PROFILER_PART_NAME}" } diff --git a/absl/container/BUILD.gn b/absl/container/BUILD.gn deleted file mode 100755 index 2376115..0000000 --- a/absl/container/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//developtools/profiler/build/config.gni") -import("../copts/configure_copts.gni") - -ohos_shared_library("absl_hashtablez_sampler") { - sources = [ - "internal/hashtablez_sampler.cc", - "internal/hashtablez_sampler_force_weak_definition.cc", - ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - - deps = [ - "${ABSEIL_DIR}/absl/base:absl_base", - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - "${ABSEIL_DIR}/absl/debugging:absl_stacktrace", - "${ABSEIL_DIR}/absl/synchronization:absl_synchronization", - "${ABSEIL_DIR}/absl/time:absl_time", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_raw_hash_set") { - sources = [ "internal/raw_hash_set.cc" ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} diff --git a/absl/debugging/BUILD.gn b/absl/debugging/BUILD.gn deleted file mode 100755 index 0eb050c..0000000 --- a/absl/debugging/BUILD.gn +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//developtools/profiler/build/config.gni") -import("../copts/configure_copts.gni") - -config("cflags_config") { - cflags = ABSL_DEFAULT_COPTS -} - -ohos_shared_library("absl_stacktrace") { - sources = [ - "internal/stacktrace_aarch64-inl.inc", - "internal/stacktrace_arm-inl.inc", - "internal/stacktrace_config.h", - "internal/stacktrace_generic-inl.inc", - "internal/stacktrace_powerpc-inl.inc", - "internal/stacktrace_unimplemented-inl.inc", - "internal/stacktrace_win32-inl.inc", - "internal/stacktrace_x86-inl.inc", - "stacktrace.cc", - ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - deps = [ ":absl_debugging_internal" ] - cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_symbolize") { - sources = [ - "symbolize.cc", - "symbolize_darwin.inc", - "symbolize_elf.inc", - "symbolize_unimplemented.inc", - "symbolize_win32.inc", - ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - # cflags = ABSL_DEFAULT_COPTS - configs = [ ":cflags_config" ] - - deps = [ - ":absl_debugging_internal", - ":absl_demangle_internal", - "${ABSEIL_DIR}/absl/base:absl_base", - "${ABSEIL_DIR}/absl/base:absl_malloc_internal", - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - "${ABSEIL_DIR}/absl/strings:absl_strings", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_debugging_internal") { - sources = [ - "internal/address_is_readable.cc", - "internal/elf_mem_image.cc", - "internal/vdso_support.cc", - ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - deps = [ - "${ABSEIL_DIR}/absl/base:absl_dynamic_annotations", - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - ] - - cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_demangle_internal") { - sources = [ "internal/demangle.cc" ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} diff --git a/absl/hash/BUILD.gn b/absl/hash/BUILD.gn deleted file mode 100755 index a579ff9..0000000 --- a/absl/hash/BUILD.gn +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//developtools/profiler/build/config.gni") -import("../copts/configure_copts.gni") - -ohos_shared_library("absl_hash") { - sources = [ - "internal/hash.cc", - "internal/hash.h", - ] - include_dirs = [ "${ABSEIL_DIR}/" ] - cflags = ABSL_DEFAULT_COPTS - deps = [ ":absl_city" ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_city") { - sources = [ "internal/city.cc" ] - include_dirs = [ "${ABSEIL_DIR}/" ] - cflags = ABSL_DEFAULT_COPTS - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} diff --git a/absl/status/BUILD.gn b/absl/status/BUILD.gn deleted file mode 100755 index a1333da..0000000 --- a/absl/status/BUILD.gn +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//developtools/profiler/build/config.gni") -import("../copts/configure_copts.gni") - -ohos_shared_library("absl_status") { - sources = [ - "internal/status_internal.h", - "status.cc", - "status_payload_printer.cc", - ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - - deps = [ - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - "${ABSEIL_DIR}/absl/strings:absl_cord", - "${ABSEIL_DIR}/absl/strings:absl_strings", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} diff --git a/absl/strings/BUILD.gn b/absl/strings/BUILD.gn index 959a140..5e47246 100755 --- a/absl/strings/BUILD.gn +++ b/absl/strings/BUILD.gn @@ -117,22 +117,6 @@ ohos_shared_library("absl_strings_internal") { part_name = "${OHOS_PROFILER_PART_NAME}" } -ohos_shared_library("absl_cord") { - sources = [ "cord.cc" ] - include_dirs = [ "${ABSEIL_DIR}/" ] - - configs = [ ":cflags_config" ] - - deps = [ - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - "${ABSEIL_DIR}/absl/base:absl_throw_delegate", - "${ABSEIL_DIR}/absl/strings:absl_strings", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - ohos_shared_library("absl_str_format_internal") { sources = [ "internal/str_format/arg.cc", diff --git a/absl/synchronization/BUILD.gn b/absl/synchronization/BUILD.gn deleted file mode 100755 index 380d613..0000000 --- a/absl/synchronization/BUILD.gn +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//developtools/profiler/build/config.gni") -import("../copts/configure_copts.gni") - -ohos_shared_library("absl_graphcycles_internal") { - sources = [ "internal/graphcycles.cc" ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - deps = [ - "${ABSEIL_DIR}/absl/base:absl_base", - "${ABSEIL_DIR}/absl/base:absl_malloc_internal", - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} - -ohos_shared_library("absl_synchronization") { - sources = [ - "barrier.cc", - "blocking_counter.cc", - "internal/create_thread_identity.cc", - "internal/per_thread_sem.cc", - "internal/waiter.cc", - "mutex.cc", - "notification.cc", - ] - - include_dirs = [ "${ABSEIL_DIR}/" ] - - cflags = ABSL_DEFAULT_COPTS - deps = [ - ":absl_graphcycles_internal", - "${ABSEIL_DIR}/absl/base:absl_base", - "${ABSEIL_DIR}/absl/base:absl_malloc_internal", - "${ABSEIL_DIR}/absl/base:absl_raw_logging_internal", - "${ABSEIL_DIR}/absl/base:absl_spinlock_wait", - "${ABSEIL_DIR}/absl/debugging:absl_stacktrace", - "${ABSEIL_DIR}/absl/debugging:absl_symbolize", - "${ABSEIL_DIR}/absl/time:absl_time", - ] - install_enable = false - subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" - part_name = "${OHOS_PROFILER_PART_NAME}" -} -- Gitee