build bionic gtest runner on mac.

Change-Id: I39a7e94b6662256646dfaeb8f9ecd5c03cd5fbc6
This commit is contained in:
Yabin Cui
2015-09-01 15:06:39 -07:00
parent a992004c9e
commit 767fb1c5c6
2 changed files with 104 additions and 55 deletions

View File

@@ -236,7 +236,13 @@ build_type := target
build_target := STATIC_TEST_LIBRARY
include $(LOCAL_PATH)/Android.build.mk
build_type := host
ifeq ($(HOST_OS),$(filter $(HOST_OS),linux darwin))
saved_build_host := $(build_host)
build_host := true
include $(LOCAL_PATH)/Android.build.mk
build_host := $(saved_build_host)
endif
# -----------------------------------------------------------------------------
# Library of bionic customized gtest main function, with normal gtest output format,