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_GOOGLE_address_space \ 41 -Wno-missing-field-initializers \ 42 -Werror \ 43 -fstrict-aliasing \ 44 -DVK_USE_PLATFORM_ANDROID_KHR \ 45 -DVK_NO_PROTOTYPES \ 46 47LOCAL_SRC_FILES := AndroidHardwareBuffer.cpp \ 48 HostVisibleMemoryVirtualization.cpp \ 49 Resources.cpp \ 50 Validation.cpp \ 51 VulkanStreamGuest.cpp \ 52 VulkanHandleMapping.cpp \ 53 ResourceTracker.cpp \ 54 VkEncoder.cpp \ 55 goldfish_vk_extension_structs_guest.cpp \ 56 goldfish_vk_marshaling_guest.cpp \ 57 goldfish_vk_deepcopy_guest.cpp \ 58 goldfish_vk_handlemap_guest.cpp \ 59 goldfish_vk_transform_guest.cpp \ 60 61ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 62LOCAL_CFLAGS += -D__ANDROID_API__=28 63$(call emugl-export,SHARED_LIBRARIES,libgui) 64else 65$(call emugl-export,SHARED_LIBRARIES,libsync libnativewindow) 66LOCAL_STATIC_LIBRARIES += libarect 67endif 68 69$(call emugl-end-module) 70 71