OSDN Git Service

Merge remote-tracking branch 'mesa/master' into froyo-x86
[android-x86/external-libdrm.git] / Android.mk
1 # Copyright 2010, The Android-x86 Open Source Project
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8
9 ifeq ($(strip $(BOARD_USES_DRM)),true)
10
11 LOCAL_PATH := $(call my-dir)
12
13 include $(CLEAR_VARS)
14
15 LOCAL_SRC_FILES :=                      \
16         xf86drm.c                       \
17         xf86drmHash.c                   \
18         xf86drmMode.c                   \
19         xf86drmRandom.c                 \
20         xf86drmSL.c
21
22 LOCAL_C_INCLUDES +=                     \
23         $(LOCAL_PATH)/include/drm
24
25 LOCAL_MODULE := libdrm
26
27 include $(BUILD_SHARED_LIBRARY)
28
29 include $(CLEAR_VARS)
30
31 LOCAL_SRC_FILES :=                      \
32         intel/intel_bufmgr.c            \
33         intel/intel_bufmgr_fake.c       \
34         intel/intel_bufmgr_gem.c        \
35         intel/mm.c
36
37 LOCAL_C_INCLUDES +=                     \
38         $(LOCAL_PATH)/include/drm
39
40 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
41
42 LOCAL_MODULE := libdrm_intel
43
44 LOCAL_SHARED_LIBRARIES := libdrm
45
46 include $(BUILD_SHARED_LIBRARY)
47
48 endif