2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2009-05-28 03:38:06 +00:00
|
|
|
###############################################################################
|
2009-03-04 03:31:44 +00:00
|
|
|
# Build META EGL library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2010-08-03 00:34:32 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
EGL/egl.cpp \
|
2010-10-26 22:21:24 +00:00
|
|
|
EGL/trace.cpp \
|
2010-08-03 00:34:32 +00:00
|
|
|
EGL/getProcAddress.cpp.arm \
|
|
|
|
EGL/hooks.cpp \
|
|
|
|
EGL/Loader.cpp \
|
2009-03-04 03:31:44 +00:00
|
|
|
#
|
2011-03-02 00:08:10 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES += libGLESv2_dbg libprotobuf-cpp-2.3.0-lite
|
|
|
|
LOCAL_SHARED_LIBRARIES += libcutils libutils libstlport
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libEGL
|
2011-03-05 01:50:48 +00:00
|
|
|
LOCAL_LDFLAGS += -Wl,--exclude-libs=ALL
|
2009-03-04 03:31:44 +00:00
|
|
|
# needed on sim build because of weird logging issues
|
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
2009-09-29 19:54:07 +00:00
|
|
|
# Bionic's private TLS header relies on the ARCH_ARM_HAVE_TLS_REGISTER to
|
|
|
|
# select the appropriate TLS codepath
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
|
|
|
endif
|
2009-06-04 01:26:58 +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
|
|
|
endif
|
|
|
|
|
2009-04-10 21:24:30 +00:00
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"libEGL\"
|
|
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
2009-05-08 22:23:38 +00:00
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
2010-10-26 22:21:24 +00:00
|
|
|
LOCAL_CFLAGS += -DEGL_TRACE=1
|
2009-04-10 21:24:30 +00:00
|
|
|
|
2009-08-25 04:47:13 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM),msm7k)
|
|
|
|
LOCAL_CFLAGS += -DADRENO130=1
|
|
|
|
endif
|
|
|
|
|
2009-10-14 09:39:53 +00:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2009-05-29 00:39:03 +00:00
|
|
|
installed_libEGL := $(LOCAL_INSTALLED_MODULE)
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
|
2009-05-29 00:39:03 +00:00
|
|
|
# OpenGL drivers config file
|
|
|
|
ifneq ($(BOARD_EGL_CFG),)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := egl.cfg
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE_CLASS := ETC
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl
|
|
|
|
LOCAL_SRC_FILES := ../../../../$(BOARD_EGL_CFG)
|
|
|
|
include $(BUILD_PREBUILT)
|
|
|
|
|
|
|
|
# make sure we depend on egl.cfg, so it gets installed
|
|
|
|
$(installed_libEGL): | egl.cfg
|
|
|
|
|
|
|
|
endif
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2009-05-28 03:38:06 +00:00
|
|
|
###############################################################################
|
|
|
|
# Build the wrapper OpenGL ES 1.x library
|
2009-03-04 03:31:44 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2009-05-28 03:38:06 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
GLES_CM/gl.cpp.arm \
|
2009-03-04 03:31:44 +00:00
|
|
|
#
|
|
|
|
|
2009-05-18 01:50:16 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += libcutils libEGL
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libGLESv1_CM
|
|
|
|
|
|
|
|
# needed on sim build because of weird logging issues
|
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
2009-06-04 01:26:58 +00:00
|
|
|
# we need to access the private Bionic header <bionic_tls.h>
|
2009-09-29 19:54:07 +00:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),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
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv1\"
|
|
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
2009-05-08 22:23:38 +00:00
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
2009-04-10 21:24:30 +00:00
|
|
|
|
2009-10-14 09:39:53 +00:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2009-05-28 03:38:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Build the wrapper OpenGL ES 2.x library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
GLES2/gl2.cpp.arm \
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES += libcutils libEGL
|
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libGLESv2
|
|
|
|
|
|
|
|
# needed on sim build because of weird logging issues
|
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
2009-06-04 01:26:58 +00:00
|
|
|
# we need to access the private Bionic header <bionic_tls.h>
|
2009-09-29 19:54:07 +00:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
|
|
|
endif
|
2009-06-04 01:26:58 +00:00
|
|
|
LOCAL_C_INCLUDES += bionic/libc/private
|
2009-05-28 03:38:06 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv2\"
|
|
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
|
|
|
|
2009-10-14 09:39:53 +00:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
|
|
|
endif
|
|
|
|
|
2009-05-28 03:38:06 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2009-12-28 11:31:43 +00:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Build the ETC1 host static library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
ETC1/etc1.cpp \
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libETC1
|
|
|
|
|
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Build the ETC1 device library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
ETC1/etc1.cpp \
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libETC1
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2011-03-02 00:08:10 +00:00
|
|
|
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
|
|
|