|
Packit Service |
103f6b |
#
|
|
Packit Service |
103f6b |
# Copyright © 2011-2012 Intel Corporation
|
|
Packit Service |
103f6b |
#
|
|
Packit Service |
103f6b |
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
Packit Service |
103f6b |
# copy of this software and associated documentation files (the "Software"),
|
|
Packit Service |
103f6b |
# to deal in the Software without restriction, including without limitation
|
|
Packit Service |
103f6b |
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
Packit Service |
103f6b |
# and/or sell copies of the Software, and to permit persons to whom the
|
|
Packit Service |
103f6b |
# Software is furnished to do so, subject to the following conditions:
|
|
Packit Service |
103f6b |
#
|
|
Packit Service |
103f6b |
# The above copyright notice and this permission notice (including the next
|
|
Packit Service |
103f6b |
# paragraph) shall be included in all copies or substantial portions of the
|
|
Packit Service |
103f6b |
# Software.
|
|
Packit Service |
103f6b |
#
|
|
Packit Service |
103f6b |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
Packit Service |
103f6b |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
Packit Service |
103f6b |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
Packit Service |
103f6b |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
Packit Service |
103f6b |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
Packit Service |
103f6b |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
Packit Service |
103f6b |
# IN THE SOFTWARE.
|
|
Packit Service |
103f6b |
#
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LIBDRM_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
|
|
Packit Service |
103f6b |
ifneq ($(filter 2 4, $(LIBDRM_ANDROID_MAJOR_VERSION)),)
|
|
Packit Service |
103f6b |
$(error "Android 4.4 and earlier not supported")
|
|
Packit Service |
103f6b |
endif
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LOCAL_PATH := $(call my-dir)
|
|
Packit Service |
103f6b |
LIBDRM_TOP := $(LOCAL_PATH)
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
include $(CLEAR_VARS)
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
# Import variables LIBDRM_{,H,INCLUDE_H,INCLUDE_ANDROID_H,INCLUDE_VMWGFX_H}_FILES
|
|
Packit Service |
103f6b |
include $(LOCAL_PATH)/Makefile.sources
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
#static library for the device (recovery)
|
|
Packit Service |
103f6b |
include $(CLEAR_VARS)
|
|
Packit Service |
103f6b |
LOCAL_MODULE := libdrm
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LOCAL_SRC_FILES := $(LIBDRM_FILES)
|
|
Packit Service |
103f6b |
LOCAL_EXPORT_C_INCLUDE_DIRS := \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH) \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH)/include/drm \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH)/android
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LOCAL_C_INCLUDES := \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH)/include/drm
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
include $(LIBDRM_COMMON_MK)
|
|
Packit Service |
103f6b |
include $(BUILD_STATIC_LIBRARY)
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
# Shared library for the device
|
|
Packit Service |
103f6b |
include $(CLEAR_VARS)
|
|
Packit Service |
103f6b |
LOCAL_MODULE := libdrm
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LOCAL_SRC_FILES := $(LIBDRM_FILES)
|
|
Packit Service |
103f6b |
LOCAL_EXPORT_C_INCLUDE_DIRS := \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH) \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH)/include/drm \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH)/android
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LOCAL_SHARED_LIBRARIES := \
|
|
Packit Service |
103f6b |
libcutils
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
LOCAL_C_INCLUDES := \
|
|
Packit Service |
103f6b |
$(LOCAL_PATH)/include/drm
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
include $(LIBDRM_COMMON_MK)
|
|
Packit Service |
103f6b |
include $(BUILD_SHARED_LIBRARY)
|
|
Packit Service |
103f6b |
|
|
Packit Service |
103f6b |
include $(call all-makefiles-under,$(LOCAL_PATH))
|