X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fexternal%2Fandroid-emugl%2Fgoogletest.mk;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fexternal%2Fandroid-emugl%2Fgoogletest.mk;h=9d8e5c046b67d9b9f17a49f3a8baae04c49a390a;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/external/android-emugl/googletest.mk b/src/type3_AndroidCloud/anbox-master/external/android-emugl/googletest.mk new file mode 100644 index 0000000..9d8e5c0 --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/external/android-emugl/googletest.mk @@ -0,0 +1,37 @@ +# This contains common definitions used to define a host module +# to link GoogleTest with the EmuGL test programs. +# +# This is used instead of including external/gtest/Android.mk to +# be able to build both the 32-bit and 64-bit binaries while +# building a 32-bit only SDK (sdk-eng, sdk_x86-eng, sdk_mips-eng). + + +LOCAL_PATH := $(EMULATOR_GTEST_SOURCES_DIR) + +common_SRC_FILES := \ + src/gtest-all.cc \ + src/gtest_main.cc + +common_CFLAGS := -O0 + +ifneq (windows,$(BUILD_TARGET_OS)) + common_LDLIBS += -lpthread +endif + +$(call emugl-begin-host-static-library,libemugl_gtest) +LOCAL_SRC_FILES := $(common_SRC_FILES) +LOCAL_CFLAGS += $(common_CFLAGS) +LOCAL_CPP_EXTENSION := .cc +$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include) +$(call emugl-export,LDLIBS,$(common_LDLIBS)) +$(call emugl-end-module) + +$(call emugl-begin-host-static-library,libemugl_gtest_host) +LOCAL_SRC_FILES := $(common_SRC_FILES) +LOCAL_CFLAGS += $(common_CFLAGS) +LOCAL_C_INCLUDES += $(LOCAL_PATH)/include +LOCAL_CPP_EXTENSION := .cc +$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include) +$(call emugl-export,LDLIBS,$(common_LDLIBS) -lpthread) +LOCAL_HOST_BUILD := true +$(call emugl-end-module)