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### OpenglCodecCommon  host ##############################################
24$(call emugl-begin-host-static-library,libOpenglCodecCommon)
25
26LOCAL_SRC_FILES := $(host_commonSources)
27$(call emugl-import, libemugl_common)
28$(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include/libOpenglRender $(LOCAL_PATH))
29$(call emugl-export,LDLIBS,-lstdc++)
30$(call emugl-end-module)
31
32
33### OpenglCodecCommon  host, 64-bit #########################################
34ifdef EMUGL_BUILD_64BITS
35    $(call emugl-begin-host64-static-library,lib64OpenglCodecCommon)
36
37    LOCAL_SRC_FILES := $(host_commonSources)
38
39    $(call emugl-import, lib64emugl_common)
40    $(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include/libOpenglRender $(LOCAL_PATH))
41    $(call emugl-export,CFLAGS,-m64 -fPIC)
42    $(call emugl-export,LDLIBS,-lstdc++)
43    $(call emugl-end-module)
44endif
45