blob: ec6d5322bb9ea3389af4dd92a6cdc2c9f264ffd3 [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)
27include $(CLEAR_VARS)
28
Emil Velikov98ec08d2014-09-07 15:31:00 +010029# Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES
Emil Velikov0a929532014-07-27 17:27:50 +010030include $(LOCAL_PATH)/Makefile.sources
31
Sumit Semwal682eaa02016-01-29 10:00:47 -060032#static library for the device (recovery)
33include $(CLEAR_VARS)
Emil Velikov0a929532014-07-27 17:27:50 +010034LOCAL_MODULE := libdrm
Emil Velikov0a929532014-07-27 17:27:50 +010035
Emil Velikov03d2e912017-01-22 16:59:42 +000036LOCAL_SRC_FILES := $(LIBDRM_FILES)
Emil Velikov24ac8cd2015-03-17 23:30:08 +000037LOCAL_EXPORT_C_INCLUDE_DIRS := \
Emil Velikovb26dc002012-04-27 13:20:53 -050038 $(LOCAL_PATH) \
39 $(LOCAL_PATH)/include/drm
Emil Velikov0a929532014-07-27 17:27:50 +010040
41LOCAL_C_INCLUDES := \
Chih-Wei Huang3b4f9fe2015-03-19 00:26:59 +080042 $(LOCAL_PATH)/include/drm
Emil Velikov0a929532014-07-27 17:27:50 +010043
44LOCAL_CFLAGS := \
Emil Velikov03d2e912017-01-22 16:59:42 +000045 -DHAVE_VISIBILITY=1
46
47include $(LIBDRM_COMMON_MK)
Sumit Semwal682eaa02016-01-29 10:00:47 -060048include $(BUILD_STATIC_LIBRARY)
Emil Velikov0a929532014-07-27 17:27:50 +010049
Sumit Semwal682eaa02016-01-29 10:00:47 -060050# Shared library for the device
51include $(CLEAR_VARS)
52LOCAL_MODULE := libdrm
Sumit Semwal682eaa02016-01-29 10:00:47 -060053
Emil Velikov03d2e912017-01-22 16:59:42 +000054LOCAL_SRC_FILES := $(LIBDRM_FILES)
Sumit Semwal682eaa02016-01-29 10:00:47 -060055LOCAL_EXPORT_C_INCLUDE_DIRS := \
Sumit Semwal682eaa02016-01-29 10:00:47 -060056 $(LOCAL_PATH)/include/drm
57
58LOCAL_C_INCLUDES := \
59 $(LOCAL_PATH)/include/drm
60
61LOCAL_CFLAGS := \
Emil Velikov03d2e912017-01-22 16:59:42 +000062 -DHAVE_VISIBILITY=1
63
64include $(LIBDRM_COMMON_MK)
Emil Velikov0a929532014-07-27 17:27:50 +010065include $(BUILD_SHARED_LIBRARY)
66
Chih-Wei Huanga3b3c1a2015-03-20 17:05:46 +000067include $(call all-makefiles-under,$(LOCAL_PATH))