• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This build script corresponds to a library containing many definitions
2# common to both the guest and the host. They relate to
3#
4LOCAL_PATH := $(call my-dir)
5
6commonSources := \
7        EncoderDebug.cpp \
8        GLClientState.cpp \
9        GLESTextureUtils.cpp \
10        ChecksumCalculator.cpp \
11        GLSharedGroup.cpp \
12        glUtils.cpp \
13        IndexRangeCache.cpp \
14        SocketStream.cpp \
15        TcpStream.cpp \
16        auto_goldfish_dma_context.cpp \
17        etc.cpp \
18
19ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
20
21commonSources += \
22        goldfish_dma_host.cpp \
23
24else
25
26commonSources += \
27        goldfish_dma.cpp \
28
29endif
30
31### CodecCommon  guest ##############################################
32$(call emugl-begin-shared-library,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX))
33
34ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
35$(call emugl-import,libqemupipe$(GOLDFISH_OPENGL_LIB_SUFFIX))
36else
37$(call emugl-export,STATIC_LIBRARIES,libqemupipe.ranchu)
38endif
39
40LOCAL_SRC_FILES := $(commonSources)
41
42LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\"
43LOCAL_CFLAGS += -Wno-unused-private-field
44
45
46ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
47$(call emugl-import,libandroidemu)
48$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog)
49else
50ifeq (true,$(GFXSTREAM))
51$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog libandroidemu)
52else
53$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog)
54endif
55endif
56
57$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
58$(call emugl-end-module)
59