blob: 292be236026394cbcfc26892ee621b3e57b431e2 [file] [log] [blame]
Emil Velikov0a929532014-07-27 17:27:50 +01001#
Emil Velikovb26dc002012-04-27 13:20:53 -05002# Copyright © 2011-2012 Intel Corporation
Emil Velikov0a929532014-07-27 17:27:50 +01003#
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and/or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice (including the next
12# paragraph) shall be included in all copies or substantial portions of the
13# Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21# IN THE SOFTWARE.
22#
23
Emil Velikov03d2e912017-01-22 16:59:42 +000024LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
25
Emil Velikov0a929532014-07-27 17:27:50 +010026LOCAL_PATH := $(call my-dir)
Rob Herringc4d673a2017-03-22 14:05:24 -050027LIBDRM_TOP := $(LOCAL_PATH)
28
Emil Velikov0a929532014-07-27 17:27:50 +010029include $(CLEAR_VARS)
30
Emil Velikov98ec08d2014-09-07 15:31:00 +010031# Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES
Emil Velikov0a929532014-07-27 17:27:50 +010032include $(LOCAL_PATH)/Makefile.sources
33
Sumit Semwal682eaa02016-01-29 10:00:47 -060034#static library for the device (recovery)
35include $(CLEAR_VARS)
Emil Velikov0a929532014-07-27 17:27:50 +010036LOCAL_MODULE := libdrm
Emil Velikov0a929532014-07-27 17:27:50 +010037
Emil Velikov03d2e912017-01-22 16:59:42 +000038LOCAL_SRC_FILES := $(LIBDRM_FILES)
Emil Velikov24ac8cd2015-03-17 23:30:08 +000039LOCAL_EXPORT_C_INCLUDE_DIRS := \
Emil Velikovb26dc002012-04-27 13:20:53 -050040 $(LOCAL_PATH) \
41 $(LOCAL_PATH)/include/drm
Emil Velikov0a929532014-07-27 17:27:50 +010042
43LOCAL_C_INCLUDES := \
Chih-Wei Huang3b4f9fe2015-03-19 00:26:59 +080044 $(LOCAL_PATH)/include/drm
Emil Velikov0a929532014-07-27 17:27:50 +010045
Emil Velikov03d2e912017-01-22 16:59:42 +000046include $(LIBDRM_COMMON_MK)
Sumit Semwal682eaa02016-01-29 10:00:47 -060047include $(BUILD_STATIC_LIBRARY)
Emil Velikov0a929532014-07-27 17:27:50 +010048
Sumit Semwal682eaa02016-01-29 10:00:47 -060049# Shared library for the device
50include $(CLEAR_VARS)
51LOCAL_MODULE := libdrm
Sumit Semwal682eaa02016-01-29 10:00:47 -060052
Emil Velikov03d2e912017-01-22 16:59:42 +000053LOCAL_SRC_FILES := $(LIBDRM_FILES)
Sumit Semwal682eaa02016-01-29 10:00:47 -060054LOCAL_EXPORT_C_INCLUDE_DIRS := \
Sumit Semwal682eaa02016-01-29 10:00:47 -060055 $(LOCAL_PATH)/include/drm
56
57LOCAL_C_INCLUDES := \
58 $(LOCAL_PATH)/include/drm
59
Emil Velikov03d2e912017-01-22 16:59:42 +000060include $(LIBDRM_COMMON_MK)
Emil Velikov0a929532014-07-27 17:27:50 +010061include $(BUILD_SHARED_LIBRARY)
62
Chih-Wei Huanga3b3c1a2015-03-20 17:05:46 +000063include $(call all-makefiles-under,$(LOCAL_PATH))