diff options
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/Android.mk | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/egl/Android.mk b/src/egl/Android.mk new file mode 100644 index 0000000000..8e89eb012b --- /dev/null +++ b/src/egl/Android.mk @@ -0,0 +1,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 |