Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libdrm: Commit

external/libdrm


Commit MetaInfo

Revision93d88e77cc9182896bfa163546f6be5d2a66a3c3 (tree)
Time2012-04-10 13:17:54
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

android: add Android.mk

Updated for ics-x86.

Change Summary

Incremental Difference

--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,99 @@
1+# Copyright 2010-2012, 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+ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
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+LOCAL_MODULE_TAGS := optional
27+
28+include $(BUILD_SHARED_LIBRARY)
29+
30+include $(CLEAR_VARS)
31+
32+LOCAL_SRC_FILES := \
33+ intel/intel_bufmgr.c \
34+ intel/intel_bufmgr_fake.c \
35+ intel/intel_bufmgr_gem.c \
36+ intel/intel_decode.c \
37+ intel/mm.c
38+
39+LOCAL_C_INCLUDES += \
40+ $(LOCAL_PATH)/include/drm
41+
42+LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
43+
44+LOCAL_MODULE := libdrm_intel
45+LOCAL_MODULE_TAGS := optional
46+
47+LOCAL_SHARED_LIBRARIES := libdrm
48+
49+include $(BUILD_SHARED_LIBRARY)
50+
51+include $(CLEAR_VARS)
52+
53+LOCAL_SRC_FILES := \
54+ radeon/radeon_bo_gem.c \
55+ radeon/radeon_cs_gem.c \
56+ radeon/radeon_cs_space.c \
57+ radeon/radeon_bo.c \
58+ radeon/radeon_cs.c \
59+ radeon/bof.c
60+
61+LOCAL_C_INCLUDES += \
62+ $(LOCAL_PATH)/radeon \
63+ $(LOCAL_PATH)/include/drm
64+
65+LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
66+
67+LOCAL_MODULE := libdrm_radeon
68+LOCAL_MODULE_TAGS := optional
69+
70+LOCAL_SHARED_LIBRARIES := libdrm
71+
72+include $(BUILD_SHARED_LIBRARY)
73+
74+include $(CLEAR_VARS)
75+
76+LOCAL_SRC_FILES := \
77+ nouveau/nouveau_device.c \
78+ nouveau/nouveau_channel.c \
79+ nouveau/nouveau_pushbuf.c \
80+ nouveau/nouveau_grobj.c \
81+ nouveau/nouveau_notifier.c \
82+ nouveau/nouveau_bo.c \
83+ nouveau/nouveau_resource.c \
84+ nouveau/nouveau_private.h \
85+ nouveau/nouveau_reloc.c
86+
87+LOCAL_C_INCLUDES += \
88+ $(LOCAL_PATH)/include/drm
89+
90+LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
91+
92+LOCAL_MODULE := libdrm_nouveau
93+
94+LOCAL_SHARED_LIBRARIES := libdrm
95+LOCAL_MODULE_TAGS := optional
96+
97+include $(BUILD_SHARED_LIBRARY)
98+
99+endif
--- /dev/null
+++ b/tests/modetest/Android.mk
@@ -0,0 +1,20 @@
1+LOCAL_PATH := $(call my-dir)
2+
3+include $(CLEAR_VARS)
4+
5+LOCAL_SRC_FILES := \
6+ modetest.c
7+
8+LOCAL_C_INCLUDES += \
9+ $(LOCAL_PATH)/../.. \
10+ $(LOCAL_PATH)/../../intel \
11+ $(LOCAL_PATH)/../../include/drm
12+
13+LOCAL_MODULE := modetest
14+LOCAL_MODULE_TAGS := debug
15+
16+LOCAL_SHARED_LIBRARIES := \
17+ libdrm \
18+ libdrm_intel
19+
20+include $(BUILD_EXECUTABLE)
Show on old repository browser