1LOCAL_PATH := $(call my-dir) 2 3$(call emugl-begin-shared-library,libvulkan_enc) 4$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 5$(call emugl-import,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX) lib_renderControl_enc) 6ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 7$(call emugl-import,libandroidemu) 8$(call emugl-import,libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)) 9else 10$(call emugl-export,SHARED_LIBRARIES,libandroidemu) 11$(call emugl-export,STATIC_LIBRARIES,libGoldfishAddressSpace) 12endif 13 14# Vulkan include dir 15ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 16LOCAL_C_INCLUDES += \ 17 $(LOCAL_PATH) \ 18 $(HOST_EMUGL_PATH)/host/include \ 19 $(HOST_EMUGL_PATH)/host/include/vulkan 20endif 21 22ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 23LOCAL_C_INCLUDES += \ 24 $(LOCAL_PATH) \ 25 $(LOCAL_PATH)/../vulkan_enc \ 26 external/libdrm \ 27 external/minigbm/cros_gralloc \ 28 29LOCAL_HEADER_LIBRARIES += \ 30 hwvulkan_headers \ 31 vulkan_headers \ 32 33LOCAL_SHARED_LIBRARIES += libdrm 34 35endif 36 37LOCAL_CFLAGS += \ 38 -DLOG_TAG=\"goldfish_vulkan\" \ 39 -DVK_ANDROID_native_buffer \ 40 -DVK_EXT_device_memory_report \ 41 -DVK_GOOGLE_gfxstream \ 42 -Wno-missing-field-initializers \ 43 -Werror \ 44 -fstrict-aliasing \ 45 -DVK_USE_PLATFORM_ANDROID_KHR \ 46 -DVK_NO_PROTOTYPES \ 47 -DVIRTIO_GPU 48 49LOCAL_SRC_FILES := AndroidHardwareBuffer.cpp \ 50 CommandBufferStagingStream.cpp \ 51 DescriptorSetVirtualization.cpp \ 52 HostVisibleMemoryVirtualization.cpp \ 53 Resources.cpp \ 54 Validation.cpp \ 55 VulkanStreamGuest.cpp \ 56 VulkanHandleMapping.cpp \ 57 ResourceTracker.cpp \ 58 VkEncoder.cpp \ 59 goldfish_vk_extension_structs_guest.cpp \ 60 goldfish_vk_marshaling_guest.cpp \ 61 goldfish_vk_reserved_marshaling_guest.cpp \ 62 goldfish_vk_deepcopy_guest.cpp \ 63 goldfish_vk_counting_guest.cpp \ 64 goldfish_vk_handlemap_guest.cpp \ 65 goldfish_vk_transform_guest.cpp \ 66 func_table.cpp \ 67 68ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 69LOCAL_CFLAGS += -D__ANDROID_API__=28 70$(call emugl-export,SHARED_LIBRARIES,libgui) 71else 72$(call emugl-export,SHARED_LIBRARIES,libsync libnativewindow) 73LOCAL_STATIC_LIBRARIES += libarect 74endif 75 76$(call emugl-end-module) 77 78