aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/googletest.mk
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-11-27 16:54:04 +0100
committerDavid 'Digit' Turner <digit@google.com>2014-11-28 10:58:38 +0100
commit8c107b481a05f11f32fca6a5797fda637860ad4c (patch)
tree6d0d6b832cda0b874085784576c11b2bf965c946 /emulator/opengl/googletest.mk
parenta01dd53f93a56259ab600266b67ee387e1795629 (diff)
downloadsdk-8c107b481a05f11f32fca6a5797fda637860ad4c.zip
sdk-8c107b481a05f11f32fca6a5797fda637860ad4c.tar.gz
sdk-8c107b481a05f11f32fca6a5797fda637860ad4c.tar.bz2
emulator/opengl/emugen: Fix type parsing.
This patch fixes the parsing of type declarations and parameter declarations to: - Properly recognize complicated types like 'const int* const*' which previously required omitting spaces (e.g. 'const int*const*') to be recognized by the parser. - Normalize the type strings (e.g. 'const char **items' -> 'const char** items') - Add a unit test program (emugen_unittests) to check emugen's internal functions. For now this only applies to the new functions introduced in the new header Parser.h + Update emugen test suite accordingly. Change-Id: Ib1b6bcbae97e1ee7d8b272843dfb5926d2d98fd2
Diffstat (limited to 'emulator/opengl/googletest.mk')
-rw-r--r--emulator/opengl/googletest.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/emulator/opengl/googletest.mk b/emulator/opengl/googletest.mk
index 7531394..12760b2 100644
--- a/emulator/opengl/googletest.mk
+++ b/emulator/opengl/googletest.mk
@@ -39,3 +39,12 @@ $(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))
+LOCAL_HOST_BUILD := true
+$(call emugl-end-module)