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
|
|
|
|
|
|
|
|
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>
|
|
|
|
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
|
|
|
|
endif
|
|
|
|
|
2009-04-10 21:24:30 +00:00
|
|
|
ifeq ($(LIBAGL_USE_GRALLOC_COPYBITS),1)
|
|
|
|
LOCAL_CFLAGS += -DLIBAGL_USE_GRALLOC_COPYBITS -I$(LOCAL_PATH)/../../../../hardware/libhardware/modules/gralloc
|
|
|
|
LOCAL_SRC_FILES += copybit.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"libagl\"
|
|
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils libpixelflinger
|
2009-05-08 22:23:38 +00:00
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libagl
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|