1 LOCAL_PATH:= $(call my-dir) 2 3 ifeq ($(ENABLE_IMG_GRAPHICS),true) 4 5 common_CFLAGS := -W -g -DPLATFORM_ANDROID 6 common_C_INCLUDES += \ 7 $(TARGET_OUT_HEADERS)/drm \ 8 $(TARGET_OUT_HEADERS)/libdrm \ 9 $(TARGET_OUT_HEADERS)/libdrm/shared-core 10 11 include $(CLEAR_VARS) 12 13 common_SRC_FILES := \ 14 libdrm/libdrm_lists.h \ 15 libdrm/xf86drm.c \ 16 libdrm/xf86drmHash.c \ 17 libdrm/xf86drmRandom.c \ 18 libdrm/xf86drmMode.c \ 19 libdrm/xf86drmSL.c \ 20 21 22 ifeq ($(TARGET_ARCH),arm) 23 LOCAL_CFLAGS += -fstrict-aliasing -fomit-frame-pointer 24 endif 25 26 LOCAL_CFLAGS += $(common_CFLAGS) 27 ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86) 28 LOCAL_CFLAGS += -DUSTL_ANDROID_X86 29 endif 30 31 LOCAL_SRC_FILES := $(common_SRC_FILES) 32 LOCAL_C_INCLUDES += $(common_C_INCLUDES) 33 LOCAL_MODULE := libdrm 34 LOCAL_MODULE_TAGS := optional 35 include $(BUILD_SHARED_LIBRARY) 36 37 include $(CLEAR_VARS) 38 LOCAL_COPY_HEADERS := \ 39 libdrm/xf86drm.h libdrm/xf86drmMode.h \ 40 shared-core/drm.h shared-core/drm_mode.h shared-core/drm_sarea.h 41 LOCAL_COPY_HEADERS_TO := libdrm 42 include $(BUILD_COPY_HEADERS) 43 44 include $(CLEAR_VARS) 45 LOCAL_COPY_HEADERS := \ 46 shared-core/i915_drm.h \ 47 shared-core/mach64_drm.h \ 48 shared-core/mga_drm.h \ 49 shared-core/nouveau_drm.h \ 50 shared-core/r128_drm.h \ 51 shared-core/r300_reg.h \ 52 shared-core/radeon_drm.h \ 53 shared-core/savage_drm.h \ 54 shared-core/sis_drm.h \ 55 shared-core/via_3d_reg.h \ 56 shared-core/via_drm.h \ 57 shared-core/xgi_drm.h 58 LOCAL_COPY_HEADERS_TO := libdrm/shared-core 59 include $(BUILD_COPY_HEADERS) 60 61 endif 62