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