1 # This build script corresponds to a library containing many definitions 2 # common to both the guest and the host. They relate to 3 # 4 LOCAL_PATH := $(call my-dir) 5 6 commonSources := \ 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 goldfish_address_space.cpp \ 17 18 ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 19 20 commonSources += \ 21 goldfish_dma_host.cpp \ 22 qemu_pipe_host.cpp \ 23 24 else 25 26 commonSources += \ 27 goldfish_dma.cpp \ 28 29 endif 30 31 ### CodecCommon guest ############################################## 32 $(call emugl-begin-shared-library,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX)) 33 34 LOCAL_SRC_FILES := $(commonSources) 35 36 LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\" 37 38 $(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) 39 40 ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) 41 $(call emugl-export,SHARED_LIBRARIES,android-emu-shared) 42 endif 43 44 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 45 $(call emugl-end-module) 46