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 GLSharedGroup.cpp \ 9 glUtils.cpp \ 10 SocketStream.cpp \ 11 TcpStream.cpp \ 12 TimeUtils.cpp 13 14### CodecCommon guest ############################################## 15$(call emugl-begin-static-library,libOpenglCodecCommon) 16 17LOCAL_SRC_FILES := $(commonSources) 18 19LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\" 20 21$(call emugl-export,SHARED_LIBRARIES,libcutils libutils) 22$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 23$(call emugl-end-module) 24 25### OpenglCodecCommon host ############################################## 26$(call emugl-begin-host-static-library,libOpenglCodecCommon) 27 28LOCAL_SRC_FILES := $(commonSources) 29 30ifeq ($(HOST_OS),windows) 31 LOCAL_SRC_FILES += Win32PipeStream.cpp 32else 33 LOCAL_SRC_FILES += UnixStream.cpp 34endif 35 36$(call emugl-export,STATIC_LIBRARIES,libcutils) 37$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 38$(call emugl-end-module) 39 40