diff --git a/pw_fuzzer/fuzzer.gni b/pw_fuzzer/fuzzer.gni index a43a2d9cb9..f1136651eb 100644 --- a/pw_fuzzer/fuzzer.gni +++ b/pw_fuzzer/fuzzer.gni @@ -15,6 +15,7 @@ import("//build_overrides/pigweed.gni") import("$dir_pw_build/error.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") import("$dir_pw_toolchain/host_clang/toolchains.gni") import("$dir_pw_unit_test/test.gni") diff --git a/pw_package/py/BUILD.gn b/pw_package/py/BUILD.gn index c180a50ac0..9f3fff9da4 100644 --- a/pw_package/py/BUILD.gn +++ b/pw_package/py/BUILD.gn @@ -27,6 +27,7 @@ pw_python_package("py") { "pw_package/git_repo.py", "pw_package/package_manager.py", "pw_package/packages/__init__.py", + "pw_package/packages/abseil_cpp.py", "pw_package/packages/arduino_core.py", "pw_package/packages/boringssl.py", "pw_package/packages/chromium_verifier.py", diff --git a/pw_package/py/pw_package/packages/abseil_cpp.py b/pw_package/py/pw_package/packages/abseil_cpp.py new file mode 100644 index 0000000000..df880fded1 --- /dev/null +++ b/pw_package/py/pw_package/packages/abseil_cpp.py @@ -0,0 +1,46 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. +"""Install and check status of Abseil C++.""" + +import pathlib +from typing import Sequence + +import pw_package.git_repo +import pw_package.package_manager + + +class AbseilCPP(pw_package.git_repo.GitRepo): + """Install and check status of Abseil C++.""" + + def __init__(self, *args, **kwargs): + super().__init__( + *args, + name='abseil-cpp', + url=( + 'https://pigweed.googlesource.com/' + 'third_party/github/abseil/abseil-cpp' + ), + commit='65109ecdf01a829bdb5e428174b3abb181e75826', + **kwargs, + ) + + def info(self, path: pathlib.Path) -> Sequence[str]: + return ( + f'{self.name} installed in: {path}', + "Enable by running 'gn args out' and adding this line:", + f' dir_pw_third_party_abseil_cpp = "{path}"', + ) + + +pw_package.package_manager.register(AbseilCPP) diff --git a/pw_package/py/pw_package/pigweed_packages.py b/pw_package/py/pw_package/pigweed_packages.py index dec3bcbc9b..9e21b4e854 100644 --- a/pw_package/py/pw_package/pigweed_packages.py +++ b/pw_package/py/pw_package/pigweed_packages.py @@ -18,6 +18,7 @@ from pw_package import package_manager # pylint: disable=unused-import +from pw_package.packages import abseil_cpp from pw_package.packages import arduino_core from pw_package.packages import boringssl from pw_package.packages import chromium_verifier diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py index 516900b6b4..91493f7188 100755 --- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py +++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py @@ -384,6 +384,12 @@ def gn_arm_build(ctx: PresubmitContext): gn_fuzz_build = build.GnGenNinja( name='gn_fuzz_build', path_filter=_BUILD_FILE_FILTER, + packages=('abseil-cpp',), + gn_args={ + 'dir_pw_third_party_abseil_cpp': lambda ctx: '"{}"'.format( + ctx.package_root / 'abseil-cpp' + ), + }, ninja_targets=('host_clang_fuzz',), ) diff --git a/third_party/abseil-cpp/BUILD.gn b/third_party/abseil-cpp/BUILD.gn new file mode 100644 index 0000000000..41de09da2a --- /dev/null +++ b/third_party/abseil-cpp/BUILD.gn @@ -0,0 +1,54 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_docgen/docs.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +config("abseil_cpp_public_config1") { + include_dirs = [ "$dir_pw_third_party_abseil_cpp" ] +} + +config("abseil_cpp_config1") { + cflags = [ + "-DNOMINMAX", + "-Wall", + "-Wcast-qual", + "-Wconversion-null", + "-Wextra", + "-Wformat-security", + "-Wmissing-declarations", + "-Woverlength-strings", + "-Wpointer-arith", + "-Wundef", + "-Wunused-local-typedefs", + "-Wunused-result", + "-Wvarargs", + "-Wvla", + "-Wwrite-strings", + ] +} + +config("abseil_cpp_config2") { + ldflags = [ "-pthread" ] +} + +pw_doc_group("docs") { + sources = [ "docs.rst" ] +} diff --git a/third_party/abseil-cpp/OWNERS b/third_party/abseil-cpp/OWNERS new file mode 100644 index 0000000000..419cfd37a5 --- /dev/null +++ b/third_party/abseil-cpp/OWNERS @@ -0,0 +1 @@ +aarongreen@google.com diff --git a/third_party/abseil-cpp/abseil-cpp.gni b/third_party/abseil-cpp/abseil-cpp.gni new file mode 100644 index 0000000000..bc5cd3a5b9 --- /dev/null +++ b/third_party/abseil-cpp/abseil-cpp.gni @@ -0,0 +1,23 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py + +declare_args() { + # If compiling tests with Abseil C++, this variable is set to the path to the + # Abseil C++ installation. When set, a pw_source_set for the Abseil C++ library + # is created at "$dir_pw_third_party/abseil-cpp". + dir_pw_third_party_abseil_cpp = "" +} diff --git a/third_party/abseil-cpp/absl/algorithm/BUILD.gn b/third_party/abseil-cpp/absl/algorithm/BUILD.gn new file mode 100644 index 0000000000..dff4bc9cee --- /dev/null +++ b/third_party/abseil-cpp/absl/algorithm/BUILD.gn @@ -0,0 +1,50 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/algorithm. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/algorithm:algorithm +pw_source_set("algorithm") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/algorithm/algorithm.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} + +# Generated from //absl/algorithm:container +pw_source_set("container") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/algorithm/container.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":algorithm", + "../base:core_headers", + "../meta:type_traits", + ] +} diff --git a/third_party/abseil-cpp/absl/base/BUILD.gn b/third_party/abseil-cpp/absl/base/BUILD.gn new file mode 100644 index 0000000000..51814dd730 --- /dev/null +++ b/third_party/abseil-cpp/absl/base/BUILD.gn @@ -0,0 +1,374 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/base. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/base:atomic_hook +pw_source_set("atomic_hook") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/atomic_hook.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":core_headers", + ] +} + +# Generated from //absl/base:base +pw_source_set("base") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/call_once.h", + "$dir_pw_third_party_abseil_cpp/absl/base/casts.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/cycleclock.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/low_level_scheduling.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/per_thread_tls.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/sysinfo.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/thread_identity.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/tsan_mutex_interface.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/unscaledcycleclock.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/cycleclock.cc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock.cc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/sysinfo.cc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/thread_identity.cc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/unscaledcycleclock.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + "../..:abseil_cpp_config2", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":atomic_hook", + ":base_internal", + ":config", + ":core_headers", + ":cycleclock_internal", + ":dynamic_annotations", + ":log_severity", + ":raw_logging_internal", + ":spinlock_wait", + "../meta:type_traits", + ] +} + +# Generated from //absl/base:base_internal +pw_source_set("base_internal") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/hide_ptr.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/identity.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/inline_variable.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/invoke.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/scheduling_mode.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + "../meta:type_traits", + ] +} + +# Generated from //absl/base:config +pw_source_set("config") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/config.h", + "$dir_pw_third_party_abseil_cpp/absl/base/options.h", + "$dir_pw_third_party_abseil_cpp/absl/base/policy_checks.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] +} + +# Generated from //absl/base:core_headers +pw_source_set("core_headers") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/attributes.h", + "$dir_pw_third_party_abseil_cpp/absl/base/const_init.h", + "$dir_pw_third_party_abseil_cpp/absl/base/macros.h", + "$dir_pw_third_party_abseil_cpp/absl/base/optimization.h", + "$dir_pw_third_party_abseil_cpp/absl/base/port.h", + "$dir_pw_third_party_abseil_cpp/absl/base/thread_annotations.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/thread_annotations.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ ":config" ] +} + +# Generated from //absl/base:cycleclock_internal +pw_source_set("cycleclock_internal") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/cycleclock_config.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/unscaledcycleclock_config.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":base_internal", + ":config", + ] +} + +# Generated from //absl/base:dynamic_annotations +pw_source_set("dynamic_annotations") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/base/dynamic_annotations.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/dynamic_annotations.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":core_headers", + ] +} + +# Generated from //absl/base:endian +pw_source_set("endian") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/endian.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/unaligned_access.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":base", + ":config", + ":core_headers", + ] +} + +# Generated from //absl/base:errno_saver +pw_source_set("errno_saver") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/errno_saver.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ ":config" ] +} + +# Generated from //absl/base:fast_type_id +pw_source_set("fast_type_id") { + visibility = [ "../*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/fast_type_id.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ ":config" ] +} + +# Generated from //absl/base:log_severity +pw_source_set("log_severity") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/base/log_severity.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/base/log_severity.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":core_headers", + ] +} + +# Generated from //absl/base:malloc_internal +pw_source_set("malloc_internal") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/direct_mmap.h", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/low_level_alloc.h", + ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/low_level_alloc.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + "../..:abseil_cpp_config2", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":base", + ":base_internal", + ":config", + ":core_headers", + ":dynamic_annotations", + ":raw_logging_internal", + ] +} + +# Generated from //absl/base:prefetch +pw_source_set("prefetch") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/prefetch.h", + "$dir_pw_third_party_abseil_cpp/absl/base/prefetch.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":core_headers", + ] +} + +# Generated from //absl/base:pretty_function +pw_source_set("pretty_function") { + visibility = [ "../*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/pretty_function.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ "../../configs:internal_disabled_warnings" ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] +} + +# Generated from //absl/base:raw_logging_internal +pw_source_set("raw_logging_internal") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/raw_logging.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/raw_logging.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":atomic_hook", + ":config", + ":core_headers", + ":errno_saver", + ":log_severity", + ] +} + +# Generated from //absl/base:spinlock_wait +pw_source_set("spinlock_wait") { + visibility = [ ":*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock_wait.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock_akaros.inc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock_linux.inc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock_posix.inc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock_wait.cc", + "$dir_pw_third_party_abseil_cpp/absl/base/internal/spinlock_win32.inc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":base_internal", + ":core_headers", + ":errno_saver", + ] +} + +# Generated from //absl/base:strerror +pw_source_set("strerror") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/strerror.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/strerror.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":core_headers", + ":errno_saver", + ] +} + +# Generated from //absl/base:throw_delegate +pw_source_set("throw_delegate") { + visibility = [ "../*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/throw_delegate.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/base/internal/throw_delegate.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":raw_logging_internal", + ] +} diff --git a/third_party/abseil-cpp/absl/cleanup/BUILD.gn b/third_party/abseil-cpp/absl/cleanup/BUILD.gn new file mode 100644 index 0000000000..3f9348f0de --- /dev/null +++ b/third_party/abseil-cpp/absl/cleanup/BUILD.gn @@ -0,0 +1,54 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/cleanup. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/cleanup:cleanup +pw_source_set("cleanup") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/cleanup/cleanup.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cleanup_internal", + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/cleanup:cleanup_internal +pw_source_set("cleanup_internal") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/cleanup/internal/cleanup.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:base_internal", + "../base:core_headers", + "../utility", + ] +} diff --git a/third_party/abseil-cpp/absl/container/BUILD.gn b/third_party/abseil-cpp/absl/container/BUILD.gn new file mode 100644 index 0000000000..4d20779853 --- /dev/null +++ b/third_party/abseil-cpp/absl/container/BUILD.gn @@ -0,0 +1,426 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/container. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/container:btree +pw_source_set("btree") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/btree_map.h", + "$dir_pw_third_party_abseil_cpp/absl/container/btree_set.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/btree.h", + "$dir_pw_third_party_abseil_cpp/absl/container/internal/btree_container.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":common", + ":common_policy_traits", + ":compressed_tuple", + ":container_memory", + ":layout", + "../base:core_headers", + "../base:raw_logging_internal", + "../base:throw_delegate", + "../memory", + "../meta:type_traits", + "../strings", + "../strings:cord", + "../types:compare", + "../utility", + ] +} + +# Generated from //absl/container:common +pw_source_set("common") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/common.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../meta:type_traits", + "../types:optional", + ] +} + +# Generated from //absl/container:common_policy_traits +pw_source_set("common_policy_traits") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/common_policy_traits.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../meta:type_traits" ] +} + +# Generated from //absl/container:compressed_tuple +pw_source_set("compressed_tuple") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/compressed_tuple.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../utility" ] +} + +# Generated from //absl/container:container_memory +pw_source_set("container_memory") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/container_memory.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../memory", + "../meta:type_traits", + "../utility", + ] +} + +# Generated from //absl/container:fixed_array +pw_source_set("fixed_array") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/fixed_array.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":compressed_tuple", + "../algorithm", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:throw_delegate", + "../memory", + ] +} + +# Generated from //absl/container:flat_hash_map +pw_source_set("flat_hash_map") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/flat_hash_map.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":container_memory", + ":hash_function_defaults", + ":raw_hash_map", + "../algorithm:container", + "../base:core_headers", + "../memory", + ] +} + +# Generated from //absl/container:flat_hash_set +pw_source_set("flat_hash_set") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/flat_hash_set.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":container_memory", + ":hash_function_defaults", + ":raw_hash_set", + "../algorithm:container", + "../base:core_headers", + "../memory", + ] +} + +# Generated from //absl/container:hash_function_defaults +pw_source_set("hash_function_defaults") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/hash_function_defaults.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../hash", + "../strings", + "../strings:cord", + ] +} + +# Generated from //absl/container:hash_policy_traits +pw_source_set("hash_policy_traits") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/hash_policy_traits.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":common_policy_traits", + "../meta:type_traits", + ] +} + +# Generated from //absl/container:hashtable_debug +pw_source_set("hashtable_debug") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/hashtable_debug.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ ":hashtable_debug_hooks" ] +} + +# Generated from //absl/container:hashtable_debug_hooks +pw_source_set("hashtable_debug_hooks") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/hashtable_debug_hooks.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} + +# Generated from //absl/container:hashtablez_sampler +pw_source_set("hashtablez_sampler") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/hashtablez_sampler.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/hashtablez_sampler.cc", + "$dir_pw_third_party_abseil_cpp/absl/container/internal/hashtablez_sampler_force_weak_definition.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + "../debugging:stacktrace", + "../memory", + "../profiling:exponential_biased", + "../profiling:sample_recorder", + "../synchronization", + "../time", + "../utility", + ] +} + +# Generated from //absl/container:inlined_vector +pw_source_set("inlined_vector") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/inlined_vector.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":inlined_vector_internal", + "../algorithm", + "../base:core_headers", + "../base:throw_delegate", + "../memory", + "../meta:type_traits", + ] +} + +# Generated from //absl/container:inlined_vector_internal +pw_source_set("inlined_vector_internal") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/inlined_vector.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":compressed_tuple", + "../base:core_headers", + "../memory", + "../meta:type_traits", + "../types:span", + ] +} + +# Generated from //absl/container:layout +pw_source_set("layout") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/internal/layout.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../meta:type_traits", + "../strings", + "../types:span", + "../utility", + ] +} + +# Generated from //absl/container:node_hash_map +pw_source_set("node_hash_map") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/node_hash_map.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":container_memory", + ":hash_function_defaults", + ":node_slot_policy", + ":raw_hash_map", + "../algorithm:container", + "../base:core_headers", + "../memory", + ] +} + +# Generated from //absl/container:node_hash_set +pw_source_set("node_hash_set") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/container/node_hash_set.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":hash_function_defaults", + ":node_slot_policy", + ":raw_hash_set", + "../algorithm:container", + "../base:core_headers", + "../memory", + ] +} + +# Generated from //absl/container:node_slot_policy +pw_source_set("node_slot_policy") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/node_slot_policy.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} + +# Generated from //absl/container:raw_hash_map +pw_source_set("raw_hash_map") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/raw_hash_map.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":container_memory", + ":raw_hash_set", + "../base:throw_delegate", + ] +} + +# Generated from //absl/container:raw_hash_set +pw_source_set("raw_hash_set") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/raw_hash_set.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/container/internal/raw_hash_set.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":common", + ":compressed_tuple", + ":container_memory", + ":hash_policy_traits", + ":hashtable_debug_hooks", + ":hashtablez_sampler", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:endian", + "../base:prefetch", + "../base:raw_logging_internal", + "../hash", + "../memory", + "../meta:type_traits", + "../numeric:bits", + "../utility", + ] +} diff --git a/third_party/abseil-cpp/absl/crc/BUILD.gn b/third_party/abseil-cpp/absl/crc/BUILD.gn new file mode 100644 index 0000000000..1555fd1d82 --- /dev/null +++ b/third_party/abseil-cpp/absl/crc/BUILD.gn @@ -0,0 +1,160 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/crc. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/crc:cpu_detect +pw_source_set("cpu_detect") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/crc/internal/cpu_detect.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/crc/internal/cpu_detect.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:config", + ] +} + +# Generated from //absl/crc:crc32c +pw_source_set("crc32c") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/crc/crc32c.h", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc32c.h", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_memcpy.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/crc/crc32c.cc", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc32c_inline.h", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_memcpy_fallback.cc", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_memcpy_x86_64.cc", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_non_temporal_memcpy.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cpu_detect", + ":crc_internal", + ":non_temporal_memcpy", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:endian", + "../base:prefetch", + "../strings", + ] +} + +# Generated from //absl/crc:crc_cord_state +pw_source_set("crc_cord_state") { + visibility = [ + ":*", + "../strings:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_cord_state.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_cord_state.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":crc32c", + "../base:config", + "../numeric:bits", + "../strings", + ] +} + +# Generated from //absl/crc:crc_internal +pw_source_set("crc_internal") { + visibility = [ ":*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc.h", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc.cc", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_internal.h", + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/crc_x86_arm_combined.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cpu_detect", + "../base", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:endian", + "../base:prefetch", + "../base:raw_logging_internal", + "../memory", + "../numeric:bits", + ] +} + +# Generated from //absl/crc:non_temporal_arm_intrinsics +pw_source_set("non_temporal_arm_intrinsics") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/crc/internal/non_temporal_arm_intrinsics.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} + +# Generated from //absl/crc:non_temporal_memcpy +pw_source_set("non_temporal_memcpy") { + visibility = [ ":*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/crc/internal/non_temporal_memcpy.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":non_temporal_arm_intrinsics", + "../base:config", + "../base:core_headers", + ] +} diff --git a/third_party/abseil-cpp/absl/debugging/BUILD.gn b/third_party/abseil-cpp/absl/debugging/BUILD.gn new file mode 100644 index 0000000000..e75fae3abf --- /dev/null +++ b/third_party/abseil-cpp/absl/debugging/BUILD.gn @@ -0,0 +1,200 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/debugging. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/debugging:debugging_internal +pw_source_set("debugging_internal") { + visibility = [ ":*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/address_is_readable.h", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/elf_mem_image.h", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/vdso_support.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/address_is_readable.cc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/elf_mem_image.cc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/vdso_support.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:errno_saver", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/debugging:demangle_internal +pw_source_set("demangle_internal") { + visibility = [ ":*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/demangle.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/demangle.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/debugging:examine_stack +pw_source_set("examine_stack") { + visibility = [ + ":*", + "../log/internal:*", + ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/examine_stack.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/examine_stack.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":stacktrace", + ":symbolize", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/debugging:failure_signal_handler +pw_source_set("failure_signal_handler") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/failure_signal_handler.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/failure_signal_handler.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":examine_stack", + ":stacktrace", + "../base", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/debugging:leak_check +pw_source_set("leak_check") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/debugging/leak_check.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/debugging/leak_check.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/debugging:stacktrace +pw_source_set("stacktrace") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/debugging/stacktrace.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_arm-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_config.h", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_emscripten-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_generic-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_riscv-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_unimplemented-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_win32-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/stacktrace_x86-inl.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/stacktrace.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":debugging_internal", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/debugging:symbolize +pw_source_set("symbolize") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/internal/symbolize.h", + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize.cc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize_darwin.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize_elf.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize_emscripten.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize_unimplemented.inc", + "$dir_pw_third_party_abseil_cpp/absl/debugging/symbolize_win32.inc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":debugging_internal", + ":demangle_internal", + "../base", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:malloc_internal", + "../base:raw_logging_internal", + "../strings", + ] +} diff --git a/third_party/abseil-cpp/absl/flags/BUILD.gn b/third_party/abseil-cpp/absl/flags/BUILD.gn new file mode 100644 index 0000000000..0f9fa2e68f --- /dev/null +++ b/third_party/abseil-cpp/absl/flags/BUILD.gn @@ -0,0 +1,331 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/flags. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/flags:commandlineflag +pw_source_set("commandlineflag") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/flags/commandlineflag.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/commandlineflag.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":commandlineflag_internal", + "../base:config", + "../base:fast_type_id", + "../strings", + "../types:optional", + ] +} + +# Generated from //absl/flags:commandlineflag_internal +pw_source_set("commandlineflag_internal") { + visibility = [ ":*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/commandlineflag.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/internal/commandlineflag.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:fast_type_id", + ] +} + +# Generated from //absl/flags:config +pw_source_set("config") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/config.h", + "$dir_pw_third_party_abseil_cpp/absl/flags/usage_config.h", + ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/usage_config.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":path_util", + ":program_name", + "../base:config", + "../base:core_headers", + "../strings", + "../synchronization", + ] +} + +# Generated from //absl/flags:flag +pw_source_set("flag") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/declare.h", + "$dir_pw_third_party_abseil_cpp/absl/flags/flag.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/flag.cc", + "$dir_pw_third_party_abseil_cpp/absl/flags/internal/flag_msvc.inc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":flag_internal", + ":reflection", + "../base", + "../base:config", + "../base:core_headers", + "../strings", + ] +} + +# Generated from //absl/flags:flag_internal +pw_source_set("flag_internal") { + visibility = [ + ":*", + "../base/*", + ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/internal/flag.h", + "$dir_pw_third_party_abseil_cpp/absl/flags/internal/sequence_lock.h", + ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/flag.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":commandlineflag", + ":commandlineflag_internal", + ":config", + ":marshalling", + ":reflection", + "../base", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../memory", + "../meta:type_traits", + "../strings", + "../synchronization", + "../utility", + ] +} + +# Generated from //absl/flags:marshalling +pw_source_set("marshalling") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/flags/marshalling.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/marshalling.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../base:log_severity", + "../strings", + "../strings:str_format", + "../types:optional", + ] +} + +# Generated from //absl/flags:parse +pw_source_set("parse") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/internal/parse.h", + "$dir_pw_third_party_abseil_cpp/absl/flags/parse.h", + ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/parse.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":commandlineflag", + ":commandlineflag_internal", + ":config", + ":flag", + ":flag_internal", + ":private_handle_accessor", + ":program_name", + ":reflection", + ":usage", + ":usage_internal", + "../algorithm:container", + "../base:config", + "../base:core_headers", + "../strings", + "../synchronization", + ] +} + +# Generated from //absl/flags:path_util +pw_source_set("path_util") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/path_util.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../strings", + ] +} + +# Generated from //absl/flags:private_handle_accessor +pw_source_set("private_handle_accessor") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/private_handle_accessor.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/private_handle_accessor.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":commandlineflag", + ":commandlineflag_internal", + "../base:config", + "../strings", + ] +} + +# Generated from //absl/flags:program_name +pw_source_set("program_name") { + visibility = [ + ":*", + "../log:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/program_name.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/program_name.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":path_util", + "../base:config", + "../base:core_headers", + "../strings", + "../synchronization", + ] +} + +# Generated from //absl/flags:reflection +pw_source_set("reflection") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/flags/internal/registry.h", + "$dir_pw_third_party_abseil_cpp/absl/flags/reflection.h", + ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/reflection.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":commandlineflag", + ":commandlineflag_internal", + ":config", + ":private_handle_accessor", + "../base:config", + "../base:core_headers", + "../container:flat_hash_map", + "../strings", + "../synchronization", + ] +} + +# Generated from //absl/flags:usage +pw_source_set("usage") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/flags/usage.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/usage.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":usage_internal", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + "../strings", + "../synchronization", + ] +} + +# Generated from //absl/flags:usage_internal +pw_source_set("usage_internal") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/usage.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/flags/internal/usage.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":commandlineflag", + ":config", + ":flag", + ":flag_internal", + ":path_util", + ":private_handle_accessor", + ":program_name", + ":reflection", + "../base:config", + "../base:core_headers", + "../container:flat_hash_map", + "../strings", + ] +} diff --git a/third_party/abseil-cpp/absl/functional/BUILD.gn b/third_party/abseil-cpp/absl/functional/BUILD.gn new file mode 100644 index 0000000000..46742ea1c4 --- /dev/null +++ b/third_party/abseil-cpp/absl/functional/BUILD.gn @@ -0,0 +1,83 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/functional. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/functional:any_invocable +pw_source_set("any_invocable") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/functional/any_invocable.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/functional/internal/any_invocable.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../meta:type_traits", + "../utility", + ] +} + +# Generated from //absl/functional:bind_front +pw_source_set("bind_front") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/functional/bind_front.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/functional/internal/front_binder.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:base_internal", + "../container:compressed_tuple", + "../meta:type_traits", + "../utility", + ] +} + +# Generated from //absl/functional:function_ref +pw_source_set("function_ref") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/functional/function_ref.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/functional/internal/function_ref.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":any_invocable", + "../base:base_internal", + "../base:core_headers", + "../meta:type_traits", + ] +} diff --git a/third_party/abseil-cpp/absl/hash/BUILD.gn b/third_party/abseil-cpp/absl/hash/BUILD.gn new file mode 100644 index 0000000000..c630e84e9f --- /dev/null +++ b/third_party/abseil-cpp/absl/hash/BUILD.gn @@ -0,0 +1,90 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/hash. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/hash:city +pw_source_set("city") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/hash/internal/city.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/hash/internal/city.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../base:endian", + ] +} + +# Generated from //absl/hash:hash +pw_source_set("hash") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/hash/hash.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/hash/internal/hash.cc", + "$dir_pw_third_party_abseil_cpp/absl/hash/internal/hash.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":city", + ":low_level_hash", + "../base:config", + "../base:core_headers", + "../base:endian", + "../container:fixed_array", + "../functional:function_ref", + "../meta:type_traits", + "../numeric:bits", + "../numeric:int128", + "../strings", + "../types:optional", + "../types:variant", + "../utility", + ] +} + +# Generated from //absl/hash:low_level_hash +pw_source_set("low_level_hash") { + visibility = [ ":*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/hash/internal/low_level_hash.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/hash/internal/low_level_hash.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:endian", + "../numeric:int128", + ] +} diff --git a/third_party/abseil-cpp/absl/log/BUILD.gn b/third_party/abseil-cpp/absl/log/BUILD.gn new file mode 100644 index 0000000000..a5392ef9d3 --- /dev/null +++ b/third_party/abseil-cpp/absl/log/BUILD.gn @@ -0,0 +1,245 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/log. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/log:absl_check +pw_source_set("absl_check") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/absl_check.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "internal:check_impl" ] +} + +# Generated from //absl/log:absl_log +pw_source_set("absl_log") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/absl_log.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "internal:log_impl" ] +} + +# Generated from //absl/log:check +pw_source_set("check") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/check.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "internal:check_impl", + "internal:check_op", + "internal:conditions", + "internal:log_message", + "internal:strip", + ] +} + +# Generated from //absl/log:die_if_null +pw_source_set("die_if_null") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/die_if_null.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/die_if_null.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":log", + "../base:config", + "../base:core_headers", + "../strings", + ] +} + +# Generated from //absl/log:flags +pw_source_set("flags") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/flags.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/flags.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":globals", + "../base:config", + "../base:core_headers", + "../base:log_severity", + "../flags:flag", + "../flags:marshalling", + "../strings", + "internal:config", + "internal:flags", + ] +} + +# Generated from //absl/log:globals +pw_source_set("globals") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/globals.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/globals.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:atomic_hook", + "../base:config", + "../base:core_headers", + "../base:log_severity", + "../base:raw_logging_internal", + "../hash", + "../strings", + ] +} + +# Generated from //absl/log:initialize +pw_source_set("initialize") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/initialize.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/initialize.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":globals", + "../base:config", + "../time", + "internal:globals", + ] +} + +# Generated from //absl/log:log +pw_source_set("log") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/log.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "internal:log_impl" ] +} + +# Generated from //absl/log:log_entry +pw_source_set("log_entry") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/log_entry.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/log_entry.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../base:log_severity", + "../strings", + "../time", + "../types:span", + "internal:config", + ] +} + +# Generated from //absl/log:log_sink +pw_source_set("log_sink") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/log_sink.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/log_sink.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":log_entry", + "../base:config", + ] +} + +# Generated from //absl/log:log_sink_registry +pw_source_set("log_sink_registry") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/log_sink_registry.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":log_sink", + "../base:config", + "internal:log_sink_set", + ] +} + +# Generated from //absl/log:log_streamer +pw_source_set("log_streamer") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/log_streamer.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":absl_log", + "../base:config", + "../base:log_severity", + "../strings", + "../strings:internal", + "../types:optional", + "../utility", + ] +} + +# Generated from //absl/log:structured +pw_source_set("structured") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/structured.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../strings", + "internal:structured", + ] +} diff --git a/third_party/abseil-cpp/absl/log/internal/BUILD.gn b/third_party/abseil-cpp/absl/log/internal/BUILD.gn new file mode 100644 index 0000000000..5d6b7de951 --- /dev/null +++ b/third_party/abseil-cpp/absl/log/internal/BUILD.gn @@ -0,0 +1,413 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/log/internal. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/log/internal:append_truncated +pw_source_set("append_truncated") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/append_truncated.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../strings", + "../../types:span", + ] +} + +# Generated from //absl/log/internal:check_impl +pw_source_set("check_impl") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/check_impl.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":check_op", + ":conditions", + ":log_message", + ":strip", + "../../base:core_headers", + ] +} + +# Generated from //absl/log/internal:check_op +pw_source_set("check_op") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/check_op.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/check_op.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":nullguard", + ":nullstream", + ":strip", + "../../base:config", + "../../base:core_headers", + "../../strings", + ] +} + +# Generated from //absl/log/internal:conditions +pw_source_set("conditions") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/conditions.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/conditions.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":voidify", + "../../base", + "../../base:config", + "../../base:core_headers", + ] +} + +# Generated from //absl/log/internal:config +pw_source_set("config") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/config.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../base:core_headers", + ] +} + +# Generated from //absl/log/internal:flags +pw_source_set("flags") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/flags.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../../flags:flag" ] +} + +# Generated from //absl/log/internal:format +pw_source_set("format") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_format.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_format.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":append_truncated", + ":config", + ":globals", + "../../base:config", + "../../base:core_headers", + "../../base:log_severity", + "../../strings", + "../../strings:str_format", + "../../time", + "../../types:span", + ] +} + +# Generated from //absl/log/internal:globals +pw_source_set("globals") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/globals.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/globals.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../base:core_headers", + "../../base:log_severity", + "../../base:raw_logging_internal", + "../../strings", + "../../time", + ] +} + +# Generated from //absl/log/internal:log_impl +pw_source_set("log_impl") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_impl.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":conditions", + ":log_message", + ":strip", + ] +} + +# Generated from //absl/log/internal:log_message +pw_source_set("log_message") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_message.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_message.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":append_truncated", + ":format", + ":globals", + ":log_sink_set", + ":nullguard", + ":proto", + "..:globals", + "..:log_entry", + "..:log_sink", + "..:log_sink_registry", + "../../base", + "../../base:config", + "../../base:core_headers", + "../../base:errno_saver", + "../../base:log_severity", + "../../base:raw_logging_internal", + "../../base:strerror", + "../../container:inlined_vector", + "../../debugging:examine_stack", + "../../memory", + "../../strings", + "../../time", + "../../types:span", + ] +} + +# Generated from //absl/log/internal:log_sink_set +pw_source_set("log_sink_set") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_sink_set.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/log_sink_set.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":config", + ":globals", + "..:globals", + "..:log_entry", + "..:log_sink", + "../../base", + "../../base:config", + "../../base:core_headers", + "../../base:log_severity", + "../../base:raw_logging_internal", + "../../cleanup", + "../../strings", + "../../synchronization", + "../../types:span", + ] +} + +# Generated from //absl/log/internal:nullguard +pw_source_set("nullguard") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/nullguard.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/nullguard.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../base:core_headers", + ] +} + +# Generated from //absl/log/internal:nullstream +pw_source_set("nullstream") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/nullstream.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../base:core_headers", + "../../base:log_severity", + "../../strings", + ] +} + +# Generated from //absl/log/internal:proto +pw_source_set("proto") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/proto.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/proto.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base", + "../../base:config", + "../../base:core_headers", + "../../strings", + "../../types:span", + ] +} + +# Generated from //absl/log/internal:strip +pw_source_set("strip") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/strip.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":log_message", + ":nullstream", + "../../base:log_severity", + ] +} + +# Generated from //absl/log/internal:structured +pw_source_set("structured") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/structured.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":log_message", + "../../base:config", + "../../strings", + ] +} + +# Generated from //absl/log/internal:voidify +pw_source_set("voidify") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/log/internal/voidify.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../../base:config" ] +} diff --git a/third_party/abseil-cpp/absl/memory/BUILD.gn b/third_party/abseil-cpp/absl/memory/BUILD.gn new file mode 100644 index 0000000000..a7d9912a4b --- /dev/null +++ b/third_party/abseil-cpp/absl/memory/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/memory. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/memory:memory +pw_source_set("memory") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/memory/memory.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:core_headers", + "../meta:type_traits", + ] +} diff --git a/third_party/abseil-cpp/absl/meta/BUILD.gn b/third_party/abseil-cpp/absl/meta/BUILD.gn new file mode 100644 index 0000000000..6487ca63d3 --- /dev/null +++ b/third_party/abseil-cpp/absl/meta/BUILD.gn @@ -0,0 +1,34 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/meta. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/meta:type_traits +pw_source_set("type_traits") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/meta/type_traits.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} diff --git a/third_party/abseil-cpp/absl/numeric/BUILD.gn b/third_party/abseil-cpp/absl/numeric/BUILD.gn new file mode 100644 index 0000000000..aadb49d01b --- /dev/null +++ b/third_party/abseil-cpp/absl/numeric/BUILD.gn @@ -0,0 +1,75 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/numeric. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/numeric:bits +pw_source_set("bits") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/numeric/bits.h", + "$dir_pw_third_party_abseil_cpp/absl/numeric/internal/bits.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/numeric:int128 +pw_source_set("int128") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/numeric/int128.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/numeric/int128.cc", + "$dir_pw_third_party_abseil_cpp/absl/numeric/int128_have_intrinsic.inc", + "$dir_pw_third_party_abseil_cpp/absl/numeric/int128_no_intrinsic.inc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":bits", + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/numeric:representation +pw_source_set("representation") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/numeric/internal/representation.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} diff --git a/third_party/abseil-cpp/absl/profiling/BUILD.gn b/third_party/abseil-cpp/absl/profiling/BUILD.gn new file mode 100644 index 0000000000..c98ffbf37a --- /dev/null +++ b/third_party/abseil-cpp/absl/profiling/BUILD.gn @@ -0,0 +1,75 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/profiling. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/profiling:exponential_biased +pw_source_set("exponential_biased") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/profiling/internal/exponential_biased.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/profiling/internal/exponential_biased.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ "../../configs:internal_disabled_warnings" ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/profiling:periodic_sampler +pw_source_set("periodic_sampler") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/profiling/internal/periodic_sampler.h", + ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/profiling/internal/periodic_sampler.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":exponential_biased", + "../base:core_headers", + ] +} + +# Generated from //absl/profiling:sample_recorder +pw_source_set("sample_recorder") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/profiling/internal/sample_recorder.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../synchronization", + "../time", + ] +} diff --git a/third_party/abseil-cpp/absl/random/BUILD.gn b/third_party/abseil-cpp/absl/random/BUILD.gn new file mode 100644 index 0000000000..96231c29f4 --- /dev/null +++ b/third_party/abseil-cpp/absl/random/BUILD.gn @@ -0,0 +1,137 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/random. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/random:bit_gen_ref +pw_source_set("bit_gen_ref") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/bit_gen_ref.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":random", + "../base:core_headers", + "../base:fast_type_id", + "../meta:type_traits", + "internal:distribution_caller", + "internal:fast_uniform_bits", + ] +} + +# Generated from //absl/random:distributions +pw_source_set("distributions") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/random/bernoulli_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/beta_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/discrete_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/distributions.h", + "$dir_pw_third_party_abseil_cpp/absl/random/exponential_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/gaussian_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/log_uniform_int_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/poisson_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/uniform_int_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/uniform_real_distribution.h", + "$dir_pw_third_party_abseil_cpp/absl/random/zipf_distribution.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/random/discrete_distribution.cc", + "$dir_pw_third_party_abseil_cpp/absl/random/gaussian_distribution.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../meta:type_traits", + "../numeric:bits", + "../strings", + "internal:distribution_caller", + "internal:fast_uniform_bits", + "internal:fastmath", + "internal:generate_real", + "internal:iostream_state_saver", + "internal:traits", + "internal:uniform_helper", + "internal:wide_multiply", + ] +} + +# Generated from //absl/random:random +pw_source_set("random") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/random.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":distributions", + ":seed_sequences", + "internal:nonsecure_base", + "internal:pcg_engine", + "internal:pool_urbg", + "internal:randen_engine", + ] +} + +# Generated from //absl/random:seed_gen_exception +pw_source_set("seed_gen_exception") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_gen_exception.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_gen_exception.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} + +# Generated from //absl/random:seed_sequences +pw_source_set("seed_sequences") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_sequences.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_sequences.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":seed_gen_exception", + "../base:config", + "../types:span", + "internal:pool_urbg", + "internal:salted_seed_seq", + "internal:seed_material", + ] +} diff --git a/third_party/abseil-cpp/absl/random/internal/BUILD.gn b/third_party/abseil-cpp/absl/random/internal/BUILD.gn new file mode 100644 index 0000000000..7e65940046 --- /dev/null +++ b/third_party/abseil-cpp/absl/random/internal/BUILD.gn @@ -0,0 +1,497 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/random/internal. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/random/internal:distribution_caller +pw_source_set("distribution_caller") { + visibility = [ + ":*", + "..:*", + ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/random/internal/distribution_caller.h", + ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../base:fast_type_id", + "../../utility", + ] +} + +# Generated from //absl/random/internal:fast_uniform_bits +pw_source_set("fast_uniform_bits") { + visibility = [ + ":*", + "..:*", + ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/random/internal/fast_uniform_bits.h", + ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":traits", + "../../base:config", + "../../meta:type_traits", + ] +} + +# Generated from //absl/random/internal:fastmath +pw_source_set("fastmath") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/fastmath.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../../numeric:bits" ] +} + +# Generated from //absl/random/internal:generate_real +pw_source_set("generate_real") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/generate_real.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":fastmath", + ":traits", + "../../meta:type_traits", + "../../numeric:bits", + ] +} + +# Generated from //absl/random/internal:iostream_state_saver +pw_source_set("iostream_state_saver") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/iostream_state_saver.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../meta:type_traits", + "../../numeric:int128", + ] +} + +# Generated from //absl/random/internal:mock_helpers +pw_source_set("mock_helpers") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/mock_helpers.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ "../../../configs:internal_disabled_warnings" ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:fast_type_id", + "../../types:optional", + ] +} + +# Generated from //absl/random/internal:nanobenchmark +pw_source_set("nanobenchmark") { + visibility = [ + ":*", + "..:*", + ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/nanobenchmark.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ "../../../configs:internal_disabled_warnings" ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":platform", + ":randen_engine", + "../../base:config", + "../../base:core_headers", + "../../base:raw_logging_internal", + ] +} + +# Generated from //absl/random/internal:nonsecure_base +pw_source_set("nonsecure_base") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/nonsecure_base.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":pool_urbg", + ":salted_seed_seq", + ":seed_material", + "../../base:core_headers", + "../../container:inlined_vector", + "../../meta:type_traits", + "../../types:span", + ] +} + +# Generated from //absl/random/internal:pcg_engine +pw_source_set("pcg_engine") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/pcg_engine.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":fastmath", + ":iostream_state_saver", + "../../base:config", + "../../meta:type_traits", + "../../numeric:bits", + "../../numeric:int128", + ] +} + +# Generated from //absl/random/internal:platform +pw_source_set("platform") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_traits.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_round_keys.cc", + ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../../base:config" ] +} + +# Generated from //absl/random/internal:pool_urbg +pw_source_set("pool_urbg") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/pool_urbg.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/pool_urbg.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + "../../..:abseil_cpp_config2", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":randen", + ":seed_material", + ":traits", + "..:seed_gen_exception", + "../../base", + "../../base:config", + "../../base:core_headers", + "../../base:endian", + "../../base:raw_logging_internal", + "../../types:span", + ] +} + +# Generated from //absl/random/internal:randen +pw_source_set("randen") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":platform", + ":randen_hwaes", + ":randen_slow", + "../../base:raw_logging_internal", + ] +} + +# Generated from //absl/random/internal:randen_engine +pw_source_set("randen_engine") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_engine.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":iostream_state_saver", + ":randen", + "../../base:endian", + "../../meta:type_traits", + ] +} + +# Generated from //absl/random/internal:randen_hwaes +pw_source_set("randen_hwaes") { + visibility = [ + ":*", + "..:*", + ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_detect.h", + "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_hwaes.h", + ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_detect.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":platform", + ":randen_hwaes_impl", + "../../base:config", + ] +} + +# Generated from //absl/random/internal:randen_hwaes_impl +pw_source_set("randen_hwaes_impl") { + visibility = [ + ":*", + "..:*", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_hwaes.cc", + "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_hwaes.h", + ] + cflags = [ + "-Wno-pass-failed", + "-maes", + "-msse4.1", + ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":platform", + "../../base:config", + "../../base:core_headers", + "../../numeric:int128", + ] +} + +# Generated from //absl/random/internal:randen_slow +pw_source_set("randen_slow") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_slow.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/randen_slow.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":platform", + "../../base:config", + "../../base:core_headers", + "../../base:endian", + "../../numeric:int128", + ] +} + +# Generated from //absl/random/internal:salted_seed_seq +pw_source_set("salted_seed_seq") { + visibility = [ + ":*", + "..:*", + ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/random/internal/salted_seed_seq.h", + ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":seed_material", + "../../container:inlined_vector", + "../../meta:type_traits", + "../../types:optional", + "../../types:span", + ] +} + +# Generated from //absl/random/internal:seed_material +pw_source_set("seed_material") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/seed_material.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/seed_material.cc" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":fast_uniform_bits", + "../../base:core_headers", + "../../base:dynamic_annotations", + "../../base:raw_logging_internal", + "../../strings", + "../../types:optional", + "../../types:span", + ] +} + +# Generated from //absl/random/internal:traits +pw_source_set("traits") { + visibility = [ + ":*", + "..:*", + ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/traits.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../../base:config", + "../../numeric:bits", + "../../numeric:int128", + ] +} + +# Generated from //absl/random/internal:uniform_helper +pw_source_set("uniform_helper") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/uniform_helper.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":traits", + "../../base:config", + "../../meta:type_traits", + "../../numeric:int128", + ] +} + +# Generated from //absl/random/internal:wide_multiply +pw_source_set("wide_multiply") { + visibility = [ + ":*", + "..:*", + ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/random/internal/wide_multiply.h" ] + public_configs = [ "../../..:abseil_cpp_public_config1" ] + configs = [ + "../../../configs:internal_disabled_warnings", + "../../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":traits", + "../../base:config", + "../../numeric:bits", + "../../numeric:int128", + ] +} diff --git a/third_party/abseil-cpp/absl/status/BUILD.gn b/third_party/abseil-cpp/absl/status/BUILD.gn new file mode 100644 index 0000000000..fc4c33c57f --- /dev/null +++ b/third_party/abseil-cpp/absl/status/BUILD.gn @@ -0,0 +1,80 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/status. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/status:status +pw_source_set("status") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/status/status.h", + "$dir_pw_third_party_abseil_cpp/absl/status/status_payload_printer.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/status/internal/status_internal.h", + "$dir_pw_third_party_abseil_cpp/absl/status/status.cc", + "$dir_pw_third_party_abseil_cpp/absl/status/status_payload_printer.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:atomic_hook", + "../base:core_headers", + "../base:raw_logging_internal", + "../base:strerror", + "../container:inlined_vector", + "../debugging:stacktrace", + "../debugging:symbolize", + "../functional:function_ref", + "../strings", + "../strings:cord", + "../strings:str_format", + "../types:optional", + ] +} + +# Generated from //absl/status:statusor +pw_source_set("statusor") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/status/statusor.h" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/status/internal/statusor_internal.h", + "$dir_pw_third_party_abseil_cpp/absl/status/statusor.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":status", + "../base", + "../base:core_headers", + "../base:raw_logging_internal", + "../meta:type_traits", + "../strings", + "../types:variant", + "../utility", + ] +} diff --git a/third_party/abseil-cpp/absl/strings/BUILD.gn b/third_party/abseil-cpp/absl/strings/BUILD.gn new file mode 100644 index 0000000000..1150b29b19 --- /dev/null +++ b/third_party/abseil-cpp/absl/strings/BUILD.gn @@ -0,0 +1,408 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/strings. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/strings:cord +pw_source_set("cord") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/cord.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/cord_buffer.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/cord.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/cord_analysis.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/cord_analysis.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/cord_buffer.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cord_internal", + ":cordz_functions", + ":cordz_info", + ":cordz_statistics", + ":cordz_update_scope", + ":cordz_update_tracker", + ":internal", + ":strings", + "../base", + "../base:config", + "../base:core_headers", + "../base:endian", + "../base:raw_logging_internal", + "../container:fixed_array", + "../container:inlined_vector", + "../crc:crc_cord_state", + "../functional:function_ref", + "../meta:type_traits", + "../numeric:bits", + "../types:optional", + "../types:span", + ] +} + +# Generated from //absl/strings:cord_internal +pw_source_set("cord_internal") { + visibility = [ ":*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_data_edge.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_internal.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_btree.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_btree_navigator.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_btree_reader.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_consume.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_crc.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_flat.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_ring.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_ring_reader.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_internal.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_btree.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_btree_navigator.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_btree_reader.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_consume.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_crc.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cord_rep_ring.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":strings", + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../base:endian", + "../base:raw_logging_internal", + "../base:throw_delegate", + "../container:compressed_tuple", + "../container:container_memory", + "../container:inlined_vector", + "../container:layout", + "../crc:crc_cord_state", + "../functional:function_ref", + "../meta:type_traits", + "../types:span", + ] +} + +# Generated from //absl/strings:cordz_functions +pw_source_set("cordz_functions") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_functions.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_functions.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + "../profiling:exponential_biased", + ] +} + +# Generated from //absl/strings:cordz_handle +pw_source_set("cordz_handle") { + visibility = [ "../*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_handle.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_handle.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:config", + "../base:raw_logging_internal", + "../synchronization", + ] +} + +# Generated from //absl/strings:cordz_info +pw_source_set("cordz_info") { + visibility = [ "../*" ] + public = + [ "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_info.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_info.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cord_internal", + ":cordz_functions", + ":cordz_handle", + ":cordz_statistics", + ":cordz_update_tracker", + "../base", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + "../container:inlined_vector", + "../debugging:stacktrace", + "../synchronization", + "../time", + "../types:span", + ] +} + +# Generated from //absl/strings:cordz_sample_token +pw_source_set("cordz_sample_token") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_sample_token.h", + ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_sample_token.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cordz_handle", + ":cordz_info", + "../base:config", + ] +} + +# Generated from //absl/strings:cordz_statistics +pw_source_set("cordz_statistics") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_statistics.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cordz_update_tracker", + "../base:config", + ] +} + +# Generated from //absl/strings:cordz_update_scope +pw_source_set("cordz_update_scope") { + visibility = [ "../*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_update_scope.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":cord_internal", + ":cordz_info", + ":cordz_update_tracker", + "../base:config", + "../base:core_headers", + ] +} + +# Generated from //absl/strings:cordz_update_tracker +pw_source_set("cordz_update_tracker") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/strings/internal/cordz_update_tracker.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../base:config" ] +} + +# Generated from //absl/strings:internal +pw_source_set("internal") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/char_map.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/escaping.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/ostringstream.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/resize_uninitialized.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/utf8.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/escaping.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/ostringstream.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/utf8.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:core_headers", + "../base:endian", + "../base:raw_logging_internal", + "../meta:type_traits", + ] +} + +# Generated from //absl/strings:str_format +pw_source_set("str_format") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/strings/str_format.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ ":str_format_internal" ] +} + +# Generated from //absl/strings:str_format_internal +pw_source_set("str_format_internal") { + visibility = [ ":*" ] + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/arg.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/bind.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/checker.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/constexpr_parser.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/extension.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/float_conversion.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/output.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/parser.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/arg.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/bind.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/extension.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/float_conversion.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/output.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_format/parser.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":strings", + "../base:config", + "../base:core_headers", + "../functional:function_ref", + "../meta:type_traits", + "../numeric:bits", + "../numeric:int128", + "../numeric:representation", + "../types:optional", + "../types:span", + "../utility", + ] +} + +# Generated from //absl/strings:strings +pw_source_set("strings") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/ascii.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/charconv.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/escaping.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/damerau_levenshtein_distance.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/has_absl_stringify.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/string_constant.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/match.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/numbers.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_cat.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_join.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_replace.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_split.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/string_view.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/strip.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/substitute.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/strings/ascii.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/charconv.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/escaping.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/charconv_bigint.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/charconv_bigint.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/charconv_parse.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/charconv_parse.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/damerau_levenshtein_distance.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/memutil.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/memutil.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/stl_type_traits.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_join_internal.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/str_split_internal.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/stringify_sink.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/internal/stringify_sink.h", + "$dir_pw_third_party_abseil_cpp/absl/strings/match.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/numbers.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_cat.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_replace.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/str_split.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/string_view.cc", + "$dir_pw_third_party_abseil_cpp/absl/strings/substitute.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":internal", + "../base", + "../base:config", + "../base:core_headers", + "../base:endian", + "../base:raw_logging_internal", + "../base:throw_delegate", + "../memory", + "../meta:type_traits", + "../numeric:bits", + "../numeric:int128", + ] +} diff --git a/third_party/abseil-cpp/absl/synchronization/BUILD.gn b/third_party/abseil-cpp/absl/synchronization/BUILD.gn new file mode 100644 index 0000000000..bca5f07d73 --- /dev/null +++ b/third_party/abseil-cpp/absl/synchronization/BUILD.gn @@ -0,0 +1,119 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/synchronization. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/synchronization:graphcycles_internal +pw_source_set("graphcycles_internal") { + visibility = [ "../*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/graphcycles.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/graphcycles.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../base:malloc_internal", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/synchronization:kernel_timeout_internal +pw_source_set("kernel_timeout_internal") { + visibility = [ ":*" ] + public = [ "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/kernel_timeout.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/kernel_timeout.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + "../time", + ] +} + +# Generated from //absl/synchronization:synchronization +pw_source_set("synchronization") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/synchronization/barrier.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/blocking_counter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/create_thread_identity.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/futex.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/futex_waiter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/per_thread_sem.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/pthread_waiter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/sem_waiter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/stdcpp_waiter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/waiter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/waiter_base.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/win32_waiter.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/mutex.h", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/notification.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/synchronization/barrier.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/blocking_counter.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/create_thread_identity.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/futex_waiter.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/per_thread_sem.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/pthread_waiter.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/sem_waiter.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/stdcpp_waiter.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/waiter_base.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/internal/win32_waiter.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/mutex.cc", + "$dir_pw_third_party_abseil_cpp/absl/synchronization/notification.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + "../..:abseil_cpp_config2", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":graphcycles_internal", + ":kernel_timeout_internal", + "../base", + "../base:atomic_hook", + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../base:dynamic_annotations", + "../base:malloc_internal", + "../base:raw_logging_internal", + "../debugging:stacktrace", + "../debugging:symbolize", + "../time", + ] +} diff --git a/third_party/abseil-cpp/absl/time/BUILD.gn b/third_party/abseil-cpp/absl/time/BUILD.gn new file mode 100644 index 0000000000..090217e684 --- /dev/null +++ b/third_party/abseil-cpp/absl/time/BUILD.gn @@ -0,0 +1,57 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/time. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/time:time +pw_source_set("time") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/time/civil_time.h", + "$dir_pw_third_party_abseil_cpp/absl/time/clock.h", + "$dir_pw_third_party_abseil_cpp/absl/time/time.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/time/civil_time.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/clock.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/duration.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/format.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/get_current_time_chrono.inc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/get_current_time_posix.inc", + "$dir_pw_third_party_abseil_cpp/absl/time/time.cc", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base", + "../base:config", + "../base:core_headers", + "../base:raw_logging_internal", + "../numeric:int128", + "../strings", + "../types:optional", + "internal/cctz:civil_time", + "internal/cctz:time_zone", + ] +} diff --git a/third_party/abseil-cpp/absl/time/internal/cctz/BUILD.gn b/third_party/abseil-cpp/absl/time/internal/cctz/BUILD.gn new file mode 100644 index 0000000000..6b03f17017 --- /dev/null +++ b/third_party/abseil-cpp/absl/time/internal/cctz/BUILD.gn @@ -0,0 +1,65 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/time/internal/cctz. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/time/internal/cctz:civil_time +pw_source_set("civil_time") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/include/cctz/civil_time.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/civil_time_detail.cc" ] + public_configs = [ "../../../..:abseil_cpp_public_config1" ] + configs = [ "../../../../configs:internal_disabled_warnings" ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ "../../../base:config" ] +} + +# Generated from //absl/time/internal/cctz:time_zone +pw_source_set("time_zone") { + public = [ + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/include/cctz/time_zone.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/include/cctz/zone_info_source.h", + ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_fixed.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_fixed.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_format.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_if.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_if.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_impl.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_impl.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_info.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_info.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_libc.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_libc.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_lookup.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_posix.cc", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/time_zone_posix.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/tzfile.h", + "$dir_pw_third_party_abseil_cpp/absl/time/internal/cctz/src/zone_info_source.cc", + ] + public_configs = [ "../../../..:abseil_cpp_public_config1" ] + configs = [ "../../../../configs:internal_disabled_warnings" ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":civil_time", + "../../../base:config", + ] +} diff --git a/third_party/abseil-cpp/absl/types/BUILD.gn b/third_party/abseil-cpp/absl/types/BUILD.gn new file mode 100644 index 0000000000..e4577c0ca1 --- /dev/null +++ b/third_party/abseil-cpp/absl/types/BUILD.gn @@ -0,0 +1,183 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/types. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/types:any +pw_source_set("any") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/any.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":bad_any_cast", + "../base:config", + "../base:core_headers", + "../base:fast_type_id", + "../meta:type_traits", + "../utility", + ] +} + +# Generated from //absl/types:bad_any_cast +pw_source_set("bad_any_cast") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/bad_any_cast.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":bad_any_cast_impl", + "../base:config", + ] +} + +# Generated from //absl/types:bad_any_cast_impl +pw_source_set("bad_any_cast_impl") { + visibility = [ ":*" ] + sources = [ + "$dir_pw_third_party_abseil_cpp/absl/types/bad_any_cast.cc", + "$dir_pw_third_party_abseil_cpp/absl/types/bad_any_cast.h", + ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/types:bad_optional_access +pw_source_set("bad_optional_access") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/bad_optional_access.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/types/bad_optional_access.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/types:bad_variant_access +pw_source_set("bad_variant_access") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/bad_variant_access.h" ] + sources = + [ "$dir_pw_third_party_abseil_cpp/absl/types/bad_variant_access.cc" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:config", + "../base:raw_logging_internal", + ] +} + +# Generated from //absl/types:compare +pw_source_set("compare") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/compare.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:core_headers", + "../meta:type_traits", + ] +} + +# Generated from //absl/types:optional +pw_source_set("optional") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/optional.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/types/internal/optional.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":bad_optional_access", + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../memory", + "../meta:type_traits", + "../utility", + ] +} + +# Generated from //absl/types:span +pw_source_set("span") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/span.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/types/internal/span.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../algorithm", + "../base:core_headers", + "../base:throw_delegate", + "../meta:type_traits", + ] +} + +# Generated from //absl/types:variant +pw_source_set("variant") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/types/variant.h" ] + sources = [ "$dir_pw_third_party_abseil_cpp/absl/types/internal/variant.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + ":bad_variant_access", + "../base:base_internal", + "../base:config", + "../base:core_headers", + "../meta:type_traits", + "../utility", + ] +} diff --git a/third_party/abseil-cpp/absl/utility/BUILD.gn b/third_party/abseil-cpp/absl/utility/BUILD.gn new file mode 100644 index 0000000000..274a9181d8 --- /dev/null +++ b/third_party/abseil-cpp/absl/utility/BUILD.gn @@ -0,0 +1,38 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# DO NOT MANUALLY EDIT! +# This file was automatically generated by pw_build/gn_writer.py +# It contains GN build targets for absl/utility. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/target_types.gni") +import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni") + +# Generated from //absl/utility:utility +pw_source_set("utility") { + public = [ "$dir_pw_third_party_abseil_cpp/absl/utility/utility.h" ] + public_configs = [ "../..:abseil_cpp_public_config1" ] + configs = [ + "../../configs:internal_disabled_warnings", + "../..:abseil_cpp_config1", + ] + remove_configs = [ "$dir_pw_fuzzer:instrumentation" ] + public_deps = [ + "../base:base_internal", + "../base:config", + "../meta:type_traits", + ] +} diff --git a/third_party/abseil-cpp/configs/BUILD.gn b/third_party/abseil-cpp/configs/BUILD.gn new file mode 100644 index 0000000000..55a14e2af0 --- /dev/null +++ b/third_party/abseil-cpp/configs/BUILD.gn @@ -0,0 +1,24 @@ +# Copyright 2023 The Pigweed Authors +# +# 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 +# +# https://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. + +# Targets that include Abseil C++ headers need to include this config. +config("disabled_warnings") { + cflags = [ "-Wno-gcc-compat" ] +} + +# This config should only be used to build the Abseil C++ library itself. +config("internal_disabled_warnings") { + cflags = [ "-Wno-switch-enum" ] + configs = [ ":disabled_warnings" ] +} diff --git a/third_party/abseil-cpp/docs.rst b/third_party/abseil-cpp/docs.rst new file mode 100644 index 0000000000..878c60923a --- /dev/null +++ b/third_party/abseil-cpp/docs.rst @@ -0,0 +1,53 @@ +.. _module-pw_third_party_abseil-cpp: + +========== +Abseil C++ +========== +The ``$dir_pw_third_party/abseil-cpp/`` module provides build files to allow +optionally including upstream Abseil C++. + +------------------------- +Using upstream Abseil C++ +------------------------- +If you want to use Abseil C++, you must do the following: + +Submodule +========= +Add Abseil C++ to your workspace with the following command. + +.. code-block:: sh + + git submodule add https://github.com/abseil/abseil-cpp.git \ + third_party/abseil-cpp/src + +GN +== +* Set the GN var ``dir_pw_third_party_abseil-cpp`` to the location of the + Abseil C++ source. + + If you used the command above, this will be + ``//third_party/abseil-cpp/src`` + + This can be set in your args.gn or .gn file like: + ``dir_pw_third_party_abseil_cpp = "//third_party/abseil-cpp/src"`` + +Updating +======== +The GN build files are generated from the third-party Bazel build files using +$dir_pw_build/py/pw_build/generate_3p_gn.py. + +The script uses data taken from ``$dir_pw_third_party/abseil-cpp/repo.json``. + +The script should be re-run whenever the submodule is updated or the JSON file +is modified. Specify the location of the Bazel repository can be specified using +the ``-w`` option, e.g. + +.. code-block:: sh + + python pw_build/py/pw_build/generate_3p_gn.py \ + -w third_party/abseil-cpp/src + +Version +======= +The update script was last run for revision: +8518869eb9a8ef098a9dd7780b9e55d5b43b5873 diff --git a/third_party/abseil-cpp/repo.json b/third_party/abseil-cpp/repo.json new file mode 100644 index 0000000000..f37847af08 --- /dev/null +++ b/third_party/abseil-cpp/repo.json @@ -0,0 +1,7 @@ +{ + "name": "Abseil C++", + "add": [ + "$dir_pw_third_party/abseil-cpp/configs:internal_disabled_warnings" + ], + "remove": [ "$dir_pw_fuzzer:instrumentation" ] +}