aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2015-10-07 20:03:32 -0500
committerVishal Mahaveer2015-10-07 20:05:43 -0500
commit0c23cc776bfa78c3780c3a93dc7f3fdc0e335634 (patch)
tree94c45176bf084377a9f76d685316811aa8332e4c
parentcc8b4d68aca722848bf859b89174137952398b5e (diff)
downloadlibdrm-marshmallow.tar.gz
libdrm-marshmallow.tar.xz
libdrm-marshmallow.zip
android: update makefile to build libdrm as staticmarshmallow
Android needs libdrm as static library also for recvoery UI Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--Android.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index b09e693e..50f93e56 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,6 +24,9 @@ LOCAL_SRC_FILES := \
24 xf86drmRandom.c \ 24 xf86drmRandom.c \
25 xf86drmSL.c 25 xf86drmSL.c
26 26
27LOCAL_EXPORT_C_INCLUDE_DIRS += \
28$(LOCAL_PATH) $(LOCAL_PATH)/include/drm
29
27LOCAL_C_INCLUDES += \ 30LOCAL_C_INCLUDES += \
28 $(LOCAL_PATH)/include/drm 31 $(LOCAL_PATH)/include/drm
29 32
@@ -32,6 +35,27 @@ LOCAL_MODULE_TAGS := optional
32 35
33include $(BUILD_SHARED_LIBRARY) 36include $(BUILD_SHARED_LIBRARY)
34 37
38# Build static for recovery UI
39include $(CLEAR_VARS)
40
41LOCAL_SRC_FILES := \
42 xf86drm.c \
43 xf86drmHash.c \
44 xf86drmMode.c \
45 xf86drmRandom.c \
46 xf86drmSL.c
47
48LOCAL_EXPORT_C_INCLUDE_DIRS += \
49$(LOCAL_PATH) $(LOCAL_PATH)/include/drm
50
51LOCAL_C_INCLUDES += \
52 $(LOCAL_PATH)/include/drm
53
54LOCAL_MODULE := libdrm
55LOCAL_MODULE_TAGS := optional
56
57include $(BUILD_STATIC_LIBRARY)
58
35################ OMAP DRM Lib ####################### 59################ OMAP DRM Lib #######################
36 60
37include $(CLEAR_VARS) 61include $(CLEAR_VARS)