perfetto: Make gn check succeed when building with chrome
gn check currently fails due to missing include_dirs for gmock headers.
This adds the missing dir as a new config.
Also fixes another gn check problem with the gtest_prod.h by exluding
it from gn checks in a central proxying header (similar to the way
chromium's base/gtest_prod_util.h deals with this issue).
Change-Id: I334d64f0dbf24958a10708dfb202dc43dcc1b939
diff --git a/Android.bp b/Android.bp
index 1db7990..0ab0b69 100644
--- a/Android.bp
+++ b/Android.bp
@@ -45,6 +45,9 @@
"libprocinfo",
"libunwindstack",
],
+ static_libs: [
+ "libgtest_prod",
+ ],
init_rc: [
"heapprofd.rc",
],
@@ -81,6 +84,9 @@
"libprocinfo",
"libunwindstack",
],
+ static_libs: [
+ "libgtest_prod",
+ ],
defaults: [
"perfetto_defaults",
],
@@ -4463,6 +4469,9 @@
"libprotobuf-cpp-full",
"libprotobuf-cpp-lite",
],
+ static_libs: [
+ "libgtest_prod",
+ ],
generated_headers: [
"perfetto_protos_perfetto_common_lite_gen_headers",
"perfetto_protos_perfetto_config_lite_gen_headers",