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 | |
| 9 | LOCAL_SRC_FILES:= \ |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 10 | EGL/egl.cpp \ |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 11 | EGL/hooks.cpp \ |
| 12 | EGL/Loader.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 13 | # |
| 14 | |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 15 | LOCAL_SHARED_LIBRARIES += libcutils libutils |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 16 | LOCAL_LDLIBS := -lpthread -ldl |
| 17 | LOCAL_MODULE:= libEGL |
| 18 | |
| 19 | # needed on sim build because of weird logging issues |
| 20 | ifeq ($(TARGET_SIMULATOR),true) |
| 21 | else |
| 22 | LOCAL_SHARED_LIBRARIES += libdl |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 23 | # we need to access the private Bionic header <bionic_tls.h> |
| 24 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 25 | endif |
| 26 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 27 | LOCAL_CFLAGS += -DLOG_TAG=\"libEGL\" |
| 28 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
Mathias Agopian | cb29e62 | 2009-05-08 15:23:38 -0700 | [diff] [blame] | 29 | LOCAL_CFLAGS += -fvisibility=hidden |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 30 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 31 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 32 | installed_libEGL := $(LOCAL_INSTALLED_MODULE) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 33 | |
| 34 | |
Mathias Agopian | 9d17c05 | 2009-05-28 17:39:03 -0700 | [diff] [blame] | 35 | # OpenGL drivers config file |
| 36 | ifneq ($(BOARD_EGL_CFG),) |
| 37 | |
| 38 | include $(CLEAR_VARS) |
| 39 | LOCAL_MODULE := egl.cfg |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | LOCAL_MODULE_CLASS := ETC |
| 42 | LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl |
| 43 | LOCAL_SRC_FILES := ../../../../$(BOARD_EGL_CFG) |
| 44 | include $(BUILD_PREBUILT) |
| 45 | |
| 46 | # make sure we depend on egl.cfg, so it gets installed |
| 47 | $(installed_libEGL): | egl.cfg |
| 48 | |
| 49 | endif |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 50 | |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 51 | ############################################################################### |
| 52 | # Build the wrapper OpenGL ES 1.x library |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 53 | # |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 57 | LOCAL_SRC_FILES:= \ |
| 58 | GLES_CM/gl.cpp.arm \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 59 | # |
| 60 | |
Mathias Agopian | 11be99d | 2009-05-17 18:50:16 -0700 | [diff] [blame] | 61 | LOCAL_SHARED_LIBRARIES += libcutils libEGL |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 62 | LOCAL_LDLIBS := -lpthread -ldl |
| 63 | LOCAL_MODULE:= libGLESv1_CM |
| 64 | |
| 65 | # needed on sim build because of weird logging issues |
| 66 | ifeq ($(TARGET_SIMULATOR),true) |
| 67 | else |
| 68 | LOCAL_SHARED_LIBRARIES += libdl |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 69 | # we need to access the private Bionic header <bionic_tls.h> |
| 70 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 71 | endif |
| 72 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 73 | LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv1\" |
| 74 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
Mathias Agopian | cb29e62 | 2009-05-08 15:23:38 -0700 | [diff] [blame] | 75 | LOCAL_CFLAGS += -fvisibility=hidden |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 76 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 77 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 78 | |
| 79 | |
| 80 | ############################################################################### |
| 81 | # Build the wrapper OpenGL ES 2.x library |
| 82 | # |
| 83 | |
| 84 | include $(CLEAR_VARS) |
| 85 | |
| 86 | LOCAL_SRC_FILES:= \ |
| 87 | GLES2/gl2.cpp.arm \ |
| 88 | # |
| 89 | |
| 90 | LOCAL_SHARED_LIBRARIES += libcutils libEGL |
| 91 | LOCAL_LDLIBS := -lpthread -ldl |
| 92 | LOCAL_MODULE:= libGLESv2 |
| 93 | |
| 94 | # needed on sim build because of weird logging issues |
| 95 | ifeq ($(TARGET_SIMULATOR),true) |
| 96 | else |
| 97 | LOCAL_SHARED_LIBRARIES += libdl |
Mathias Agopian | b4b4c11 | 2009-06-03 18:26:58 -0700 | [diff] [blame] | 98 | # we need to access the private Bionic header <bionic_tls.h> |
| 99 | LOCAL_C_INCLUDES += bionic/libc/private |
Mathias Agopian | 2820bd4 | 2009-05-27 20:38:06 -0700 | [diff] [blame] | 100 | endif |
| 101 | |
| 102 | LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv2\" |
| 103 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 104 | LOCAL_CFLAGS += -fvisibility=hidden |
| 105 | |
| 106 | include $(BUILD_SHARED_LIBRARY) |