Android.mk revision 53238bddeab7b4633bfdb59fac67b0af1211955a
1LOCAL_PATH:= $(call my-dir)
2
3#
4# Build META EGL library
5#
6
7include $(CLEAR_VARS)
8
9LOCAL_SRC_FILES:= 	\
10	EGL/egl.cpp 		\
11	EGL/gpu.cpp			\
12#
13
14LOCAL_SHARED_LIBRARIES += libcutils libutils libui
15LOCAL_LDLIBS := -lpthread -ldl
16LOCAL_MODULE:= libEGL
17
18# needed on sim build because of weird logging issues
19ifeq ($(TARGET_SIMULATOR),true)
20else
21    LOCAL_SHARED_LIBRARIES += libdl
22    # we need to access the Bionic private header <bionic_tls.h>
23    LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
24endif
25
26include $(BUILD_SHARED_LIBRARY)
27
28
29
30#
31# Build the wrapper OpenGL ES library
32#
33
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES:= 	\
37	GLES_CM/gl.cpp.arm 		\
38#
39
40LOCAL_SHARED_LIBRARIES += libcutils libutils libui libEGL
41LOCAL_LDLIBS := -lpthread -ldl
42LOCAL_MODULE:= libGLESv1_CM
43
44# needed on sim build because of weird logging issues
45ifeq ($(TARGET_SIMULATOR),true)
46else
47    LOCAL_SHARED_LIBRARIES += libdl
48    # we need to access the Bionic private header <bionic_tls.h>
49    LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
50endif
51
52include $(BUILD_SHARED_LIBRARY)
53