aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-03-16 18:55:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-03-16 18:55:28 +0000
commit385bc12a1941581f6d202b4cfda3e12e48054f6b (patch)
tree7693301d9e007cda32e758ab193367016c1af4be
parented8c307213d2a88e4e256bdb3698f082e9adc7a2 (diff)
parent18d1e9ca582db6db2fcf64876b0d59e47a026adc (diff)
downloadgtest-385bc12a1941581f6d202b4cfda3e12e48054f6b.tar.gz
Merge "Add libgtest_prod."
-rw-r--r--src/Android.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Android.mk b/src/Android.mk
index 8763244..575f229 100644
--- a/src/Android.mk
+++ b/src/Android.mk
@@ -150,3 +150,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)