tvl-depot/absl/random/CMakeLists.txt
Abseil Team 37dd2562ec Export of internal Abseil changes
--
8bdb2020150ed0fd4a4e520e454dc5f54e33f776 by Eric Fiselier <ericwf@google.com>:

Workaround bug in GCC 9.2 and after.

PiperOrigin-RevId: 291982551

--
47ff4820e595f96c082a90d733725f6882d83e3b by Abseil Team <absl-team@google.com>:

Improve ABSL_ATTRIBUTE_PACKED documentation

Recommend to apply ABSL_ATTRIBUTE_PACKED to structure members instead of to an entire structure because applying this attribute to an entire structure may cause the compiler to generate suboptimal code. It reduces the alignment of the data structure from a value larger than one to one. When applied to a structure, ABSL_ATTRIBUTE_PACKED reduces the alignment of a structure (alignof()) to 1. As a result, the compiler can no longer assume that e.g. uint32 members are aligned on a four byte boundary and hence is forced to use single-byte load and store instructions on CPU architectures that do not support non-aligned loads or stores.

PiperOrigin-RevId: 291977920

--
902b7a86f860da699d3a2e5c738be5ef73ede3b4 by Mark Barolak <mbar@google.com>:

Internal change

PiperOrigin-RevId: 291963048

--
bb3bd3247e376d53a3080b105f13ec7566d3ae50 by Abseil Team <absl-team@google.com>:

Support the C++17 insert_or_assign() API in btree_map.

PiperOrigin-RevId: 291945474

--
ff3b3cfcbbc64f086f95501f48d49426bcde356f by Gennadiy Rozental <rogeeff@google.com>:

Import of CCTZ from GitHub.

PiperOrigin-RevId: 291861110

--
fd465cd9cbbacd3962f67a7346d6462edaddd809 by Derek Mauro <dmauro@google.com>:

Add flaky=1 to beta_distribution_test.

PiperOrigin-RevId: 291757364

--
3603adfb59c4128c542b670952cce250d59e1f67 by Derek Mauro <dmauro@google.com>:

Separate the initialization of NumCPUs() and NominalCPUFrequency()

The OSS version of Abseil never needs to call NominalCPUFrequency().
In some configurations, initializing NominalCPUFrequency() requires
spending at least 3ms measuring the CPU frequency. By separating the
initialization from NumCPUs(), which is called in most configurations,
we can save at least 3ms of program startup time.

PiperOrigin-RevId: 291737273

--
bea9e4a6bff5a0351d340deab966641867e08c4d by Abseil Team <absl-team@google.com>:

Change the cmake library names not to have a redundant `absl_` prefix.

PiperOrigin-RevId: 291640501

--
501b602ef260cd7c8c527342581ceffb3c5b6d4c by Gennadiy Rozental <rogeeff@google.com>:

Introducing benchmark for absl::GetFlag.

PiperOrigin-RevId: 291433394

--
4eeaddc788da4b91c272a8adca77ca6dbbbc1d44 by Xiaoyi Zhang <zhangxy@google.com>:

fix: Add support for more ARM processors detection

Import of https://github.com/abseil/abseil-cpp/pull/608

PiperOrigin-RevId: 291420397

--
a3087a8e883c5d71de7d9bd4ec8f4db5142dfcf5 by Derek Mauro <dmauro@google.com>:

Removes the flaky raw_hash_set prefetch test

PiperOrigin-RevId: 291197079

--
aad6c2121c102ac36216e771c83227cf3e3bfd66 by Andy Soffer <asoffer@google.com>:

Enable building Abseil as a DLL.
This is currently experimental and unsupported.

This CL does a few things:
1. Adds the ABSL_DLL macro to any class holding a static data member, or to global constants in headers.
2. Adds a whitelist of all files in the DLL and all the build targets that are conglomerated into the DLL.
3. When BUILD_SHARED_LIBS is specified, any build target that would be in the DLL still exists, but we swap out all of it's dependencies so it just depends on abseil_dll

PiperOrigin-RevId: 291192055

--
5e888cd6f2a7722805d41f872108a03a84e421c7 by Mark Barolak <mbar@google.com>:

Move absl/strings/internal/escaping.{cc,h} into internal build targets.

This puts absl/strings/internal/escaping.h behind a whitelist and it also resolves https://github.com/abseil/abseil-cpp/issues/604.

PiperOrigin-RevId: 291173320

--
166836d24970da87587c1728036f53f05a28f0af by Eric Fiselier <ericwf@google.com>:

Internal Change.

PiperOrigin-RevId: 291012718

--
996ddb3dffda02440fa93f30ca5d71b14b688875 by Abseil Team <absl-team@google.com>:

Fix shared libraries log spam for built-in types in absl::GetFlag

PiperOrigin-RevId: 290772743
GitOrigin-RevId: 8bdb2020150ed0fd4a4e520e454dc5f54e33f776
Change-Id: I8bf2265dd14ebbace220a1b6b982bb5040ad2a26
2020-01-28 16:07:41 -05:00

1208 lines
23 KiB
CMake

#
# Copyright 2019 The Abseil 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.
#
absl_cc_library(
NAME
random_random
HDRS
"random.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_internal_nonsecure_base
absl::random_internal_pcg_engine
absl::random_internal_pool_urbg
absl::random_internal_randen_engine
absl::random_seed_sequences
)
absl_cc_library(
NAME
random_bit_gen_ref
HDRS
"bit_gen_ref.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::core_headers
absl::random_internal_distribution_caller
absl::random_internal_fast_uniform_bits
absl::random_internal_mocking_bit_gen_base
absl::type_traits
)
absl_cc_test(
NAME
random_bit_gen_ref_test
SRCS
"bit_gen_ref_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_bit_gen_ref
absl::random_random
absl::random_internal_sequence_urbg
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_mocking_bit_gen_base
HDRS
"internal/mocking_bit_gen_base.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_random
absl::strings
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_mock_overload_set
HDRS
"internal/mock_overload_set.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_mocking_bit_gen
TESTONLY
)
absl_cc_library(
NAME
random_mocking_bit_gen
HDRS
"mock_distributions.h"
"mocking_bit_gen.h"
SRCS
"mocking_bit_gen.cc"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::flat_hash_map
absl::raw_logging_internal
absl::random_distributions
absl::random_internal_distribution_caller
absl::random_internal_mocking_bit_gen_base
absl::random_internal_mock_overload_set
absl::strings
absl::span
absl::type_traits
absl::utility
absl::variant
gmock
gtest
TESTONLY
)
absl_cc_test(
NAME
random_mock_distributions_test
SRCS
"mock_distributions_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_mocking_bit_gen
absl::random_random
gmock
gtest_main
)
absl_cc_test(
NAME
random_mocking_bit_gen_test
SRCS
"mocking_bit_gen_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_bit_gen_ref
absl::random_mocking_bit_gen
absl::random_random
gmock
gtest_main
)
absl_cc_library(
NAME
random_distributions
SRCS
"discrete_distribution.cc"
"gaussian_distribution.cc"
HDRS
"bernoulli_distribution.h"
"beta_distribution.h"
"discrete_distribution.h"
"distribution_format_traits.h"
"distributions.h"
"exponential_distribution.h"
"gaussian_distribution.h"
"log_uniform_int_distribution.h"
"poisson_distribution.h"
"uniform_int_distribution.h"
"uniform_real_distribution.h"
"zipf_distribution.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::base_internal
absl::config
absl::core_headers
absl::random_internal_generate_real
absl::random_internal_distributions
absl::random_internal_fast_uniform_bits
absl::random_internal_fastmath
absl::random_internal_iostream_state_saver
absl::random_internal_traits
absl::random_internal_uniform_helper
absl::random_internal_wide_multiply
absl::strings
absl::span
absl::type_traits
)
absl_cc_library(
NAME
random_seed_gen_exception
SRCS
"seed_gen_exception.cc"
HDRS
"seed_gen_exception.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
)
absl_cc_library(
NAME
random_seed_sequences
SRCS
"seed_sequences.cc"
HDRS
"seed_sequences.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::inlined_vector
absl::random_internal_nonsecure_base
absl::random_internal_pool_urbg
absl::random_internal_salted_seed_seq
absl::random_internal_seed_material
absl::random_seed_gen_exception
absl::span
)
absl_cc_test(
NAME
random_bernoulli_distribution_test
SRCS
"bernoulli_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_random
absl::random_internal_sequence_urbg
gmock
gtest_main
)
absl_cc_test(
NAME
random_beta_distribution_test
SRCS
"beta_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_random
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::raw_logging_internal
absl::strings
absl::str_format
gmock
gtest_main
)
absl_cc_test(
NAME
random_distributions_test
SRCS
"distributions_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_random
absl::random_internal_distribution_test_util
gmock
gtest_main
)
absl_cc_test(
NAME
random_generators_test
SRCS
"generators_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
absl::random_distributions
absl::random_random
absl::raw_logging_internal
gmock
gtest_main
)
absl_cc_test(
NAME
random_log_uniform_int_distribution_test
SRCS
"log_uniform_int_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
absl::core_headers
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::raw_logging_internal
absl::strings
absl::str_format
gmock
gtest_main
)
absl_cc_test(
NAME
random_discrete_distribution_test
SRCS
"discrete_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::raw_logging_internal
absl::strings
gmock
gtest_main
)
absl_cc_test(
NAME
random_poisson_distribution_test
SRCS
"poisson_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_random
absl::core_headers
absl::flat_hash_map
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::raw_logging_internal
absl::strings
absl::str_format
gmock
gtest_main
)
absl_cc_test(
NAME
random_exponential_distribution_test
SRCS
"exponential_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::core_headers
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::raw_logging_internal
absl::strings
absl::str_format
gmock
gtest_main
)
absl_cc_test(
NAME
random_gaussian_distribution_test
SRCS
"gaussian_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::core_headers
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::raw_logging_internal
absl::strings
absl::str_format
gmock
gtest_main
)
absl_cc_test(
NAME
random_uniform_int_distribution_test
SRCS
"uniform_int_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::raw_logging_internal
absl::strings
gmock
gtest_main
)
absl_cc_test(
NAME
random_uniform_real_distribution_test
SRCS
"uniform_real_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::strings
gmock
gtest_main
)
absl_cc_test(
NAME
random_zipf_distribution_test
SRCS
"zipf_distribution_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_distributions
absl::random_internal_distribution_test_util
absl::random_internal_sequence_urbg
absl::random_random
absl::raw_logging_internal
absl::strings
gmock
gtest_main
)
absl_cc_test(
NAME
random_examples_test
SRCS
"examples_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_random
gtest_main
)
absl_cc_test(
NAME
random_seed_sequences_test
SRCS
"seed_sequences_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_seed_sequences
absl::random_internal_nonsecure_base
absl::random_random
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_traits
HDRS
"internal/traits.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_distribution_caller
HDRS
"internal/distribution_caller.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_distributions
HDRS
"internal/distributions.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_distribution_caller
absl::random_internal_fast_uniform_bits
absl::random_internal_fastmath
absl::random_internal_traits
absl::random_internal_uniform_helper
absl::span
absl::strings
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_fast_uniform_bits
HDRS
"internal/fast_uniform_bits.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_seed_material
SRCS
"internal/seed_material.cc"
HDRS
"internal/seed_material.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
$<$<BOOL:${MINGW}>:"bcrypt">
DEPS
absl::core_headers
absl::optional
absl::random_internal_fast_uniform_bits
absl::raw_logging_internal
absl::span
absl::strings
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_pool_urbg
SRCS
"internal/pool_urbg.cc"
HDRS
"internal/pool_urbg.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::base
absl::config
absl::core_headers
absl::endian
absl::random_internal_randen
absl::random_internal_seed_material
absl::random_internal_traits
absl::random_seed_gen_exception
absl::raw_logging_internal
absl::span
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_explicit_seed_seq
HDRS
"internal/random_internal_explicit_seed_seq.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
TESTONLY
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_sequence_urbg
HDRS
"internal/sequence_urbg.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
TESTONLY
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_salted_seed_seq
HDRS
"internal/salted_seed_seq.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::inlined_vector
absl::optional
absl::span
absl::random_internal_seed_material
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_iostream_state_saver
HDRS
"internal/iostream_state_saver.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::int128
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_generate_real
HDRS
"internal/generate_real.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::bits
absl::random_internal_fastmath
absl::random_internal_traits
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_wide_multiply
HDRS
"internal/wide_multiply.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::bits
absl::config
absl::int128
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_fastmath
HDRS
"internal/fastmath.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::bits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_nonsecure_base
HDRS
"internal/nonsecure_base.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::core_headers
absl::optional
absl::random_internal_pool_urbg
absl::random_internal_salted_seed_seq
absl::random_internal_seed_material
absl::span
absl::strings
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_pcg_engine
HDRS
"internal/pcg_engine.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
absl::int128
absl::random_internal_fastmath
absl::random_internal_iostream_state_saver
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_randen_engine
HDRS
"internal/randen_engine.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_iostream_state_saver
absl::random_internal_randen
absl::raw_logging_internal
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_platform
HDRS
"internal/randen_traits.h"
"internal/randen-keys.inc"
"internal/platform.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_randen
SRCS
"internal/randen.cc"
HDRS
"internal/randen.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_platform
absl::random_internal_randen_hwaes
absl::random_internal_randen_slow
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_randen_slow
SRCS
"internal/randen_slow.cc"
HDRS
"internal/randen_slow.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_platform
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_randen_hwaes
SRCS
"internal/randen_detect.cc"
HDRS
"internal/randen_detect.h"
"internal/randen_hwaes.h"
COPTS
${ABSL_DEFAULT_COPTS}
${ABSL_RANDOM_RANDEN_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_platform
absl::random_internal_randen_hwaes_impl
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_randen_hwaes_impl
SRCS
"internal/randen_hwaes.cc"
"internal/randen_hwaes.h"
COPTS
${ABSL_DEFAULT_COPTS}
${ABSL_RANDOM_RANDEN_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_platform
absl::config
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_distribution_test_util
SRCS
"internal/chi_square.cc"
"internal/distribution_test_util.cc"
HDRS
"internal/chi_square.h"
"internal/distribution_test_util.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::config
absl::core_headers
absl::raw_logging_internal
absl::strings
absl::str_format
absl::span
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_traits_test
SRCS
"internal/traits_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_traits
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_generate_real_test
SRCS
"internal/generate_real_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::bits
absl::flags
absl::random_internal_generate_real
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_distribution_test_util_test
SRCS
"internal/distribution_test_util_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_distribution_test_util
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_fastmath_test
SRCS
"internal/fastmath_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_fastmath
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_explicit_seed_seq_test
SRCS
"internal/explicit_seed_seq_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_explicit_seed_seq
absl::random_seed_sequences
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_salted_seed_seq_test
SRCS
"internal/salted_seed_seq_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_salted_seed_seq
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_chi_square_test
SRCS
"internal/chi_square_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::core_headers
absl::random_internal_distribution_test_util
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_fast_uniform_bits_test
SRCS
"internal/fast_uniform_bits_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_fast_uniform_bits
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_nonsecure_base_test
SRCS
"internal/nonsecure_base_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_nonsecure_base
absl::random_random
absl::random_distributions
absl::random_seed_sequences
absl::strings
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_seed_material_test
SRCS
"internal/seed_material_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_seed_material
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_pool_urbg_test
SRCS
"internal/pool_urbg_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_pool_urbg
absl::span
absl::type_traits
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_pcg_engine_test
SRCS
"internal/pcg_engine_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_explicit_seed_seq
absl::random_internal_pcg_engine
absl::time
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_randen_engine_test
SRCS
"internal/randen_engine_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_explicit_seed_seq
absl::random_internal_randen_engine
absl::raw_logging_internal
absl::strings
absl::time
gmock
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_randen_test
SRCS
"internal/randen_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_randen
absl::type_traits
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_randen_slow_test
SRCS
"internal/randen_slow_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_randen_slow
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_randen_hwaes_test
SRCS
"internal/randen_hwaes_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_platform
absl::random_internal_randen_hwaes
absl::random_internal_randen_hwaes_impl
absl::raw_logging_internal
absl::str_format
gmock
gtest
)
# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
random_internal_uniform_helper
HDRS
"internal/uniform_helper.h"
COPTS
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::core_headers
absl::random_internal_fast_uniform_bits
absl::random_internal_iostream_state_saver
absl::random_internal_traits
absl::type_traits
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_iostream_state_saver_test
SRCS
"internal/iostream_state_saver_test.cc"
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_iostream_state_saver
gtest_main
)
# Internal-only target, do not depend on directly.
absl_cc_test(
NAME
random_internal_wide_multiply_test
SRCS
internal/wide_multiply_test.cc
COPTS
${ABSL_TEST_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
DEPS
absl::random_internal_wide_multiply
absl::bits
absl::int128
gtest_main
)