2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build the software OpenGL ES library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2009-04-10 21:24:30 +00:00
|
|
|
# Set to 1 to use gralloc and copybits
|
|
|
|
LIBAGL_USE_GRALLOC_COPYBITS := 1
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
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
|
|
|
|
|
2010-02-02 02:24:52 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils libpixelflinger libETC1
|
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
|
|
|
|
|
|
|
|
ifneq ($(TARGET_SIMULATOR),true)
|
|
|
|
# we need to access the private Bionic header <bionic_tls.h>
|
2009-09-29 19:54:07 +00:00
|
|
|
# on ARM platforms, we need to mirror the ARCH_ARM_HAVE_TLS_REGISTER
|
|
|
|
# behavior from the bionic Android.mk file
|
|
|
|
ifeq ($(TARGET_ARCH)-$(ARCH_ARM_HAVE_TLS_REGISTER),arm-true)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
|
|
|
endif
|
2009-06-04 01:26:58 +00:00
|
|
|
LOCAL_C_INCLUDES += bionic/libc/private
|
2009-03-04 03:31:44 +00:00
|
|
|
endif
|
|
|
|
|
2009-04-10 21:24:30 +00:00
|
|
|
ifeq ($(LIBAGL_USE_GRALLOC_COPYBITS),1)
|
2009-06-04 01:26:58 +00:00
|
|
|
LOCAL_CFLAGS += -DLIBAGL_USE_GRALLOC_COPYBITS
|
2009-04-10 21:24:30 +00:00
|
|
|
LOCAL_SRC_FILES += copybit.cpp
|
2009-10-27 03:12:37 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += libui
|
2009-04-10 21:24:30 +00:00
|
|
|
endif
|
|
|
|
|
2009-05-29 00:39:03 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
|
|
|
|
LOCAL_MODULE:= libGLES_android
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|