Home | History | Annotate | Download | only in vulkan_enc
      1 
      2 # Autogenerated makefile
      3 # android/android-emugl/host/libs/libOpenglRender/vulkan-registry/xml/genvk.py -registry android/android-emugl/host/libs/libOpenglRender/vulkan-registry/xml/vk.xml cereal -o android/android-emugl/host/libs/libOpenglRender/vulkan/cereal
      4 # Please do not modify directly;
      5 # re-run android/scripts/generate-vulkan-sources.sh,
      6 # or directly from Python by defining:
      7 # VULKAN_REGISTRY_XML_DIR : Directory containing genvk.py and vk.xml
      8 # CEREAL_OUTPUT_DIR: Where to put the generated sources.
      9 # python3 $VULKAN_REGISTRY_XML_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o $CEREAL_OUTPUT_DIR
     10 
     11 LOCAL_PATH := $(call my-dir)
     12 
     13 $(call emugl-begin-shared-library,libvulkan_enc)
     14 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
     15 $(call emugl-import,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX) libandroidemu)
     16 
     17 # Vulkan include dir
     18 ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
     19 LOCAL_C_INCLUDES += \
     20     $(LOCAL_PATH) \
     21     $(HOST_EMUGL_PATH)/host/include \
     22     $(HOST_EMUGL_PATH)/host/include/vulkan
     23 endif
     24 
     25 ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
     26 LOCAL_C_INCLUDES += \
     27     $(LOCAL_PATH) \
     28     $(LOCAL_PATH)/../vulkan_enc \
     29 
     30 LOCAL_HEADER_LIBRARIES += \
     31     hwvulkan_headers \
     32     vulkan_headers \
     33 
     34 endif
     35 
     36 LOCAL_CFLAGS += \
     37     -DLOG_TAG=\"goldfish_vulkan\" \
     38     -DVK_ANDROID_native_buffer \
     39     -DVK_GOOGLE_address_space \
     40     -Wno-missing-field-initializers \
     41     -Werror \
     42     -fstrict-aliasing \
     43     -DVK_USE_PLATFORM_ANDROID_KHR \
     44     -DVK_NO_PROTOTYPES \
     45 
     46 LOCAL_SRC_FILES := AndroidHardwareBuffer.cpp \
     47     HostVisibleMemoryVirtualization.cpp \
     48     Resources.cpp \
     49     Validation.cpp \
     50     VulkanStreamGuest.cpp \
     51     VulkanHandleMapping.cpp \
     52     ResourceTracker.cpp \
     53     VkEncoder.cpp \
     54 goldfish_vk_extension_structs_guest.cpp \
     55 goldfish_vk_marshaling_guest.cpp \
     56 goldfish_vk_deepcopy_guest.cpp \
     57 goldfish_vk_handlemap_guest.cpp \
     58 goldfish_vk_transform_guest.cpp \
     59 
     60 
     61 ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
     62 LOCAL_CFLAGS += -D__ANDROID_API__=28
     63 $(call emugl-export,SHARED_LIBRARIES,libgui)
     64 else
     65 $(call emugl-export,SHARED_LIBRARIES,libsync libnativewindow)
     66 LOCAL_STATIC_LIBRARIES += libarect
     67 endif
     68 
     69 $(call emugl-end-module)
     70 
     71