* Replace an stlport static assert with a C++11 static_assert. * Move some libraries that were being built with the NDK but statically included into platform code off the NDK. * Rebuild the obfuscated binaries to use the new STL. * Remove MIPS support temporarily due to an inability to generate obfuscated binaries for it. (To be fixed in b/19482469.) Bug: 15193147 Change-Id: Icc166583b0c6af68550baf17ab8c33076a1179d3
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
# Copyright 2014 Google Inc. All Rights Reserved.
|
|
|
|
# gMock builds 2 libraries: libgmock and libgmock_main. libgmock contains most
|
|
# of the code and libgmock_main just provides a common main to run the test.
|
|
# (i.e. If you link against libgmock_main you shouldn't provide a main() entry
|
|
# point. If you link against libgmock_main, do not also link against
|
|
# libgtest_main, as libgmock_main is a superset of libgtest_main, and they will
|
|
# conflict in subtle ways.)
|
|
#
|
|
# We build these 2 libraries for the target device only.
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
libgmock_target_includes := \
|
|
$(LOCAL_PATH)/.. \
|
|
$(LOCAL_PATH)/../include \
|
|
$(TOP)/external/gtest/include \
|
|
|
|
libgmock_host_includes := \
|
|
$(LOCAL_PATH)/.. \
|
|
$(LOCAL_PATH)/../include \
|
|
$(TOP)/external/gtest/include \
|
|
|
|
libgmock_cflags := \
|
|
-Wno-missing-field-initializers \
|
|
|
|
#######################################################################
|
|
# gmock lib target
|
|
include $(CLEAR_VARS)
|
|
LOCAL_CPP_EXTENSION := .cc
|
|
LOCAL_SRC_FILES := gmock-all.cc
|
|
LOCAL_C_INCLUDES := $(libgmock_target_includes)
|
|
LOCAL_CFLAGS += $(libgmock_cflags)
|
|
LOCAL_MODULE := libgmock
|
|
LOCAL_MODULE_TARGET_ARCH := arm x86
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
#######################################################################
|
|
# gmock_main lib target
|
|
include $(CLEAR_VARS)
|
|
LOCAL_CPP_EXTENSION := .cc
|
|
LOCAL_SRC_FILES := gmock_main.cc
|
|
LOCAL_C_INCLUDES := $(libgmock_target_includes)
|
|
LOCAL_CFLAGS += $(libgmock_cflags)
|
|
LOCAL_MODULE := libgmock_main
|
|
LOCAL_MODULE_TARGET_ARCH := arm x86
|
|
include $(BUILD_STATIC_LIBRARY)
|