• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3$(call emugl-begin-shared-library,libOpenglSystemCommon)
4$(call emugl-import,libGLESv1_enc libGLESv2_enc lib_renderControl_enc)
5ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
6$(call emugl-import,libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX))
7$(call emugl-import,libqemupipe$(GOLDFISH_OPENGL_LIB_SUFFIX))
8$(call emugl-import,libgralloc_cb$(GOLDFISH_OPENGL_LIB_SUFFIX))
9else
10$(call emugl-export,STATIC_LIBRARIES,libGoldfishAddressSpace libringbuffer)
11$(call emugl-export,STATIC_LIBRARIES,libqemupipe.ranchu)
12$(call emugl-export,HEADER_LIBRARIES,libgralloc_cb.ranchu)
13endif
14
15LOCAL_SRC_FILES := \
16    FormatConversions.cpp \
17    HostConnection.cpp \
18    QemuPipeStream.cpp \
19    ProcessPipe.cpp    \
20    ThreadInfo.cpp \
21
22ifeq (true,$(GFXSTREAM))
23$(call emugl-import,libvulkan_enc)
24
25LOCAL_SRC_FILES += AddressSpaceStream.cpp
26
27endif
28
29LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-parameter -fno-emulated-tls
30
31ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
32
33else
34
35ifeq (true,$(GFXSTREAM))
36
37LOCAL_HEADER_LIBRARIES += vulkan_headers
38
39LOCAL_CFLAGS += -DVIRTIO_GPU
40LOCAL_SRC_FILES += \
41    VirtioGpuStream.cpp \
42    VirtioGpuPipeStream.cpp \
43
44LOCAL_C_INCLUDES += external/libdrm external/minigbm/cros_gralloc
45LOCAL_SHARED_LIBRARIES += libdrm
46
47endif
48
49endif
50
51ifdef IS_AT_LEAST_OPD1
52LOCAL_HEADER_LIBRARIES += libnativebase_headers
53
54$(call emugl-export,HEADER_LIBRARIES,libnativebase_headers)
55endif
56
57ifdef IS_AT_LEAST_OPD1
58LOCAL_HEADER_LIBRARIES += libhardware_headers
59$(call emugl-export,HEADER_LIBRARIES,libhardware_headers)
60endif
61
62$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/bionic-include)
63$(call emugl-export,C_INCLUDES,$(LOCAL_PATH) bionic/libc/private)
64$(call emugl-export,C_INCLUDES,$(LOCAL_PATH) bionic/libc/platform)
65
66ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
67$(call emugl-export,SHARED_LIBRARIES,android-emu-shared)
68endif
69
70$(call emugl-end-module)
71