xref: /aosp_15_r20/external/pigweed/third_party/re2/BUILD.gn (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1*61c4878aSAndroid Build Coastguard Worker# Copyright 2023 The Pigweed Authors
2*61c4878aSAndroid Build Coastguard Worker#
3*61c4878aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4*61c4878aSAndroid Build Coastguard Worker# use this file except in compliance with the License. You may obtain a copy of
5*61c4878aSAndroid Build Coastguard Worker# the License at
6*61c4878aSAndroid Build Coastguard Worker#
7*61c4878aSAndroid Build Coastguard Worker#     https://www.apache.org/licenses/LICENSE-2.0
8*61c4878aSAndroid Build Coastguard Worker#
9*61c4878aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*61c4878aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11*61c4878aSAndroid Build Coastguard Worker# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12*61c4878aSAndroid Build Coastguard Worker# License for the specific language governing permissions and limitations under
13*61c4878aSAndroid Build Coastguard Worker# the License.
14*61c4878aSAndroid Build Coastguard Worker
15*61c4878aSAndroid Build Coastguard Worker# DO NOT MANUALLY EDIT!
16*61c4878aSAndroid Build Coastguard Worker# This file was automatically generated by pw_build/gn_writer.py
17*61c4878aSAndroid Build Coastguard Worker
18*61c4878aSAndroid Build Coastguard Workerimport("//build_overrides/pigweed.gni")
19*61c4878aSAndroid Build Coastguard Worker
20*61c4878aSAndroid Build Coastguard Workerimport("$dir_pw_build/target_types.gni")
21*61c4878aSAndroid Build Coastguard Workerimport("$dir_pw_docgen/docs.gni")
22*61c4878aSAndroid Build Coastguard Workerimport("$dir_pw_third_party/re2/re2.gni")
23*61c4878aSAndroid Build Coastguard Worker
24*61c4878aSAndroid Build Coastguard Workerif (dir_pw_third_party_re2 != "") {
25*61c4878aSAndroid Build Coastguard Worker  config("re2_public_config1") {
26*61c4878aSAndroid Build Coastguard Worker    include_dirs = [ "$dir_pw_third_party_re2" ]
27*61c4878aSAndroid Build Coastguard Worker  }
28*61c4878aSAndroid Build Coastguard Worker
29*61c4878aSAndroid Build Coastguard Worker  # Generated from //:re2
30*61c4878aSAndroid Build Coastguard Worker  pw_source_set("re2") {
31*61c4878aSAndroid Build Coastguard Worker    public = [
32*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/filtered_re2.h",
33*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/re2.h",
34*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/set.h",
35*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/stringpiece.h",
36*61c4878aSAndroid Build Coastguard Worker    ]
37*61c4878aSAndroid Build Coastguard Worker    sources = [
38*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/bitmap256.cc",
39*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/bitmap256.h",
40*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/bitstate.cc",
41*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/compile.cc",
42*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/dfa.cc",
43*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/filtered_re2.cc",
44*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/mimics_pcre.cc",
45*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/nfa.cc",
46*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/onepass.cc",
47*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/parse.cc",
48*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/perl_groups.cc",
49*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/pod_array.h",
50*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/prefilter.cc",
51*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/prefilter.h",
52*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/prefilter_tree.cc",
53*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/prefilter_tree.h",
54*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/prog.cc",
55*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/prog.h",
56*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/re2.cc",
57*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/regexp.cc",
58*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/regexp.h",
59*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/set.cc",
60*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/simplify.cc",
61*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/sparse_array.h",
62*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/sparse_set.h",
63*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/stringpiece.cc",
64*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/tostring.cc",
65*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/unicode_casefold.cc",
66*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/unicode_casefold.h",
67*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/unicode_groups.cc",
68*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/unicode_groups.h",
69*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/re2/walker-inl.h",
70*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/logging.h",
71*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/mix.h",
72*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/mutex.h",
73*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/rune.cc",
74*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/strutil.cc",
75*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/strutil.h",
76*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/utf.h",
77*61c4878aSAndroid Build Coastguard Worker      "$dir_pw_third_party_re2/util/util.h",
78*61c4878aSAndroid Build Coastguard Worker    ]
79*61c4878aSAndroid Build Coastguard Worker    cflags = [ "-pthread" ]
80*61c4878aSAndroid Build Coastguard Worker    ldflags = [ "-pthread" ]
81*61c4878aSAndroid Build Coastguard Worker    public_configs = [ ":re2_public_config1" ]
82*61c4878aSAndroid Build Coastguard Worker    configs = [ "configs:internal_disabled_warnings" ]
83*61c4878aSAndroid Build Coastguard Worker    remove_configs = [ "$dir_pw_fuzzer:instrumentation" ]
84*61c4878aSAndroid Build Coastguard Worker  }
85*61c4878aSAndroid Build Coastguard Worker}
86*61c4878aSAndroid Build Coastguard Worker
87*61c4878aSAndroid Build Coastguard Workerpw_doc_group("docs") {
88*61c4878aSAndroid Build Coastguard Worker  sources = [ "docs.rst" ]
89*61c4878aSAndroid Build Coastguard Worker}
90