aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorEmil Velikov2014-07-27 12:51:59 -0500
committerEmil Velikov2014-09-01 10:06:02 -0500
commitadb1cdcdde23f21ad4dd21725e8a759c13c18dbf (patch)
treeaa063a5838c129b9377110a1f55fedc59abe3589 /radeon
parentb26dc002f7834f49b99822a1608a99de2fbac74e (diff)
downloadexternal-libdrm-adb1cdcdde23f21ad4dd21725e8a759c13c18dbf.tar.gz
external-libdrm-adb1cdcdde23f21ad4dd21725e8a759c13c18dbf.tar.xz
external-libdrm-adb1cdcdde23f21ad4dd21725e8a759c13c18dbf.zip
radeon: add Android build support
v2 Rename the headers variable(s) to *_H_FILES. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/Android.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/radeon/Android.mk b/radeon/Android.mk
new file mode 100644
index 00000000..9cba546c
--- /dev/null
+++ b/radeon/Android.mk
@@ -0,0 +1,30 @@
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4# Import variables LIBDRM_RADEON_FILES, LIBDRM_RADEON_H_FILES
5include $(LOCAL_PATH)/Makefile.sources
6
7LOCAL_MODULE := libdrm_radeon
8LOCAL_MODULE_TAGS := optional
9
10LOCAL_SHARED_LIBRARIES := libdrm
11
12LOCAL_SRC_FILES := $(LIBDRM_RADEON_FILES)
13LOCAL_EXPORT_C_INCLUDE_DIRS += \
14 $(LOCAL_PATH)/radeon
15
16LOCAL_C_INCLUDES := \
17 $(LIBDRM_TOP) \
18 $(LIBDRM_TOP)/radeon \
19 $(LIBDRM_TOP)/include/drm
20
21LOCAL_CFLAGS := \
22 -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
23
24LOCAL_COPY_HEADERS := $(LIBDRM_RADEON_H_FILES)
25LOCAL_COPY_HEADERS_TO := libdrm
26
27LOCAL_SHARED_LIBRARIES := \
28 libdrm
29
30include $(BUILD_SHARED_LIBRARY)