blob: a74f6b02adb4e7aeb68293f239092741ab008eca [file] [log] [blame]
ifneq (false,$(BUILD_EMULATOR_OPENGL_DRIVER))
LOCAL_PATH := $(call my-dir)
define gralloc_recipe
$$(call emugl-begin-shared-library,gralloc.$(1))
$$(call emugl-import,libGLESv1_enc lib_renderControl_enc libOpenglSystemCommon)
$$(call emugl-set-shared-library-subpath,hw)
LOCAL_CFLAGS += -DLOG_TAG=\"gralloc_$(1)\"
LOCAL_CFLAGS += -Wno-missing-field-initializers
LOCAL_SRC_FILES := gralloc.cpp
# Need to access the special OPENGL TLS Slot
LOCAL_C_INCLUDES += bionic/libc/private
LOCAL_SHARED_LIBRARIES += libdl
$$(call emugl-end-module)
endef # define gralloc_recipe
$(eval $(call gralloc_recipe,goldfish))
$(eval $(call gralloc_recipe,ranchu))
endif # BUILD_EMULATOR_OPENGL_DRIVER != false