aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-03-04 16:08:58 -0800
committerDan Albert <danalbert@google.com>2016-03-07 12:16:18 -0800
commit18d1e9ca582db6db2fcf64876b0d59e47a026adc (patch)
tree7693301d9e007cda32e758ab193367016c1af4be
parent0374ec7859e7efea8e58353fd1b0a7e5293119ea (diff)
downloadgtest-18d1e9ca582db6db2fcf64876b0d59e47a026adc.tar.gz
Add libgtest_prod.
This is a header only library that can be used by modules that need FRIEND_TEST. If used in a module's public headers, use LOCAL_WHOLE_STATIC_LIBRARIES so that the module's users will also have the headers available. Bug: http://b/16574165 Change-Id: I09a87e44350f437acb74cb4298aa480bcc9748b7
-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)