2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build META EGL library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
2009-04-10 21:24:30 +00:00
|
|
|
EGL/egl.cpp \
|
2009-03-04 03:31:44 +00:00
|
|
|
#
|
|
|
|
|
2009-05-18 01:50:16 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += libcutils
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
LOCAL_MODULE:= libEGL
|
|
|
|
|
|
|
|
# needed on sim build because of weird logging issues
|
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
|
|
|
# we need to access the Bionic private header <bionic_tls.h>
|
|
|
|
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
|
|
|
|
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
|
2009-04-10 21:24:30 +00:00
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build the wrapper OpenGL ES library
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
GLES_CM/gl.cpp.arm \
|
|
|
|
#
|
|
|
|
|
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
|
|
|
|
# we need to access the Bionic private header <bionic_tls.h>
|
|
|
|
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
|
|
|
|
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-03-04 03:31:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|