Switch to PCRE grep.
Bug: http://b/77150016
Test: boots, manual testing of grep
Change-Id: I7d8bd81547f6608bfcbbc0a0f787dab5b575cc2e
diff --git a/Android.bp b/Android.bp
index 0d95274..ccf9916 100644
--- a/Android.bp
+++ b/Android.bp
@@ -47,7 +47,9 @@
export_include_dirs: ["include"],
}
-// === libpcre targets ===
+//
+// libpcre2
+//
cc_library {
name: "libpcre2",
@@ -65,7 +67,32 @@
},
}
-// === libpcrecpp targets ===
+//
+// PCRE grep
+//
+
+cc_defaults {
+ name: "grep_common",
+ defaults: ["pcre_defaults"],
+ srcs: [libpcre2_dist_prefix + "/src/pcre2grep.c"],
+ shared_libs: ["libpcre2"],
+}
+
+cc_binary {
+ name: "grep",
+ defaults: ["grep_common"],
+}
+
+cc_binary {
+ name: "grep_vendor",
+ defaults: ["grep_common"],
+ stem: "grep",
+ vendor: true,
+}
+
+//
+// Google's C++ wrapper.
+//
cc_library_shared {
name: "libpcrecpp",