2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build the software OpenGL ES library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
egl.cpp \
|
|
|
|
state.cpp \
|
|
|
|
texture.cpp \
|
|
|
|
Tokenizer.cpp \
|
|
|
|
TokenManager.cpp \
|
|
|
|
TextureObjectManager.cpp \
|
|
|
|
BufferObjectManager.cpp \
|
|
|
|
array.cpp.arm \
|
|
|
|
fp.cpp.arm \
|
|
|
|
light.cpp.arm \
|
|
|
|
matrix.cpp.arm \
|
|
|
|
mipmap.cpp.arm \
|
|
|
|
primitives.cpp.arm \
|
|
|
|
vertex.cpp.arm
|
|
|
|
|
2009-10-27 03:12:37 +00:00
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"libagl\"
|
|
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
|
|
|
|
2013-04-10 04:55:39 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils liblog libpixelflinger libETC1 libui
|
2009-10-27 03:12:37 +00:00
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
LOCAL_SRC_FILES += fixed_asm.S iterators.S
|
|
|
|
LOCAL_CFLAGS += -fstrict-aliasing
|
|
|
|
endif
|
|
|
|
|
2013-03-27 17:53:14 +00:00
|
|
|
ifeq ($(TARGET_ARCH),mips)
|
|
|
|
LOCAL_SRC_FILES += arch-$(TARGET_ARCH)/fixed_asm.S
|
|
|
|
LOCAL_CFLAGS += -fstrict-aliasing
|
|
|
|
# The graphics code can generate division by zero
|
|
|
|
LOCAL_CFLAGS += -mno-check-zero-division
|
|
|
|
endif
|
|
|
|
|
2011-07-12 05:12:16 +00:00
|
|
|
# we need to access the private Bionic header <bionic_tls.h>
|
|
|
|
LOCAL_C_INCLUDES += bionic/libc/private
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2014-01-25 05:00:32 +00:00
|
|
|
LOCAL_MODULE_RELATIVE_PATH := egl
|
2009-05-29 00:39:03 +00:00
|
|
|
LOCAL_MODULE:= libGLES_android
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|