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 14host_commonSources := $(commonSources) 15 16ifeq ($(HOST_OS),windows) 17 host_commonSources += Win32PipeStream.cpp 18else 19 host_commonSources += UnixStream.cpp 20endif 21 22 23### CodecCommon guest ############################################## 24$(call emugl-begin-static-library,libOpenglCodecCommon) 25 26LOCAL_SRC_FILES := $(commonSources) 27 28LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\" 29 30$(call emugl-export,SHARED_LIBRARIES,libcutils libutils) 31$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 32$(call emugl-end-module) 33 34 35### OpenglCodecCommon host ############################################## 36$(call emugl-begin-host-static-library,libOpenglCodecCommon) 37 38LOCAL_SRC_FILES := $(host_commonSources) 39 40$(call emugl-export,STATIC_LIBRARIES,libcutils) 41$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 42$(call emugl-end-module) 43 44 45### OpenglCodecCommon host, 64-bit ######################################### 46$(call emugl-begin-host-static-library,lib64OpenglCodecCommon) 47 48LOCAL_SRC_FILES := $(host_commonSources) 49 50$(call emugl-export,STATIC_LIBRARIES,lib64cutils) 51$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 52$(call emugl-export,CFLAGS,-m64) 53$(call emugl-end-module) 54 55