Krzysztof Kosiński | cea3283 | 2023-09-07 04:49:01 +0000 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_regex_re2_license"], |
| 3 | } |
| 4 | |
| 5 | license { |
| 6 | name: "external_regex_re2_license", |
| 7 | visibility: [":__subpackages__"], |
| 8 | license_kinds: ["SPDX-license-identifier-BSD-3-Clause"], |
| 9 | license_text: ["LICENSE"], |
| 10 | } |
| 11 | |
| 12 | cc_library_static { |
| 13 | name: "libregex_re2", |
| 14 | host_supported: true, |
Krzysztof Kosiński | a56a767 | 2023-09-27 23:07:34 +0000 | [diff] [blame] | 15 | product_available: true, |
Krzysztof Kosiński | cea3283 | 2023-09-07 04:49:01 +0000 | [diff] [blame] | 16 | vendor_available: true, |
| 17 | stl: "libc++", |
| 18 | apex_available: [ |
| 19 | "//apex_available:platform", |
| 20 | ], |
Sasha Smundak | c39f01a | 2019-07-15 15:37:50 -0700 | [diff] [blame] | 21 | srcs: [ |
| 22 | "util/rune.cc", |
| 23 | "util/strutil.cc", |
| 24 | "re2/bitstate.cc", |
| 25 | "re2/compile.cc", |
| 26 | "re2/dfa.cc", |
| 27 | "re2/filtered_re2.cc", |
| 28 | "re2/mimics_pcre.cc", |
| 29 | "re2/nfa.cc", |
| 30 | "re2/onepass.cc", |
| 31 | "re2/parse.cc", |
| 32 | "re2/perl_groups.cc", |
| 33 | "re2/prefilter.cc", |
| 34 | "re2/prefilter_tree.cc", |
| 35 | "re2/prog.cc", |
| 36 | "re2/re2.cc", |
| 37 | "re2/regexp.cc", |
| 38 | "re2/set.cc", |
| 39 | "re2/simplify.cc", |
| 40 | "re2/stringpiece.cc", |
| 41 | "re2/tostring.cc", |
| 42 | "re2/unicode_casefold.cc", |
| 43 | "re2/unicode_groups.cc", |
| 44 | ], |
| 45 | cflags: [ |
| 46 | "-Wno-unused-parameter", |
| 47 | "-Wno-missing-field-initializers", |
| 48 | ], |
| 49 | export_include_dirs: ["."], |
Krzysztof Kosiński | cea3283 | 2023-09-07 04:49:01 +0000 | [diff] [blame] | 50 | visibility: [ |
| 51 | "//external/grpc-grpc:__subpackages__", |
| 52 | "//external/kythe:__subpackages__", |
| 53 | ], |
| 54 | } |
| 55 | |
Krzysztof Kosiński | 410a951 | 2023-09-21 19:23:52 +0000 | [diff] [blame] | 56 | // This test uses a minimal fork of GTest that is incompatible with Android |
| 57 | // testing infrastructure, so it is currently a cc_binary rather than a cc_test. |
| 58 | // It can be run directly and should produce a pass/fail result: |
| 59 | // out/host/linux-x86/bin/regex_re2_test |
| 60 | cc_binary_host { |
Krzysztof Kosiński | cea3283 | 2023-09-07 04:49:01 +0000 | [diff] [blame] | 61 | name: "regex_re2_test", |
Krzysztof Kosiński | cea3283 | 2023-09-07 04:49:01 +0000 | [diff] [blame] | 62 | srcs: [ |
| 63 | "re2/testing/backtrack.cc", |
| 64 | "re2/testing/charclass_test.cc", |
| 65 | "re2/testing/compile_test.cc", |
| 66 | "re2/testing/dump.cc", |
| 67 | "re2/testing/filtered_re2_test.cc", |
| 68 | "re2/testing/mimics_pcre_test.cc", |
| 69 | "re2/testing/null_walker.cc", |
| 70 | "re2/testing/parse_test.cc", |
| 71 | "re2/testing/possible_match_test.cc", |
| 72 | "re2/testing/re2_arg_test.cc", |
| 73 | "re2/testing/re2_test.cc", |
| 74 | "re2/testing/regexp_generator.cc", |
| 75 | "re2/testing/regexp_test.cc", |
| 76 | "re2/testing/required_prefix_test.cc", |
| 77 | "re2/testing/search_test.cc", |
| 78 | "re2/testing/set_test.cc", |
| 79 | "re2/testing/simplify_test.cc", |
| 80 | "re2/testing/string_generator.cc", |
| 81 | "re2/testing/string_generator_test.cc", |
| 82 | "re2/testing/tester.cc", |
| 83 | "util/pcre.cc", |
| 84 | "util/test.cc", |
| 85 | ], |
| 86 | cflags: [ |
| 87 | "-Wno-unused-parameter", |
| 88 | "-Wno-missing-field-initializers", |
| 89 | ], |
| 90 | static_libs: [ |
| 91 | "libregex_re2", |
| 92 | ], |
Sasha Smundak | c39f01a | 2019-07-15 15:37:50 -0700 | [diff] [blame] | 93 | } |