| LOCAL_PATH := $(call my-dir) |
| |
| $(call emugl-begin-shared-library,libOpenglSystemCommon) |
| $(call emugl-import,libGLESv1_enc libGLESv2_enc lib_renderControl_enc) |
| |
| LOCAL_SRC_FILES := \ |
| FormatConversions.cpp \ |
| HostConnection.cpp \ |
| QemuPipeStream.cpp \ |
| ProcessPipe.cpp \ |
| |
| ifeq (true,$(BUILD_EMULATOR_VULKAN)) |
| $(call emugl-import,libvulkan_enc) |
| |
| LOCAL_SRC_FILES += AddressSpaceStream.cpp |
| |
| endif |
| |
| LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-parameter |
| |
| ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) |
| |
| LOCAL_SRC_FILES += \ |
| ThreadInfo_host.cpp \ |
| |
| else |
| |
| ifeq (true,$(BUILD_EMULATOR_VULKAN)) |
| |
| LOCAL_HEADER_LIBRARIES += vulkan_headers |
| |
| LOCAL_CFLAGS += -DVIRTIO_GPU |
| LOCAL_SRC_FILES += VirtioGpuStream.cpp |
| LOCAL_C_INCLUDES += external/libdrm external/minigbm/cros_gralloc |
| LOCAL_SHARED_LIBRARIES += libdrm |
| |
| endif |
| |
| LOCAL_SRC_FILES += \ |
| ThreadInfo.cpp \ |
| |
| endif |
| |
| ifdef IS_AT_LEAST_OPD1 |
| LOCAL_HEADER_LIBRARIES += libnativebase_headers |
| |
| $(call emugl-export,HEADER_LIBRARIES,libnativebase_headers) |
| endif |
| |
| ifdef IS_AT_LEAST_OPD1 |
| LOCAL_HEADER_LIBRARIES += libhardware_headers |
| $(call emugl-export,HEADER_LIBRARIES,libhardware_headers) |
| endif |
| |
| $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/bionic-include) |
| $(call emugl-export,C_INCLUDES,$(LOCAL_PATH) bionic/libc/private) |
| $(call emugl-export,C_INCLUDES,$(LOCAL_PATH) bionic/libc/platform) |
| |
| ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) |
| $(call emugl-export,SHARED_LIBRARIES,android-emu-shared) |
| endif |
| |
| $(call emugl-end-module) |