The Android Open Source Project | edbf3b6 | 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 | |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 9 | # Set to 1 to use gralloc and copybits |
| 10 | LIBAGL_USE_GRALLOC_COPYBITS := 1 |
| 11 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 12 | LOCAL_SRC_FILES:= \ |
| 13 | egl.cpp \ |
| 14 | state.cpp \ |
| 15 | texture.cpp \ |
| 16 | Tokenizer.cpp \ |
| 17 | TokenManager.cpp \ |
| 18 | TextureObjectManager.cpp \ |
| 19 | BufferObjectManager.cpp \ |
| 20 | array.cpp.arm \ |
| 21 | fp.cpp.arm \ |
| 22 | light.cpp.arm \ |
| 23 | matrix.cpp.arm \ |
| 24 | mipmap.cpp.arm \ |
| 25 | primitives.cpp.arm \ |
| 26 | vertex.cpp.arm |
| 27 | |
Mathias Agopian | 54ba51d | 2009-10-26 20:12:37 -0700 | [diff] [blame] | 28 | LOCAL_CFLAGS += -DLOG_TAG=\"libagl\" |
| 29 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 30 | LOCAL_CFLAGS += -fvisibility=hidden |
| 31 | |
| 32 | LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils libpixelflinger |
| 33 | LOCAL_LDLIBS := -lpthread -ldl |
| 34 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 35 | ifeq ($(TARGET_ARCH),arm) |
| 36 | LOCAL_SRC_FILES += fixed_asm.S iterators.S |
| 37 | LOCAL_CFLAGS += -fstrict-aliasing |
| 38 | endif |
| 39 | |
| 40 | ifneq ($(TARGET_SIMULATOR),true) |
| 41 | # we need to access the private Bionic header <bionic_tls.h> |
Gary King | 9166f7b | 2009-09-29 12:54:07 -0700 | [diff] [blame^] | 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 |
| 46 | endif |
Mathias Agopian | acdebe3 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 47 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 48 | endif |
| 49 | |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 50 | ifeq ($(LIBAGL_USE_GRALLOC_COPYBITS),1) |
Mathias Agopian | acdebe3 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 51 | LOCAL_CFLAGS += -DLIBAGL_USE_GRALLOC_COPYBITS |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 52 | LOCAL_SRC_FILES += copybit.cpp |
Mathias Agopian | 54ba51d | 2009-10-26 20:12:37 -0700 | [diff] [blame] | 53 | LOCAL_SHARED_LIBRARIES += libui |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 54 | endif |
| 55 | |
Mathias Agopian | de58697 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 56 | |
| 57 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl |
| 58 | LOCAL_MODULE:= libGLES_android |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 59 | |
| 60 | include $(BUILD_SHARED_LIBRARY) |