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 12LOCAL_CFLAGS += -Wno-gnu-designator 13 14ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 30; echo $$?), 0) 15LOCAL_SRC_FILES := gralloc_30.cpp 16else 17LOCAL_SRC_FILES := gralloc_old.cpp 18endif 19 20ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 21LOCAL_SHARED_LIBRARIES += libdl 22 23ifeq (true,$(BUILD_EMULATOR_VULKAN)) 24LOCAL_CFLAGS += -DVIRTIO_GPU 25LOCAL_C_INCLUDES += external/libdrm external/minigbm/cros_gralloc 26LOCAL_SHARED_LIBRARIES += libdrm 27endif 28 29endif 30 31$$(call emugl-end-module) 32endef # define gralloc_recipe 33 34$(eval $(call gralloc_recipe,goldfish)) 35$(eval $(call gralloc_recipe,ranchu)) 36ifeq ($(TARGET_BOARD_PLATFORM),brilloemulator) 37$(eval $(call gralloc_recipe,$(TARGET_BOARD_PLATFORM))) 38endif # defined(BRILLO) 39 40endif # BUILD_EMULATOR_OPENGL_DRIVER != false 41