9d8e5c046b67d9b9f17a49f3a8baae04c49a390a
[iec.git] / src / type3_AndroidCloud / anbox-master / external / android-emugl / googletest.mk
1 # This contains common definitions used to define a host module
2 # to link GoogleTest with the EmuGL test programs.
3 #
4 # This is used instead of including external/gtest/Android.mk to
5 # be able to build both the 32-bit and 64-bit binaries while
6 # building a 32-bit only SDK (sdk-eng, sdk_x86-eng, sdk_mips-eng).
7
8
9 LOCAL_PATH := $(EMULATOR_GTEST_SOURCES_DIR)
10
11 common_SRC_FILES := \
12     src/gtest-all.cc \
13     src/gtest_main.cc
14
15 common_CFLAGS := -O0
16
17 ifneq (windows,$(BUILD_TARGET_OS))
18     common_LDLIBS += -lpthread
19 endif
20
21 $(call emugl-begin-host-static-library,libemugl_gtest)
22 LOCAL_SRC_FILES := $(common_SRC_FILES)
23 LOCAL_CFLAGS += $(common_CFLAGS)
24 LOCAL_CPP_EXTENSION := .cc
25 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include)
26 $(call emugl-export,LDLIBS,$(common_LDLIBS))
27 $(call emugl-end-module)
28
29 $(call emugl-begin-host-static-library,libemugl_gtest_host)
30 LOCAL_SRC_FILES := $(common_SRC_FILES)
31 LOCAL_CFLAGS += $(common_CFLAGS)
32 LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
33 LOCAL_CPP_EXTENSION := .cc
34 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include)
35 $(call emugl-export,LDLIBS,$(common_LDLIBS) -lpthread)
36 LOCAL_HOST_BUILD := true
37 $(call emugl-end-module)