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 etc.cpp \ 17 18ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 19 20commonSources += \ 21 goldfish_dma_host.cpp \ 22 23else 24 25commonSources += \ 26 goldfish_dma.cpp \ 27 28endif 29 30### CodecCommon guest ############################################## 31$(call emugl-begin-shared-library,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX)) 32 33ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 34$(call emugl-import,libqemupipe$(GOLDFISH_OPENGL_LIB_SUFFIX)) 35else 36$(call emugl-export,STATIC_LIBRARIES,libqemupipe.ranchu) 37endif 38 39LOCAL_SRC_FILES := $(commonSources) 40 41LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\" 42LOCAL_CFLAGS += -Wno-unused-private-field 43 44 45ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 46$(call emugl-import,libandroidemu) 47$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) 48else 49ifeq (true,$(GFXSTREAM)) 50$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog libandroidemu) 51else 52$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) 53endif 54endif 55 56$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 57$(call emugl-end-module) 58