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 ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 16 # Need to access the special OPENGL TLS Slot 17 LOCAL_C_INCLUDES += bionic/libc/private 18 LOCAL_SHARED_LIBRARIES += libdl 19 endif 20 21 $$(call emugl-end-module) 22 endef # define gralloc_recipe 23 24 $(eval $(call gralloc_recipe,goldfish)) 25 $(eval $(call gralloc_recipe,ranchu)) 26 ifeq ($(TARGET_BOARD_PLATFORM),brilloemulator) 27 $(eval $(call gralloc_recipe,$(TARGET_BOARD_PLATFORM))) 28 endif # defined(BRILLO) 29 30 endif # BUILD_EMULATOR_OPENGL_DRIVER != false 31