The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # |
| 4 | # Build the software OpenGL ES library |
| 5 | # |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | LOCAL_SRC_FILES:= \ |
| 10 | egl.cpp \ |
| 11 | state.cpp \ |
| 12 | texture.cpp \ |
| 13 | Tokenizer.cpp \ |
| 14 | TokenManager.cpp \ |
| 15 | TextureObjectManager.cpp \ |
| 16 | BufferObjectManager.cpp \ |
| 17 | array.cpp.arm \ |
| 18 | fp.cpp.arm \ |
| 19 | light.cpp.arm \ |
| 20 | matrix.cpp.arm \ |
| 21 | mipmap.cpp.arm \ |
| 22 | primitives.cpp.arm \ |
| 23 | vertex.cpp.arm |
| 24 | |
Mathias Agopian | 9042b45 | 2009-10-26 20:12:37 -0700 | [diff] [blame] | 25 | LOCAL_CFLAGS += -DLOG_TAG=\"libagl\" |
| 26 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 27 | LOCAL_CFLAGS += -fvisibility=hidden |
| 28 | |
Mathias Agopian | d1f73a2 | 2010-02-01 18:24:52 -0800 | [diff] [blame] | 29 | LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils libpixelflinger libETC1 |
Mathias Agopian | 9042b45 | 2009-10-26 20:12:37 -0700 | [diff] [blame] | 30 | LOCAL_LDLIBS := -lpthread -ldl |
| 31 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | ifeq ($(TARGET_ARCH),arm) |
| 33 | LOCAL_SRC_FILES += fixed_asm.S iterators.S |
| 34 | LOCAL_CFLAGS += -fstrict-aliasing |
| 35 | endif |
| 36 | |
Magnus Landqvist | f123ec8 | 2010-02-19 12:06:59 +0100 | [diff] [blame] | 37 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 38 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 39 | endif |
| 40 | |
Jeff Brown | bd882b1 | 2011-07-11 22:12:16 -0700 | [diff] [blame] | 41 | # we need to access the private Bionic header <bionic_tls.h> |
| 42 | # on ARM platforms, we need to mirror the ARCH_ARM_HAVE_TLS_REGISTER |
| 43 | # behavior from the bionic Android.mk file |
| 44 | ifeq ($(TARGET_ARCH)-$(ARCH_ARM_HAVE_TLS_REGISTER),arm-true) |
| 45 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 46 | endif |
Jeff Brown | bd882b1 | 2011-07-11 22:12:16 -0700 | [diff] [blame] | 47 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 48 | |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 49 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl |
| 50 | LOCAL_MODULE:= libGLES_android |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | |
| 52 | include $(BUILD_SHARED_LIBRARY) |