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 GLClientState.cpp \ 8 GLESTextureUtils.cpp \ 9 ChecksumCalculator.cpp \ 10 GLSharedGroup.cpp \ 11 glUtils.cpp \ 12 IndexRangeCache.cpp \ 13 SocketStream.cpp \ 14 TcpStream.cpp \ 15 auto_goldfish_dma_context.cpp \ 16 17ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 18 19commonSources += \ 20 goldfish_dma_host.cpp \ 21 22else 23 24commonSources += \ 25 goldfish_dma.cpp \ 26 27endif 28 29### CodecCommon guest ############################################## 30$(call emugl-begin-shared-library,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX)) 31 32ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 33$(call emugl-import,libqemupipe$(GOLDFISH_OPENGL_LIB_SUFFIX)) 34else 35$(call emugl-export,STATIC_LIBRARIES,libqemupipe.ranchu) 36endif 37 38LOCAL_SRC_FILES := $(commonSources) 39 40LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\" 41LOCAL_CFLAGS += -Wno-unused-private-field 42 43$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) 44 45ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 46$(call emugl-export,SHARED_LIBRARIES,android-emu-shared) 47endif 48 49$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 50$(call emugl-end-module) 51