1LOCAL_PATH := $(call my-dir) 2 3$(call emugl-begin-shared-library,libOpenglSystemCommon) 4$(call emugl-import,libGLESv1_enc libGLESv2_enc lib_renderControl_enc) 5 6ifeq (true,$(BUILD_EMULATOR_VULKAN)) 7$(call emugl-import,libvulkan_enc) 8endif 9 10LOCAL_SRC_FILES := \ 11 FormatConversions.cpp \ 12 HostConnection.cpp \ 13 QemuPipeStream.cpp \ 14 ProcessPipe.cpp \ 15 16LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-parameter 17 18ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 19 20LOCAL_SRC_FILES += \ 21 ThreadInfo_host.cpp \ 22 23else 24 25ifeq (true,$(BUILD_EMULATOR_VULKAN)) 26 27LOCAL_HEADER_LIBRARIES += vulkan_headers 28 29endif 30 31LOCAL_SRC_FILES += \ 32 ThreadInfo.cpp \ 33 34endif 35 36ifneq ($(filter virgl, $(BOARD_GPU_DRIVERS)),) 37LOCAL_CFLAGS += -DVIRTIO_GPU 38LOCAL_SRC_FILES += VirtioGpuStream.cpp 39LOCAL_C_INCLUDES += external/libdrm external/minigbm/cros_gralloc 40LOCAL_SHARED_LIBRARIES += libdrm 41endif 42 43ifdef IS_AT_LEAST_OPD1 44LOCAL_HEADER_LIBRARIES += libnativebase_headers 45 46$(call emugl-export,HEADER_LIBRARIES,libnativebase_headers) 47endif 48 49ifdef IS_AT_LEAST_OPD1 50LOCAL_HEADER_LIBRARIES += libhardware_headers 51$(call emugl-export,HEADER_LIBRARIES,libhardware_headers) 52endif 53 54$(call emugl-export,C_INCLUDES,$(LOCAL_PATH) bionic/libc/private) 55 56ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 57$(call emugl-export,SHARED_LIBRARIES,android-emu-shared) 58endif 59 60$(call emugl-end-module) 61