aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2014-07-27 20:38:35 -0500
committerEmil Velikov2014-09-01 10:06:02 -0500
commita8ce03f35f17cd0f6fa90fde745d50c5a211b664 (patch)
treef8e83da0541c8096d7993cae99b07296b2de6020 /freedreno/Android.mk
parent41bfc07fe5f2a651a7d6a8579807e830bf0ebf8b (diff)
downloadexternal-libdrm-a8ce03f35f17cd0f6fa90fde745d50c5a211b664.tar.gz
external-libdrm-a8ce03f35f17cd0f6fa90fde745d50c5a211b664.tar.xz
external-libdrm-a8ce03f35f17cd0f6fa90fde745d50c5a211b664.zip
freedreno: 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 'freedreno/Android.mk')
-rw-r--r--freedreno/Android.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/freedreno/Android.mk b/freedreno/Android.mk
new file mode 100644
index 00000000..243a1e23
--- /dev/null
+++ b/freedreno/Android.mk
@@ -0,0 +1,30 @@
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4# Import variables LIBDRM_FREEDRENO_FILES, LIBDRM_FREEDRENO_H_FILES
5include $(LOCAL_PATH)/Makefile.sources
6
7LOCAL_MODULE := libdrm_freedreno
8LOCAL_MODULE_TAGS := optional
9
10LOCAL_SHARED_LIBRARIES := libdrm
11
12LOCAL_SRC_FILES := $(LIBDRM_FREEDRENO_FILES)
13LOCAL_EXPORT_C_INCLUDE_DIRS += \
14 $(LOCAL_PATH)/freedreno
15
16LOCAL_C_INCLUDES := \
17 $(LIBDRM_TOP) \
18 $(LIBDRM_TOP)/freedreno \
19 $(LIBDRM_TOP)/include/drm
20
21LOCAL_CFLAGS := \
22 -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
23
24LOCAL_COPY_HEADERS := $(LIBDRM_FREEDRENO_H_FILES)
25LOCAL_COPY_HEADERS_TO := freedreno
26
27LOCAL_SHARED_LIBRARIES := \
28 libdrm
29
30include $(BUILD_SHARED_LIBRARY)