Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 1 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 2 | |
| 3 | libpcre2_dist_prefix = "dist2" |
| 4 | |
| 5 | libpcre2_src_files = [ |
| 6 | libpcre2_dist_prefix + "/src/pcre2_auto_possess.c", |
| 7 | libpcre2_dist_prefix + "/src/pcre2_compile.c", |
| 8 | libpcre2_dist_prefix + "/src/pcre2_config.c", |
| 9 | libpcre2_dist_prefix + "/src/pcre2_context.c", |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame] | 10 | libpcre2_dist_prefix + "/src/pcre2_convert.c", |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 11 | libpcre2_dist_prefix + "/src/pcre2_dfa_match.c", |
| 12 | libpcre2_dist_prefix + "/src/pcre2_error.c", |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame] | 13 | libpcre2_dist_prefix + "/src/pcre2_extuni.c", |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 14 | libpcre2_dist_prefix + "/src/pcre2_find_bracket.c", |
| 15 | libpcre2_dist_prefix + "/src/pcre2_maketables.c", |
| 16 | libpcre2_dist_prefix + "/src/pcre2_match.c", |
| 17 | libpcre2_dist_prefix + "/src/pcre2_match_data.c", |
| 18 | libpcre2_dist_prefix + "/src/pcre2_jit_compile.c", |
| 19 | libpcre2_dist_prefix + "/src/pcre2_newline.c", |
| 20 | libpcre2_dist_prefix + "/src/pcre2_ord2utf.c", |
| 21 | libpcre2_dist_prefix + "/src/pcre2_pattern_info.c", |
| 22 | libpcre2_dist_prefix + "/src/pcre2_serialize.c", |
| 23 | libpcre2_dist_prefix + "/src/pcre2_string_utils.c", |
| 24 | libpcre2_dist_prefix + "/src/pcre2_study.c", |
| 25 | libpcre2_dist_prefix + "/src/pcre2_substitute.c", |
| 26 | libpcre2_dist_prefix + "/src/pcre2_substring.c", |
| 27 | libpcre2_dist_prefix + "/src/pcre2_tables.c", |
| 28 | libpcre2_dist_prefix + "/src/pcre2_ucd.c", |
| 29 | libpcre2_dist_prefix + "/src/pcre2_valid_utf.c", |
| 30 | libpcre2_dist_prefix + "/src/pcre2_xclass.c", |
| 31 | libpcre2_dist_prefix + "/src/pcre2_chartables.c", |
| 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", |
| 40 | ], |
Chih-Hung Hsieh | 48eadb4 | 2017-08-09 15:30:45 -0700 | [diff] [blame] | 41 | tidy_checks: [ |
| 42 | "-google-build-using-namespace", |
| 43 | "-google-global-names-in-headers", |
| 44 | ], |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 45 | local_include_dirs: [ |
| 46 | "include_internal", |
| 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 | cc36a0a | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 61 | vndk: { |
| 62 | enabled: true, |
| 63 | }, |
Jooyung Han | 6cfbb07 | 2019-01-18 15:43:40 +0900 | [diff] [blame] | 64 | double_loadable: true, |
Jiyong Park | 3bd078b | 2018-04-27 21:48:16 +0900 | [diff] [blame] | 65 | recovery_available: true, |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 66 | srcs: libpcre2_src_files, |
Dan Willemsen | 38109c9 | 2017-03-15 14:38:37 -0700 | [diff] [blame] | 67 | target: { |
| 68 | linux_bionic: { |
| 69 | enabled: true, |
| 70 | }, |
| 71 | }, |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 72 | } |
| 73 | |
Elliott Hughes | f22fc77 | 2018-04-23 16:54:02 -0700 | [diff] [blame] | 74 | |
| 75 | // |
| 76 | // Google's C++ wrapper. |
| 77 | // |
Dan Willemsen | 6692614 | 2016-07-19 19:34:54 -0700 | [diff] [blame] | 78 | |
Janis Danisevskis | 4c7d77a | 2016-04-01 12:25:25 +0100 | [diff] [blame] | 79 | cc_library_shared { |
| 80 | name: "libpcrecpp", |
Chih-Hung Hsieh | 6594554 | 2017-09-28 15:39:31 -0700 | [diff] [blame] | 81 | cflags: [ |
| 82 | "-Wall", |
| 83 | "-Werror", |
| 84 | "-Wno-unused-parameter", |
| 85 | "-Wno-unused-variable", |
| 86 | ], |
Chih-Hung Hsieh | 48eadb4 | 2017-08-09 15:30:45 -0700 | [diff] [blame] | 87 | tidy_checks: [ |
| 88 | "-google-build-using-namespace", |
| 89 | "-google-global-names-in-headers", |
| 90 | ], |
Janis Danisevskis | 4c7d77a | 2016-04-01 12:25:25 +0100 | [diff] [blame] | 91 | local_include_dirs: ["pcrecpp/include"], |
| 92 | shared_libs: ["libpcre2"], |
| 93 | export_include_dirs: [ |
| 94 | "pcrecpp/include", |
| 95 | "include", |
| 96 | ], |
| 97 | srcs: [ |
| 98 | "pcrecpp/pcrecpp.cc", |
| 99 | "pcrecpp/pcre_scanner.cc", |
| 100 | "pcrecpp/pcre_stringpiece.cc", |
| 101 | ], |
| 102 | } |