blob: 088b1c51ea1e0da979af8e3d15aa54f4d2549794 [file] [log] [blame]
Dan Willemsen66926142016-07-19 19:34:54 -07001
2cc_defaults {
3 name: "pcre_defaults",
4 cflags: [
5 "-DHAVE_CONFIG_H",
6 "-Wno-self-assign",
7 "-Wno-unused-parameter",
8 ],
9 local_include_dirs: ["dist"],
10 export_include_dirs: ["."],
11}
12
13// === libpcre targets ===
14
15cc_library {
16 name: "libpcre",
17 defaults: ["pcre_defaults"],
18 host_supported: true,
19 srcs: [
20 "pcre_chartables.c",
21 "dist/pcre_byte_order.c",
22 "dist/pcre_compile.c",
23 "dist/pcre_config.c",
24 "dist/pcre_dfa_exec.c",
25 "dist/pcre_exec.c",
26 "dist/pcre_fullinfo.c",
27 "dist/pcre_get.c",
28 "dist/pcre_globals.c",
29 "dist/pcre_jit_compile.c",
30 "dist/pcre_maketables.c",
31 "dist/pcre_newline.c",
32 "dist/pcre_ord2utf8.c",
33 "dist/pcre_refcount.c",
34 "dist/pcre_string_utils.c",
35 "dist/pcre_study.c",
36 "dist/pcre_tables.c",
37 "dist/pcre_ucd.c",
38 "dist/pcre_valid_utf8.c",
39 "dist/pcre_version.c",
40 "dist/pcre_xclass.c",
41 ],
42}
43
44// === libpcrecpp targets ===
45
46cc_library_shared {
47 name: "libpcrecpp",
48 defaults: ["pcre_defaults"],
49
50 srcs: [
51 "dist/pcrecpp.cc",
52 "dist/pcre_scanner.cc",
53 "dist/pcre_stringpiece.cc",
54 ],
55 shared_libs: ["libpcre"],
56}