projects
/
platform
/
upstream
/
libdrm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
packaging: set pc file name for devel package explicitly
[platform/upstream/libdrm.git]
/
Android.mk
diff --git
a/Android.mk
b/Android.mk
index
5209059
..
0ab6f0f
100644
(file)
--- a/
Android.mk
+++ b/
Android.mk
@@
-21,12
+21,19
@@
# IN THE SOFTWARE.
#
# IN THE SOFTWARE.
#
+LIBDRM_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
+ifneq ($(filter 2 4, $(LIBDRM_ANDROID_MAJOR_VERSION)),)
+$(error "Android 4.4 and earlier not supported")
+endif
+
LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
LOCAL_PATH := $(call my-dir)
LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
LOCAL_PATH := $(call my-dir)
+LIBDRM_TOP := $(LOCAL_PATH)
+
include $(CLEAR_VARS)
include $(CLEAR_VARS)
-# Import variables LIBDRM_{,H
_,INCLUDE_H_,INCLUDE_VMWGFX_H_}
FILES
+# Import variables LIBDRM_{,H
,INCLUDE_H,INCLUDE_ANDROID_H,INCLUDE_VMWGFX_H}_
FILES
include $(LOCAL_PATH)/Makefile.sources
#static library for the device (recovery)
include $(LOCAL_PATH)/Makefile.sources
#static library for the device (recovery)
@@
-36,7
+43,8
@@
LOCAL_MODULE := libdrm
LOCAL_SRC_FILES := $(LIBDRM_FILES)
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH) \
LOCAL_SRC_FILES := $(LIBDRM_FILES)
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH) \
- $(LOCAL_PATH)/include/drm
+ $(LOCAL_PATH)/include/drm \
+ $(LOCAL_PATH)/android
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include/drm
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include/drm
@@
-50,7
+58,12
@@
LOCAL_MODULE := libdrm
LOCAL_SRC_FILES := $(LIBDRM_FILES)
LOCAL_EXPORT_C_INCLUDE_DIRS := \
LOCAL_SRC_FILES := $(LIBDRM_FILES)
LOCAL_EXPORT_C_INCLUDE_DIRS := \
- $(LOCAL_PATH)/include/drm
+ $(LOCAL_PATH) \
+ $(LOCAL_PATH)/include/drm \
+ $(LOCAL_PATH)/android
+
+LOCAL_SHARED_LIBRARIES := \
+ libcutils
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include/drm
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include/drm