xref: /aosp_15_r20/external/pigweed/third_party/abseil-cpp/absl/random/BUILD.gn (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15# DO NOT MANUALLY EDIT!
16# This file was automatically generated by pw_build/gn_writer.py
17
18import("//build_overrides/pigweed.gni")
19
20import("$dir_pw_third_party/abseil-cpp/abseil-cpp.gni")
21
22# Generated from @com_google_absl//absl/random:bit_gen_ref
23abseil_cpp_source_set("bit_gen_ref") {
24  public = [ "$dir_pw_third_party_abseil_cpp/absl/random/bit_gen_ref.h" ]
25  cflags = [
26    "-DNOMINMAX",
27    "-Wall",
28    "-Wcast-qual",
29    "-Wconversion-null",
30    "-Wextra",
31    "-Wformat-security",
32    "-Wmissing-declarations",
33    "-Wnon-virtual-dtor",
34    "-Woverlength-strings",
35    "-Wpointer-arith",
36    "-Wundef",
37    "-Wunused-local-typedefs",
38    "-Wunused-result",
39    "-Wvarargs",
40    "-Wvla",
41    "-Wwrite-strings",
42  ]
43  public_deps = [
44    ":random",
45    "../base:core_headers",
46    "../base:fast_type_id",
47    "../meta:type_traits",
48    "internal:distribution_caller",
49    "internal:fast_uniform_bits",
50  ]
51}
52
53# Generated from @com_google_absl//absl/random:distributions
54abseil_cpp_source_set("distributions") {
55  public = [
56    "$dir_pw_third_party_abseil_cpp/absl/random/bernoulli_distribution.h",
57    "$dir_pw_third_party_abseil_cpp/absl/random/beta_distribution.h",
58    "$dir_pw_third_party_abseil_cpp/absl/random/discrete_distribution.h",
59    "$dir_pw_third_party_abseil_cpp/absl/random/distributions.h",
60    "$dir_pw_third_party_abseil_cpp/absl/random/exponential_distribution.h",
61    "$dir_pw_third_party_abseil_cpp/absl/random/gaussian_distribution.h",
62    "$dir_pw_third_party_abseil_cpp/absl/random/log_uniform_int_distribution.h",
63    "$dir_pw_third_party_abseil_cpp/absl/random/poisson_distribution.h",
64    "$dir_pw_third_party_abseil_cpp/absl/random/uniform_int_distribution.h",
65    "$dir_pw_third_party_abseil_cpp/absl/random/uniform_real_distribution.h",
66    "$dir_pw_third_party_abseil_cpp/absl/random/zipf_distribution.h",
67  ]
68  sources = [
69    "$dir_pw_third_party_abseil_cpp/absl/random/discrete_distribution.cc",
70    "$dir_pw_third_party_abseil_cpp/absl/random/gaussian_distribution.cc",
71  ]
72  cflags = [
73    "-DNOMINMAX",
74    "-Wall",
75    "-Wcast-qual",
76    "-Wconversion-null",
77    "-Wextra",
78    "-Wformat-security",
79    "-Wmissing-declarations",
80    "-Wnon-virtual-dtor",
81    "-Woverlength-strings",
82    "-Wpointer-arith",
83    "-Wundef",
84    "-Wunused-local-typedefs",
85    "-Wunused-result",
86    "-Wvarargs",
87    "-Wvla",
88    "-Wwrite-strings",
89  ]
90  public_deps = [
91    "../base:base_internal",
92    "../base:config",
93    "../base:core_headers",
94    "../meta:type_traits",
95    "../numeric:bits",
96    "../strings",
97    "internal:distribution_caller",
98    "internal:fast_uniform_bits",
99    "internal:fastmath",
100    "internal:generate_real",
101    "internal:iostream_state_saver",
102    "internal:traits",
103    "internal:uniform_helper",
104    "internal:wide_multiply",
105  ]
106}
107
108# Generated from @com_google_absl//absl/random:random
109abseil_cpp_source_set("random") {
110  public = [ "$dir_pw_third_party_abseil_cpp/absl/random/random.h" ]
111  cflags = [
112    "-DNOMINMAX",
113    "-Wall",
114    "-Wcast-qual",
115    "-Wconversion-null",
116    "-Wextra",
117    "-Wformat-security",
118    "-Wmissing-declarations",
119    "-Wnon-virtual-dtor",
120    "-Woverlength-strings",
121    "-Wpointer-arith",
122    "-Wundef",
123    "-Wunused-local-typedefs",
124    "-Wunused-result",
125    "-Wvarargs",
126    "-Wvla",
127    "-Wwrite-strings",
128  ]
129  public_deps = [
130    ":distributions",
131    ":seed_sequences",
132    "internal:nonsecure_base",
133    "internal:pcg_engine",
134    "internal:pool_urbg",
135    "internal:randen_engine",
136  ]
137}
138
139# Generated from @com_google_absl//absl/random:seed_gen_exception
140abseil_cpp_source_set("seed_gen_exception") {
141  public = [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_gen_exception.h" ]
142  sources =
143      [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_gen_exception.cc" ]
144  cflags = [
145    "-DNOMINMAX",
146    "-Wall",
147    "-Wcast-qual",
148    "-Wconversion-null",
149    "-Wextra",
150    "-Wformat-security",
151    "-Wmissing-declarations",
152    "-Wnon-virtual-dtor",
153    "-Woverlength-strings",
154    "-Wpointer-arith",
155    "-Wundef",
156    "-Wunused-local-typedefs",
157    "-Wunused-result",
158    "-Wvarargs",
159    "-Wvla",
160    "-Wwrite-strings",
161  ]
162  public_deps = [ "../base:config" ]
163}
164
165# Generated from @com_google_absl//absl/random:seed_sequences
166abseil_cpp_source_set("seed_sequences") {
167  public = [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_sequences.h" ]
168  sources = [ "$dir_pw_third_party_abseil_cpp/absl/random/seed_sequences.cc" ]
169  cflags = [
170    "-DNOMINMAX",
171    "-Wall",
172    "-Wcast-qual",
173    "-Wconversion-null",
174    "-Wextra",
175    "-Wformat-security",
176    "-Wmissing-declarations",
177    "-Wnon-virtual-dtor",
178    "-Woverlength-strings",
179    "-Wpointer-arith",
180    "-Wundef",
181    "-Wunused-local-typedefs",
182    "-Wunused-result",
183    "-Wvarargs",
184    "-Wvla",
185    "-Wwrite-strings",
186  ]
187  public_deps = [
188    ":seed_gen_exception",
189    "../base:config",
190    "../base:nullability",
191    "../strings:string_view",
192    "../types:span",
193    "internal:pool_urbg",
194    "internal:salted_seed_seq",
195    "internal:seed_material",
196  ]
197}
198