blob: e093177c4f61c9ee951e3a450928c3735d45b70f [file] [log] [blame]
Bob Badoure3626cd2021-02-12 15:27:36 -08001package {
2 default_applicable_licenses: ["external_pcre_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20 name: "external_pcre_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-BSD",
24 "SPDX-license-identifier-FSFAP",
25 "SPDX-license-identifier-MIT",
26 "legacy_notice",
27 "legacy_unencumbered",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
Dan Willemsen66926142016-07-19 19:34:54 -070034cc_defaults {
35 name: "pcre_defaults",
Chih-Hung Hsieh65945542017-09-28 15:39:31 -070036 cflags: [
37 "-DHAVE_CONFIG_H",
38 "-Wall",
39 "-Werror",
Elliott Hughes5b808042021-10-01 10:56:10 -070040 "-DPCRE2_CODE_UNIT_WIDTH=8",
Chih-Hung Hsieh65945542017-09-28 15:39:31 -070041 ],
Chih-Hung Hsieh48eadb42017-08-09 15:30:45 -070042 tidy_checks: [
43 "-google-build-using-namespace",
44 "-google-global-names-in-headers",
45 ],
Janis Danisevskis53e448c2016-03-31 13:35:25 +010046 local_include_dirs: [
Janis Danisevskis53e448c2016-03-31 13:35:25 +010047 "include",
Dan Willemsen66926142016-07-19 19:34:54 -070048 ],
Janis Danisevskis53e448c2016-03-31 13:35:25 +010049 export_include_dirs: ["include"],
Dan Willemsen66926142016-07-19 19:34:54 -070050}
51
Elliott Hughesf22fc772018-04-23 16:54:02 -070052//
53// libpcre2
54//
Dan Willemsen66926142016-07-19 19:34:54 -070055
56cc_library {
Janis Danisevskis53e448c2016-03-31 13:35:25 +010057 name: "libpcre2",
Dan Willemsen66926142016-07-19 19:34:54 -070058 defaults: ["pcre_defaults"],
59 host_supported: true,
Vijay Venkatramanf60d8432017-04-18 15:54:40 -070060 vendor_available: true,
Justin Yunbb67f692020-11-11 18:21:56 +090061 product_available: true,
Justin Yuncc36a0a2017-07-24 15:19:44 +090062 vndk: {
63 enabled: true,
64 },
Jooyung Han6cfbb072019-01-18 15:43:40 +090065 double_loadable: true,
Yifan Honga3c4a4a2020-10-21 18:43:09 -070066 ramdisk_available: true,
67 vendor_ramdisk_available: true,
Jiyong Park3bd078b2018-04-27 21:48:16 +090068 recovery_available: true,
Elliott Hughes5b808042021-10-01 10:56:10 -070069 srcs: [
70 "src/pcre2_auto_possess.c",
71 "src/pcre2_compile.c",
72 "src/pcre2_config.c",
73 "src/pcre2_context.c",
74 "src/pcre2_convert.c",
75 "src/pcre2_dfa_match.c",
76 "src/pcre2_error.c",
77 "src/pcre2_extuni.c",
78 "src/pcre2_find_bracket.c",
79 "src/pcre2_maketables.c",
80 "src/pcre2_match.c",
81 "src/pcre2_match_data.c",
82 "src/pcre2_jit_compile.c",
83 "src/pcre2_newline.c",
84 "src/pcre2_ord2utf.c",
85 "src/pcre2_pattern_info.c",
86 "src/pcre2_script_run.c",
87 "src/pcre2_serialize.c",
88 "src/pcre2_string_utils.c",
89 "src/pcre2_study.c",
90 "src/pcre2_substitute.c",
91 "src/pcre2_substring.c",
92 "src/pcre2_tables.c",
93 "src/pcre2_ucd.c",
94 "src/pcre2_valid_utf.c",
95 "src/pcre2_xclass.c",
96 "src/pcre2_chartables.c",
97 ],
Elliott Hughes1f261d02019-09-24 12:09:12 -070098 stl: "none",
Dan Willemsen38109c92017-03-15 14:38:37 -070099 target: {
Colin Cross038bdaf2021-07-13 17:08:03 -0700100 bionic: {
101 system_shared_libs: ["libc"],
102 },
Dan Willemsen38109c92017-03-15 14:38:37 -0700103 linux_bionic: {
104 enabled: true,
105 },
106 },
Dan Willemsen66926142016-07-19 19:34:54 -0700107}