Bob Badour | e3626cd | 2021-02-12 15:27:36 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 19 | license { |
| 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 Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 34 | cc_defaults { |
| 35 | name: "pcre_defaults", |
Chih-Hung Hsieh | 6594554 | 2017-09-28 15:39:31 -0700 | [diff] [blame] | 36 | cflags: [ |
| 37 | "-DHAVE_CONFIG_H", |
| 38 | "-Wall", |
| 39 | "-Werror", |
Elliott Hughes | 5b80804 | 2021-10-01 10:56:10 -0700 | [diff] [blame^] | 40 | "-DPCRE2_CODE_UNIT_WIDTH=8", |
Chih-Hung Hsieh | 6594554 | 2017-09-28 15:39:31 -0700 | [diff] [blame] | 41 | ], |
Chih-Hung Hsieh | 48eadb4 | 2017-08-09 15:30:45 -0700 | [diff] [blame] | 42 | tidy_checks: [ |
| 43 | "-google-build-using-namespace", |
| 44 | "-google-global-names-in-headers", |
| 45 | ], |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 46 | local_include_dirs: [ |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 47 | "include", |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 48 | ], |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 49 | export_include_dirs: ["include"], |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 50 | } |
| 51 | |
Elliott Hughes | f22fc77 | 2018-04-23 16:54:02 -0700 | [diff] [blame] | 52 | // |
| 53 | // libpcre2 |
| 54 | // |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 55 | |
| 56 | cc_library { |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 57 | name: "libpcre2", |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 58 | defaults: ["pcre_defaults"], |
| 59 | host_supported: true, |
Vijay Venkatraman | f60d843 | 2017-04-18 15:54:40 -0700 | [diff] [blame] | 60 | vendor_available: true, |
Justin Yun | bb67f69 | 2020-11-11 18:21:56 +0900 | [diff] [blame] | 61 | product_available: true, |
Justin Yun | cc36a0a | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 62 | vndk: { |
| 63 | enabled: true, |
| 64 | }, |
Jooyung Han | 6cfbb07 | 2019-01-18 15:43:40 +0900 | [diff] [blame] | 65 | double_loadable: true, |
Yifan Hong | a3c4a4a | 2020-10-21 18:43:09 -0700 | [diff] [blame] | 66 | ramdisk_available: true, |
| 67 | vendor_ramdisk_available: true, |
Jiyong Park | 3bd078b | 2018-04-27 21:48:16 +0900 | [diff] [blame] | 68 | recovery_available: true, |
Elliott Hughes | 5b80804 | 2021-10-01 10:56:10 -0700 | [diff] [blame^] | 69 | 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 Hughes | 1f261d0 | 2019-09-24 12:09:12 -0700 | [diff] [blame] | 98 | stl: "none", |
Dan Willemsen | 38109c9 | 2017-03-15 14:38:37 -0700 | [diff] [blame] | 99 | target: { |
Colin Cross | 038bdaf | 2021-07-13 17:08:03 -0700 | [diff] [blame] | 100 | bionic: { |
| 101 | system_shared_libs: ["libc"], |
| 102 | }, |
Dan Willemsen | 38109c9 | 2017-03-15 14:38:37 -0700 | [diff] [blame] | 103 | linux_bionic: { |
| 104 | enabled: true, |
| 105 | }, |
| 106 | }, |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 107 | } |