1ifneq (false,$(BUILD_EMULATOR_OPENGL_DRIVER)) 2 3LOCAL_PATH := $(call my-dir) 4 5define gralloc_recipe 6$$(call emugl-begin-shared-library,gralloc.$(1)) 7$$(call emugl-import,libGLESv1_enc lib_renderControl_enc libOpenglSystemCommon) 8$$(call emugl-set-shared-library-subpath,hw) 9 10LOCAL_CFLAGS += -DLOG_TAG=\"gralloc_$(1)\" 11LOCAL_CFLAGS += -Wno-missing-field-initializers 12 13LOCAL_SRC_FILES := gralloc.cpp 14 15# Need to access the special OPENGL TLS Slot 16LOCAL_C_INCLUDES += bionic/libc/private 17LOCAL_SHARED_LIBRARIES += libdl 18 19$$(call emugl-end-module) 20endef # define gralloc_recipe 21 22$(eval $(call gralloc_recipe,goldfish)) 23$(eval $(call gralloc_recipe,ranchu)) 24ifeq ($(TARGET_BOARD_PLATFORM),brilloemulator) 25$(eval $(call gralloc_recipe,$(TARGET_BOARD_PLATFORM))) 26endif # defined(BRILLO) 27 28endif # BUILD_EMULATOR_OPENGL_DRIVER != false 29