aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/googletest.mk
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-02-27 19:45:42 +0100
committerDavid 'Digit' Turner <digit@google.com>2014-03-06 00:32:11 +0100
commit32851ad05bd779ed04d5992ec241d54238c12fbc (patch)
tree4e5d810cfb9605cde4a158adbe129dbe739d9543 /emulator/opengl/googletest.mk
parent7693d297d269b2d294ce4ce1c854991668eeb8eb (diff)
downloadsdk-32851ad05bd779ed04d5992ec241d54238c12fbc.zip
sdk-32851ad05bd779ed04d5992ec241d54238c12fbc.tar.gz
sdk-32851ad05bd779ed04d5992ec241d54238c12fbc.tar.bz2
emulator/opengl: Build 64-bit unit tests.
This is done by building a special version of GoogleTest specially for the GPU emulation libraries. Change-Id: Ie27c75d9a85836f392375e110a5152031af586bc
Diffstat (limited to 'emulator/opengl/googletest.mk')
-rw-r--r--emulator/opengl/googletest.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/emulator/opengl/googletest.mk b/emulator/opengl/googletest.mk
new file mode 100644
index 0000000..9719138
--- /dev/null
+++ b/emulator/opengl/googletest.mk
@@ -0,0 +1,30 @@
+# 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 := external/gtest
+
+$(call emugl-begin-host-static-library,libemugl_gtest)
+LOCAL_SRC_FILES := \
+ src/gtest-all.cc \
+ src/gtest_main.cc
+LOCAL_CFLAGS += -O0
+LOCAL_CPP_EXTENSION := .cc
+$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include)
+$(call emugl-export,LDLIBS,-lpthread)
+$(call emugl-end-module)
+
+$(call emugl-begin-host-static-library,lib64emugl_gtest)
+LOCAL_SRC_FILES := \
+ src/gtest-all.cc \
+ src/gtest_main.cc
+LOCAL_CFLAGS += -O0
+LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
+LOCAL_CPP_EXTENSION := .cc
+$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include)
+$(call emugl-export,CFLAGS,-m64)
+$(call emugl-export,LDLIBS,-lpthread -m64)
+$(call emugl-end-module)