aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-07-22 13:19:06 -0700
committerFelipe Leme <felipeal@google.com>2016-07-22 22:10:26 +0000
commita78d46728dda2809b1951be54a7efdd31e09dc17 (patch)
tree7fb123312cd63f452b042265096d1b5cf1b63bb3
parent88c2bb4c2d46745d1dbe6fa2f5c69f816a78184e (diff)
downloadgmock-nougat-mr1-release.tar.gz
Support gmock for Windows.android-cts_7.1_r1android-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r29android-cts-7.1_r28android-cts-7.1_r27android-cts-7.1_r26android-cts-7.1_r25android-cts-7.1_r24android-cts-7.1_r23android-cts-7.1_r22android-cts-7.1_r21android-cts-7.1_r20android-cts-7.1_r2android-cts-7.1_r19android-cts-7.1_r18android-cts-7.1_r17android-cts-7.1_r16android-cts-7.1_r15android-cts-7.1_r14android-cts-7.1_r13android-cts-7.1_r12android-cts-7.1_r11android-cts-7.1_r10android-cts-7.1_r1android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1android-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r61android-7.1.1_r60android-7.1.1_r6android-7.1.1_r59android-7.1.1_r58android-7.1.1_r57android-7.1.1_r56android-7.1.1_r55android-7.1.1_r54android-7.1.1_r53android-7.1.1_r52android-7.1.1_r51android-7.1.1_r50android-7.1.1_r49android-7.1.1_r48android-7.1.1_r47android-7.1.1_r46android-7.1.1_r45android-7.1.1_r44android-7.1.1_r43android-7.1.1_r42android-7.1.1_r41android-7.1.1_r40android-7.1.1_r4android-7.1.1_r39android-7.1.1_r38android-7.1.1_r35android-7.1.1_r33android-7.1.1_r32android-7.1.1_r31android-7.1.1_r3android-7.1.1_r28android-7.1.1_r27android-7.1.1_r26android-7.1.1_r25android-7.1.1_r24android-7.1.1_r23android-7.1.1_r22android-7.1.1_r21android-7.1.1_r20android-7.1.1_r2android-7.1.1_r17android-7.1.1_r16android-7.1.1_r15android-7.1.1_r14android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1android-7.1.0_r7android-7.1.0_r6android-7.1.0_r5android-7.1.0_r4android-7.1.0_r3android-7.1.0_r2android-7.1.0_r1nougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-releasenougat-mr2-pixel-releasenougat-mr2-devnougat-mr1.8-releasenougat-mr1.7-releasenougat-mr1.6-releasenougat-mr1.5-releasenougat-mr1.4-releasenougat-mr1.3-releasenougat-mr1.2-releasenougat-mr1.1-releasenougat-mr1-volantis-releasenougat-mr1-security-releasenougat-mr1-releasenougat-mr1-flounder-releasenougat-mr1-devnougat-mr1-cts-releasenougat-dr1-release
*** cherrypicked from AOSP (commit ee59f1b2ac12d87b2e65860267a4672ebf7ef7b4) *** Bug: 30268737 Bug: 30100363 Change-Id: Ie9232096d9f9c9cac9a2e7e192e5bf306d182876
-rw-r--r--src/Android.mk10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Android.mk b/src/Android.mk
index 5469970..9fa1294 100644
--- a/src/Android.mk
+++ b/src/Android.mk
@@ -18,10 +18,6 @@
# contains most of the code (assertions...) and libgmock_main just
# provide a common main to run the test (ie if you link against
# libgmock_main you won't/should not provide a main() entry point.
-#
-# We build these 2 libraries for the target device and for the host if
-# it is running linux and using ASTL.
-#
# TODO: The targets below have some redundancy. Check if we cannot
# condense them using function(s) for the common code.
@@ -95,15 +91,15 @@ LOCAL_MODULE := libgmock_host
LOCAL_MULTILIB := both
LOCAL_SANITIZE := never
LOCAL_RTTI_FLAG := -frtti
+LOCAL_MODULE_HOST_OS := linux darwin windows
include $(BUILD_HOST_STATIC_LIBRARY)
#######################################################################
-# gmock_main lib target
+# gmock_main lib host
include $(CLEAR_VARS)
-LOCAL_CLANG := true
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := gmock_main.cc
LOCAL_C_INCLUDES := $(libgmock_host_includes)
@@ -112,6 +108,7 @@ LOCAL_C_FLAGS += $(libgmock_cflags)
LOCAL_MODULE := libgmock_main_host
LOCAL_MULTILIB := both
LOCAL_SANITIZE := never
+LOCAL_MODULE_HOST_OS := linux darwin windows
include $(BUILD_HOST_STATIC_LIBRARY)
@@ -120,7 +117,6 @@ include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
-LOCAL_CLANG := true
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := gmock-all.cc
LOCAL_C_INCLUDES := $(libgmock_target_includes)