summaryrefslogtreecommitdiffstats
path: root/src/egl/Android.mk
blob: 8e89eb012bd10e4fa924ee67ec737c884c38094b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
LOCAL_PATH := $(call my-dir)

# from main/Makefile
SOURCES = \
	eglapi.c \
	eglarray.c \
	eglconfig.c \
	eglcontext.c \
	eglcurrent.c \
	egldisplay.c \
	egldriver.c \
	eglfallbacks.c \
	eglglobals.c \
	eglimage.c \
	egllog.c \
	eglmisc.c \
	eglmode.c \
	eglscreen.c \
	eglstring.c \
	eglsurface.c \
	eglsync.c

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
	$(addprefix main/, $(SOURCES))

LOCAL_CFLAGS := \
	-DPTHREADS \
	-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID \
	-D_EGL_DRIVER_SEARCH_DIR=\"/system/lib/egl\" \
	-fvisibility=hidden \
	-Wno-sign-compare

LOCAL_C_INCLUDES := \
	external/mesa/include

LOCAL_MODULE := libmesa_egl

include $(BUILD_STATIC_LIBRARY)

ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
	drivers/android/egl_android.c \
	drivers/android/droid.c \
	drivers/android/droid_core.c \
	drivers/android/droid_image.c


LOCAL_CFLAGS := \
	-DPTHREADS \
	-fvisibility=hidden \
	-Wno-sign-compare

LOCAL_C_INCLUDES := \
	external/mesa/include \
	external/mesa/src/mapi \
	external/mesa/src/egl/main \
	external/mesa/src/gralloc \
	external/drm \
	external/drm/include/drm

LOCAL_MODULE := libmesa_classic_egl

include $(BUILD_STATIC_LIBRARY)
endif # MESA_BUILD_CLASSIC