summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2012-04-27 13:20:53 -0500
committerEmil Velikov2014-09-01 10:06:02 -0500
commitb26dc002f7834f49b99822a1608a99de2fbac74e (patch)
tree3d51dcd24d99a4a1ca5bccbe3a84313c755538bb /Android.mk
parent0a92953e7022a400fabe0407ff8b9bc67f423970 (diff)
downloadexternal-libdrm-b26dc002f7834f49b99822a1608a99de2fbac74e.tar.gz
external-libdrm-b26dc002f7834f49b99822a1608a99de2fbac74e.tar.xz
external-libdrm-b26dc002f7834f49b99822a1608a99de2fbac74e.zip
libdrm,intel: rework android header handling
Contains the following patches squashed in: commit 99247a5bd724ddcf0f06a5518baad207c53f1e2b Author: Haitao Huang <haitao.huang@intel.com> Date: Fri, 27 Apr 2012 13:20:53 -0500 Android.mk: use LOCAL_COPY_HEADERS to export headers. Export necessary header files used by other components for Android, such as libva intel-driver, gralloc, hwcomposer, etc. Change-Id: I2feabf6941379ef4d756e942f30eba059de641f1 Signed-off-by: Haitao Huang <haitao.huang@intel.com> [chad: Fixed inconsistent indentation.] Signed-off-by: Chad Versace <chad.versace@linux.intel.com> commit 7d0b528cb69995d7ea4e29b2daa1e3b28a362f42 Author: Emil Velikov <emil.l.velikov@gmail.com> Date: Sun, 27 Jul 2014 18:22:41 +0100 android: reuse headers lists, separate libdrm from intel headers Rather than having a duplicate copy of the headers list(s), reuse the existing one(s). Distinguish that the intel headers should be copied when libdrm_intel is used. v2 Rename the headers variable(s) to *_H_FILES. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> commit 361de3ba4cadd5357596d1537bb3f216d281532b Author: Piotr Luc <piotr.luc@intel.com> Date: Fri, 14 Jun 2013 13:00:39 +0200 Export include dir from libdrm BZ: 116218 Google introduced new method of specifying include path(s) between modules. This allows a module to include header from a library without directly specifyining by includer the path where headers are located. The method requires from library that holds headers to export include path(s) in LOCAL_EXPORT_C_INCLUDE_DIRS variable. These exported include path(s) are automatically added to include path(s) of modules that have name of the library in the LOCAL_SHARED_LIBRARIES or LOCAL_STATIC_LIBRARIES list. This change sets LOCAL_EXPORT_C_INCLUDE_DIRS to folders that contain headers file that used by other modules in order to export these paths. Change-Id: Id1ac885b31ef2efe194e0289fbcaecd9eb533df0 Signed-off-by: Piotr Luc <piotr.luc@intel.com> Reviewed-on: http://android.intel.com:8080/113562 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Luc, Piotr <Piotr.Luc@intel.com> Reviewed-by: Purushothaman, Vijay A <vijay.a.purushothaman@intel.com> Reviewed-by: Stimson, Dale B <dale.b.stimson@intel.com> Tested-by: Stimson, Dale B <dale.b.stimson@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com> commit 2bf22fcbd4cbb9e7c7764d5eff0bb4e75ab1a005 Author: Emil Velikov <emil.l.velikov@gmail.com> Date: 27 Jul 2014 18:27:21 +0100 android: Separate libdrm and intel LOCAL_EXPORT_C_INCLUDE_DIRS Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index afe59ce5..795e554c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,5 +1,5 @@
1# 1#
2# Copyright © 2011 Intel Corporation 2# Copyright © 2011-2012 Intel Corporation
3# 3#
4# Permission is hereby granted, free of charge, to any person obtaining a 4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"), 5# copy of this software and associated documentation files (the "Software"),
@@ -26,13 +26,18 @@ include $(CLEAR_VARS)
26 26
27LIBDRM_TOP := $(LOCAL_PATH) 27LIBDRM_TOP := $(LOCAL_PATH)
28 28
29# Import variables LIBDRM_FILES, LIBDRM_HEADERS 29# Import variables LIBDRM_FILES, LIBDRM_H_FILES
30include $(LOCAL_PATH)/Makefile.sources 30include $(LOCAL_PATH)/Makefile.sources
31# Import variables LIBDRM_INCLUDE_H_FILES, LIBDRM_INCLUDE_VMWGFX_H_FILES
32include $(LOCAL_PATH)/include/drm/Makefile.sources
31 33
32LOCAL_MODULE := libdrm 34LOCAL_MODULE := libdrm
33LOCAL_MODULE_TAGS := optional 35LOCAL_MODULE_TAGS := optional
34 36
35LOCAL_SRC_FILES := $(LIBDRM_FILES) 37LOCAL_SRC_FILES := $(LIBDRM_FILES)
38LOCAL_EXPORT_C_INCLUDE_DIRS += \
39 $(LOCAL_PATH) \
40 $(LOCAL_PATH)/include/drm
36 41
37LOCAL_C_INCLUDES := \ 42LOCAL_C_INCLUDES := \
38 $(LIBDRM_TOP)/include/drm 43 $(LIBDRM_TOP)/include/drm
@@ -40,6 +45,12 @@ LOCAL_C_INCLUDES := \
40LOCAL_CFLAGS := \ 45LOCAL_CFLAGS := \
41 -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 46 -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
42 47
48LOCAL_COPY_HEADERS := \
49 $(LIBDRM_H_FILES) \
50 $(addprefix include/drm/,$(LIBDRM_INCLUDE_H_FILES)) \
51 $(addprefix include/drm/,$(LIBDRM_INCLUDE_VMWGFX_H_FILES))
52
53LOCAL_COPY_HEADERS_TO := libdrm
43include $(BUILD_SHARED_LIBRARY) 54include $(BUILD_SHARED_LIBRARY)
44 55
45include $(LOCAL_PATH)/intel/Android.mk 56include $(LOCAL_PATH)/intel/Android.mk