OSDN Git Service

DO NOT MERGE ANYWHERE goldfish-opengl: adjust to the refactored qemu_pipe
[android-x86/device-generic-goldfish-opengl.git] / Android.mk
index dad17d9..95b70ad 100644 (file)
@@ -24,6 +24,18 @@ EMUGL_COMMON_INCLUDES := $(EMUGL_PATH)/host/include/libOpenglRender $(EMUGL_PATH
 #
 EMUGL_COMMON_CFLAGS := -DWITH_GLES2 -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 18 && echo PreJellyBeanMr2),PreJellyBeanMr2)
+    ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
+        EMUGL_COMMON_CFLAGS += -DHAVE_ARM_TLS_REGISTER
+    endif
+endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 16 && echo PreJellyBean),PreJellyBean)
+    EMUGL_COMMON_CFLAGS += -DALOG_ASSERT=LOG_ASSERT
+    EMUGL_COMMON_CFLAGS += -DALOGE=LOGE
+    EMUGL_COMMON_CFLAGS += -DALOGW=LOGW
+    EMUGL_COMMON_CFLAGS += -DALOGD=LOGD
+endif
+
 # Uncomment the following line if you want to enable debug traces
 # in the GLES emulation libraries.
 # EMUGL_COMMON_CFLAGS += -DEMUGL_DEBUG=1