The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 3 | ############################################################################### |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 4 | # Build META EGL library |
| 5 | # |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
Mathias Agopian | 3944eab | 2010-08-02 17:34:32 -0700 | [diff] [blame] | 9 | LOCAL_SRC_FILES:= \ |
| 10 | EGL/egl.cpp \ |
| 11 | EGL/getProcAddress.cpp.arm \ |
| 12 | EGL/hooks.cpp \ |
| 13 | EGL/Loader.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | # |
| 15 | |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 16 | LOCAL_SHARED_LIBRARIES += libcutils libutils |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 17 | LOCAL_LDLIBS := -lpthread -ldl |
| 18 | LOCAL_MODULE:= libEGL |
| 19 | |
| 20 | # needed on sim build because of weird logging issues |
| 21 | ifeq ($(TARGET_SIMULATOR),true) |
| 22 | else |
| 23 | LOCAL_SHARED_LIBRARIES += libdl |
Gary King | 01f8c06 | 2009-09-29 12:54:07 -0700 | [diff] [blame] | 24 | # Bionic's private TLS header relies on the ARCH_ARM_HAVE_TLS_REGISTER to |
| 25 | # select the appropriate TLS codepath |
| 26 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 27 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 28 | endif |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 29 | # we need to access the private Bionic header <bionic_tls.h> |
| 30 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 31 | endif |
| 32 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 33 | LOCAL_CFLAGS += -DLOG_TAG=\"libEGL\" |
| 34 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
Mathias Agopian | cb29e62 | 2009-05-08 15:23:38 -0700 | [diff] [blame] | 35 | LOCAL_CFLAGS += -fvisibility=hidden |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 36 | |
Mathias Agopian | 94263d7 | 2009-08-24 21:47:13 -0700 | [diff] [blame] | 37 | ifeq ($(TARGET_BOARD_PLATFORM),msm7k) |
| 38 | LOCAL_CFLAGS += -DADRENO130=1 |
| 39 | endif |
| 40 | |
Mathias Agopian | b34d5d5 | 2009-10-14 02:39:53 -0700 | [diff] [blame] | 41 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 42 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 43 | endif |
| 44 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 46 | installed_libEGL := $(LOCAL_INSTALLED_MODULE) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | |
| 48 | |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 49 | # OpenGL drivers config file |
| 50 | ifneq ($(BOARD_EGL_CFG),) |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | LOCAL_MODULE := egl.cfg |
| 54 | LOCAL_MODULE_TAGS := optional |
| 55 | LOCAL_MODULE_CLASS := ETC |
| 56 | LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl |
| 57 | LOCAL_SRC_FILES := ../../../../$(BOARD_EGL_CFG) |
| 58 | include $(BUILD_PREBUILT) |
| 59 | |
| 60 | # make sure we depend on egl.cfg, so it gets installed |
| 61 | $(installed_libEGL): | egl.cfg |
| 62 | |
| 63 | endif |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 64 | |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 65 | ############################################################################### |
| 66 | # Build the wrapper OpenGL ES 1.x library |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 67 | # |
| 68 | |
| 69 | include $(CLEAR_VARS) |
| 70 | |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 71 | LOCAL_SRC_FILES:= \ |
| 72 | GLES_CM/gl.cpp.arm \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 73 | # |
| 74 | |
Mathias Agopian | 11be99d | 2009-05-17 18:50:16 -0700 | [diff] [blame] | 75 | LOCAL_SHARED_LIBRARIES += libcutils libEGL |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 76 | LOCAL_LDLIBS := -lpthread -ldl |
| 77 | LOCAL_MODULE:= libGLESv1_CM |
| 78 | |
| 79 | # needed on sim build because of weird logging issues |
| 80 | ifeq ($(TARGET_SIMULATOR),true) |
| 81 | else |
| 82 | LOCAL_SHARED_LIBRARIES += libdl |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 83 | # we need to access the private Bionic header <bionic_tls.h> |
Gary King | 01f8c06 | 2009-09-29 12:54:07 -0700 | [diff] [blame] | 84 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 85 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 86 | endif |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 87 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 88 | endif |
| 89 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 90 | LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv1\" |
| 91 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
Mathias Agopian | cb29e62 | 2009-05-08 15:23:38 -0700 | [diff] [blame] | 92 | LOCAL_CFLAGS += -fvisibility=hidden |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 93 | |
Mathias Agopian | b34d5d5 | 2009-10-14 02:39:53 -0700 | [diff] [blame] | 94 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 95 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 96 | endif |
| 97 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 98 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 99 | |
| 100 | |
| 101 | ############################################################################### |
| 102 | # Build the wrapper OpenGL ES 2.x library |
| 103 | # |
| 104 | |
| 105 | include $(CLEAR_VARS) |
| 106 | |
| 107 | LOCAL_SRC_FILES:= \ |
| 108 | GLES2/gl2.cpp.arm \ |
| 109 | # |
| 110 | |
| 111 | LOCAL_SHARED_LIBRARIES += libcutils libEGL |
| 112 | LOCAL_LDLIBS := -lpthread -ldl |
| 113 | LOCAL_MODULE:= libGLESv2 |
| 114 | |
| 115 | # needed on sim build because of weird logging issues |
| 116 | ifeq ($(TARGET_SIMULATOR),true) |
| 117 | else |
| 118 | LOCAL_SHARED_LIBRARIES += libdl |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 119 | # we need to access the private Bionic header <bionic_tls.h> |
Gary King | 01f8c06 | 2009-09-29 12:54:07 -0700 | [diff] [blame] | 120 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 121 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 122 | endif |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 123 | LOCAL_C_INCLUDES += bionic/libc/private |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 124 | endif |
| 125 | |
| 126 | LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv2\" |
| 127 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 128 | LOCAL_CFLAGS += -fvisibility=hidden |
| 129 | |
Mathias Agopian | b34d5d5 | 2009-10-14 02:39:53 -0700 | [diff] [blame] | 130 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 131 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 132 | endif |
| 133 | |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 134 | include $(BUILD_SHARED_LIBRARY) |
Jack Palevich | a6276fd | 2009-12-28 19:31:43 +0800 | [diff] [blame] | 135 | |
| 136 | ############################################################################### |
| 137 | # Build the ETC1 host static library |
| 138 | # |
| 139 | |
| 140 | include $(CLEAR_VARS) |
| 141 | |
| 142 | LOCAL_SRC_FILES:= \ |
| 143 | ETC1/etc1.cpp \ |
| 144 | # |
| 145 | |
| 146 | LOCAL_LDLIBS := -lpthread -ldl |
| 147 | LOCAL_MODULE:= libETC1 |
| 148 | |
| 149 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 150 | |
| 151 | ############################################################################### |
| 152 | # Build the ETC1 device library |
| 153 | # |
| 154 | |
| 155 | include $(CLEAR_VARS) |
| 156 | |
| 157 | LOCAL_SRC_FILES:= \ |
| 158 | ETC1/etc1.cpp \ |
| 159 | # |
| 160 | |
| 161 | LOCAL_LDLIBS := -lpthread -ldl |
| 162 | LOCAL_MODULE:= libETC1 |
| 163 | |
| 164 | include $(BUILD_SHARED_LIBRARY) |