blob: 4f71cbbe71912042e1235016cbac4a428b1d593a [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
$(call emugl-begin-shared-library,vulkan.ranchu)
$(call emugl-set-shared-library-subpath,hw)
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
$(call emugl-import,libOpenglSystemCommon libvulkan_enc lib_renderControl_enc)
$(call emugl-import,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX))
# Vulkan include dir
ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
LOCAL_C_INCLUDES += $(GFXSTREAM_PROTOCOLS_PATH)/include/vulkan/include
endif
ifneq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
# Only import androidemu if not building for host.
# if building for host, we already import android-emu.
$(call emugl-export,SHARED_LIBRARIES,libandroidemu)
LOCAL_HEADER_LIBRARIES += \
hwvulkan_headers \
gfxstream_vulkan_headers \
endif
LOCAL_CFLAGS += \
-DLOG_TAG=\"goldfish_vulkan\" \
-Wno-missing-field-initializers \
-fvisibility=hidden \
-fstrict-aliasing \
-DVK_USE_PLATFORM_ANDROID_KHR \
-DVK_NO_PROTOTYPES \
-Wno-unused-parameter \
-Wno-unused-function
LOCAL_SRC_FILES := \
goldfish_vulkan.cpp \
$(call emugl-end-module)