-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.mk
63 lines (52 loc) · 1.61 KB
/
Android.mk
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
LOCAL_PATH:= $(call my-dir)
ifeq ($(ENABLE_IMG_GRAPHICS),true)
common_CFLAGS := -W -g -DPLATFORM_ANDROID
common_C_INCLUDES += \
$(TARGET_OUT_HEADERS)/drm \
$(TARGET_OUT_HEADERS)/libdrm \
$(TARGET_OUT_HEADERS)/libdrm/shared-core
include $(CLEAR_VARS)
common_SRC_FILES := \
libdrm/libdrm_lists.h \
libdrm/xf86drm.c \
libdrm/xf86drmHash.c \
libdrm/xf86drmRandom.c \
libdrm/xf86drmMode.c \
libdrm/xf86drmSL.c \
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
endif
LOCAL_CFLAGS += $(common_CFLAGS)
ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86)
LOCAL_CFLAGS += -DUSTL_ANDROID_X86
endif
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_C_INCLUDES += $(common_C_INCLUDES)
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
LOCAL_MODULE := libdrm
LOCAL_MODULE_TAGS := optional
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_COPY_HEADERS := \
libdrm/xf86drm.h libdrm/xf86drmMode.h \
shared-core/drm.h shared-core/drm_mode.h shared-core/drm_sarea.h
LOCAL_COPY_HEADERS_TO := libdrm
include $(BUILD_COPY_HEADERS)
include $(CLEAR_VARS)
LOCAL_COPY_HEADERS := \
shared-core/i915_drm.h \
shared-core/mach64_drm.h \
shared-core/mga_drm.h \
shared-core/nouveau_drm.h \
shared-core/r128_drm.h \
shared-core/r300_reg.h \
shared-core/radeon_drm.h \
shared-core/savage_drm.h \
shared-core/sis_drm.h \
shared-core/via_3d_reg.h \
shared-core/via_drm.h \
shared-core/xgi_drm.h
LOCAL_COPY_HEADERS_TO := libdrm/shared-core
include $(BUILD_COPY_HEADERS)
endif