aboutsummaryrefslogtreecommitdiff
path: root/src/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/Android.mk')
-rw-r--r--src/Android.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Android.mk b/src/Android.mk
index e2b4e79..7d502c3 100644
--- a/src/Android.mk
+++ b/src/Android.mk
@@ -226,3 +226,17 @@ LOCAL_SANITIZE := never
include $(BUILD_STATIC_LIBRARY)
endif
+
+# Header only libraries for modules that need gtest_prod.h. Libraries exporting
+# public headers that use gtest_prod.h should pull this in with
+# LOCAL_WHOLE_STATIC_LIBRARIES so that their users will also get the include
+# paths.
+include $(CLEAR_VARS)
+LOCAL_MODULE := libgtest_prod
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(libgtest_export_include_dirs)
+include $(BUILD_STATIC_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libgtest_prod
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(libgtest_export_include_dirs)
+include $(BUILD_HOST_STATIC_LIBRARY)