The modules here are only built when BUILD_EMULATOR_OPENGL is defined to true in your environment or your BoardConfig.mk (see tools/emulator/opengl/Android.mk) Change-Id: I5f32c35b4452fb5a7b4d5f9fc5870ec1da6032e6
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# This build script corresponds to a library containing many definitions
|
|
# common to both the guest and the host. They relate to
|
|
#
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
commonSources := \
|
|
GLClientState.cpp \
|
|
GLSharedGroup.cpp \
|
|
glUtils.cpp \
|
|
SocketStream.cpp \
|
|
TcpStream.cpp \
|
|
TimeUtils.cpp
|
|
|
|
### CodecCommon guest ##############################################
|
|
$(call emugl-begin-static-library,libOpenglCodecCommon)
|
|
|
|
LOCAL_SRC_FILES := $(commonSources)
|
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"eglCodecCommon\"
|
|
|
|
$(call emugl-export,SHARED_LIBRARIES,libcutils libutils)
|
|
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
|
$(call emugl-end-module)
|
|
|
|
### OpenglCodecCommon host ##############################################
|
|
$(call emugl-begin-host-static-library,libOpenglCodecCommon)
|
|
|
|
LOCAL_SRC_FILES := $(commonSources)
|
|
|
|
ifeq ($(HOST_OS),windows)
|
|
LOCAL_SRC_FILES += Win32PipeStream.cpp
|
|
else
|
|
LOCAL_SRC_FILES += UnixStream.cpp
|
|
endif
|
|
|
|
$(call emugl-export,STATIC_LIBRARIES,libcutils)
|
|
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
|
$(call emugl-end-module)
|
|
|