summaryrefslogtreecommitdiffstats
path: root/core/host_native_test.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-07-20 11:08:47 -0700
committerYing Wang <wangying@google.com>2010-07-21 11:22:52 -0700
commit4c681745e622cc2887c114d963b62869a9ef93af (patch)
tree9408f9311c99fa8e3116083ceb7f8ba173177a49 /core/host_native_test.mk
parentc06243d1953c6e62238066c60486db70aa3a3b30 (diff)
downloadbuild-4c681745e622cc2887c114d963b62869a9ef93af.zip
build-4c681745e622cc2887c114d963b62869a9ef93af.tar.gz
build-4c681745e622cc2887c114d963b62869a9ef93af.tar.bz2
Flags common for native tests
With the CL, "include $(BUILD_NATIVE_TEST)" to build native test; "include $(BUILD_HOST_NATIVE_TEST)" to build a host native test. Change-Id: Icdbbcf906cd4c5c35e65962897490052cd051102
Diffstat (limited to 'core/host_native_test.mk')
-rw-r--r--core/host_native_test.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/host_native_test.mk b/core/host_native_test.mk
new file mode 100644
index 0000000..2a77f1e
--- /dev/null
+++ b/core/host_native_test.mk
@@ -0,0 +1,14 @@
+################################################
+## A thin wrapper around BUILD_HOST_EXECUTABLE
+## Common flags for host native tests are added.
+################################################
+
+LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
+LOCAL_C_INCLUDES += \
+ bionic/libstdc++/include \
+ external/gtest/include \
+ external/astl/include
+LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host libastl_host
+LOCAL_SHARED_LIBRARIES +=
+
+include $(BUILD_HOST_EXECUTABLE)