Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 1 | # |
Emil Velikov | b26dc00 | 2012-04-27 13:20:53 -0500 | [diff] [blame] | 2 | # Copyright © 2011-2012 Intel Corporation |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 3 | # |
| 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 Velikov | 03d2e91 | 2017-01-22 16:59:42 +0000 | [diff] [blame] | 24 | LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk |
| 25 | |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 26 | LOCAL_PATH := $(call my-dir) |
Rob Herring | c4d673a | 2017-03-22 14:05:24 -0500 | [diff] [blame] | 27 | LIBDRM_TOP := $(LOCAL_PATH) |
| 28 | |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 29 | include $(CLEAR_VARS) |
| 30 | |
Robert Foss | a4b6fd6 | 2017-12-06 19:28:13 +0100 | [diff] [blame] | 31 | # Import variables LIBDRM_{,H,INCLUDE_H,INCLUDE_ANDROID_H,INCLUDE_VMWGFX_H}_FILES |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 32 | include $(LOCAL_PATH)/Makefile.sources |
| 33 | |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 34 | #static library for the device (recovery) |
| 35 | include $(CLEAR_VARS) |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 36 | LOCAL_MODULE := libdrm |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 37 | |
Emil Velikov | 03d2e91 | 2017-01-22 16:59:42 +0000 | [diff] [blame] | 38 | LOCAL_SRC_FILES := $(LIBDRM_FILES) |
Emil Velikov | 24ac8cd | 2015-03-17 23:30:08 +0000 | [diff] [blame] | 39 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
Emil Velikov | b26dc00 | 2012-04-27 13:20:53 -0500 | [diff] [blame] | 40 | $(LOCAL_PATH) \ |
Robert Foss | a4b6fd6 | 2017-12-06 19:28:13 +0100 | [diff] [blame] | 41 | $(LOCAL_PATH)/include/drm \ |
| 42 | $(LOCAL_PATH)/android |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 43 | |
| 44 | LOCAL_C_INCLUDES := \ |
Chih-Wei Huang | 3b4f9fe | 2015-03-19 00:26:59 +0800 | [diff] [blame] | 45 | $(LOCAL_PATH)/include/drm |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 46 | |
Emil Velikov | 03d2e91 | 2017-01-22 16:59:42 +0000 | [diff] [blame] | 47 | include $(LIBDRM_COMMON_MK) |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 48 | include $(BUILD_STATIC_LIBRARY) |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 49 | |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 50 | # Shared library for the device |
| 51 | include $(CLEAR_VARS) |
| 52 | LOCAL_MODULE := libdrm |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 53 | |
Emil Velikov | 03d2e91 | 2017-01-22 16:59:42 +0000 | [diff] [blame] | 54 | LOCAL_SRC_FILES := $(LIBDRM_FILES) |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 55 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 56 | $(LOCAL_PATH)/include/drm |
| 57 | |
Robert Foss | a4b6fd6 | 2017-12-06 19:28:13 +0100 | [diff] [blame] | 58 | LOCAL_SHARED_LIBRARIES := \ |
| 59 | libcutils |
| 60 | |
Sumit Semwal | 682eaa0 | 2016-01-29 10:00:47 -0600 | [diff] [blame] | 61 | LOCAL_C_INCLUDES := \ |
| 62 | $(LOCAL_PATH)/include/drm |
| 63 | |
Emil Velikov | 03d2e91 | 2017-01-22 16:59:42 +0000 | [diff] [blame] | 64 | include $(LIBDRM_COMMON_MK) |
Emil Velikov | 0a92953 | 2014-07-27 17:27:50 +0100 | [diff] [blame] | 65 | include $(BUILD_SHARED_LIBRARY) |
| 66 | |
Chih-Wei Huang | a3b3c1a | 2015-03-20 17:05:46 +0000 | [diff] [blame] | 67 | include $(call all-makefiles-under,$(LOCAL_PATH)) |