only export the GL entry-points, hide everything else.

Conflicts:

	opengl/libagl/Android.mk
	opengl/libs/Android.mk
	opengl/libs/egl_impl.h
This commit is contained in:
Mathias Agopian
2009-05-08 15:23:38 -07:00
parent ed3b804f2c
commit cb29e6237d
5 changed files with 14 additions and 4 deletions

View File

@ -603,13 +603,13 @@ typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname,
* dalvik extension functions
*------------------------------------------------------------------------*/
#ifdef ANDROID
void glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
const GLvoid *ptr, GLsizei count);
void glNormalPointerBounds(GLenum type, GLsizei stride,
GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
const GLvoid *pointer, GLsizei count);
void glTexCoordPointerBounds(GLint size, GLenum type,
GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
GLsizei stride, const GLvoid *pointer, GLsizei count);
void glVertexPointerBounds(GLint size, GLenum type,
GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
GLsizei stride, const GLvoid *pointer, GLsizei count);
#endif

View File

@ -91,6 +91,8 @@
# define KHRONOS_APICALL __declspec(dllimport)
#elif defined (__SYMBIAN32__)
# define KHRONOS_APICALL IMPORT_C
#elif defined(ANDROID)
# define KHRONOS_APICALL __attribute__((visibility("default")))
#else
# define KHRONOS_APICALL
#endif

View File

@ -33,6 +33,8 @@ ifneq ($(TARGET_SIMULATOR),true)
endif
LOCAL_SHARED_LIBRARIES := libcutils libutils libpixelflinger
LOCAL_CFLAGS += -fvisibility=hidden
LOCAL_LDLIBS := -lpthread -ldl
LOCAL_MODULE:= libagl

View File

@ -23,6 +23,8 @@ else
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
endif
LOCAL_CFLAGS += -fvisibility=hidden
include $(BUILD_SHARED_LIBRARY)
@ -49,4 +51,6 @@ else
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
endif
LOCAL_CFLAGS += -fvisibility=hidden
include $(BUILD_SHARED_LIBRARY)

View File

@ -20,6 +20,8 @@
#include <ctype.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <EGL/eglplatform.h>
// ----------------------------------------------------------------------------
namespace android {