aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk58
-rw-r--r--amdgpu/Android.mk2
-rw-r--r--etnaviv/Android.mk1
-rw-r--r--freedreno/Android.mk2
-rw-r--r--intel/Android.mk1
-rw-r--r--libkms/Android.mk1
-rw-r--r--nouveau/Android.mk1
-rw-r--r--radeon/Android.mk1
-rw-r--r--rockchip/Android.mk2
-rw-r--r--tegra/Android.mk2
-rw-r--r--tests/modetest/Android.mk2
-rw-r--r--tests/planetest/Android.mk4
-rw-r--r--tests/proptest/Android.mk2
-rw-r--r--tests/util/Android.mk2
14 files changed, 71 insertions, 10 deletions
diff --git a/Android.mk b/Android.mk
index 90c9c338..2a980ad0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -21,8 +21,9 @@
21# IN THE SOFTWARE. 21# IN THE SOFTWARE.
22# 22#
23 23
24 24# Two identical libs are defined here.
25ifneq ($(TARGET_USE_PRIVATE_LIBDRM),true) 25# libdrm: for vendors. installed to /vendor/lib. libdrm_<vendor> uses this.
26# libdrm_platform: for platform modules (such as libminui). installed to /system/lib
26 27
27LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk 28LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
28 29
@@ -41,7 +42,58 @@ common_CFLAGS := \
41# Static library for the device (recovery) 42# Static library for the device (recovery)
42include $(CLEAR_VARS) 43include $(CLEAR_VARS)
43 44
45LOCAL_MODULE := libdrm_platform
46
47LOCAL_SRC_FILES := $(filter-out %.h,$(LIBDRM_FILES))
48LOCAL_EXPORT_C_INCLUDE_DIRS := \
49 $(LOCAL_PATH) \
50 $(LOCAL_PATH)/include/drm
51
52LOCAL_C_INCLUDES := \
53 $(LOCAL_PATH)/include/drm
54
55LOCAL_CFLAGS := \
56 $(common_CFLAGS)
57
58include $(LIBDRM_COMMON_MK)
59include $(BUILD_STATIC_LIBRARY)
60
61# Dynamic library for the device
62include $(CLEAR_VARS)
63
64LOCAL_MODULE := libdrm_platform
65
66LOCAL_SRC_FILES := $(filter-out %.h,$(LIBDRM_FILES))
67LOCAL_EXPORT_C_INCLUDE_DIRS := \
68 $(LOCAL_PATH) \
69 $(LOCAL_PATH)/include/drm
70
71LOCAL_C_INCLUDES := \
72 $(LOCAL_PATH)/include/drm
73
74LOCAL_CFLAGS := \
75 $(common_CFLAGS)
76
77include $(LIBDRM_COMMON_MK)
78include $(BUILD_SHARED_LIBRARY)
79
80
81ifneq ($(TARGET_USE_PRIVATE_LIBDRM),true)
82
83# Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES
84include $(LOCAL_PATH)/Makefile.sources
85
86common_CFLAGS := \
87 -Wno-enum-conversion \
88 -Wno-pointer-arith \
89 -Wno-sign-compare \
90 -Wno-tautological-compare
91
92# Static library for the device (recovery)
93include $(CLEAR_VARS)
94
44LOCAL_MODULE := libdrm 95LOCAL_MODULE := libdrm
96LOCAL_VENDOR_MODULE := true
45 97
46LOCAL_SRC_FILES := $(filter-out %.h,$(LIBDRM_FILES)) 98LOCAL_SRC_FILES := $(filter-out %.h,$(LIBDRM_FILES))
47LOCAL_EXPORT_C_INCLUDE_DIRS := \ 99LOCAL_EXPORT_C_INCLUDE_DIRS := \
@@ -78,4 +130,4 @@ include $(LIBDRM_COMMON_MK)
78include $(BUILD_SHARED_LIBRARY) 130include $(BUILD_SHARED_LIBRARY)
79 131
80include $(call all-makefiles-under,$(LOCAL_PATH)) 132include $(call all-makefiles-under,$(LOCAL_PATH))
81endif 133endif # if TARGET_USE_PRIVATE_LIBDRM is not true
diff --git a/amdgpu/Android.mk b/amdgpu/Android.mk
index bf0611ba..1df84b3e 100644
--- a/amdgpu/Android.mk
+++ b/amdgpu/Android.mk
@@ -5,7 +5,7 @@ include $(CLEAR_VARS)
5include $(LOCAL_PATH)/Makefile.sources 5include $(LOCAL_PATH)/Makefile.sources
6 6
7LOCAL_MODULE := libdrm_amdgpu 7LOCAL_MODULE := libdrm_amdgpu
8 8LOCAL_VENDOR_MODULE := true
9LOCAL_SHARED_LIBRARIES := libdrm 9LOCAL_SHARED_LIBRARIES := libdrm
10 10
11LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES) 11LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES)
diff --git a/etnaviv/Android.mk b/etnaviv/Android.mk
index 390f9a98..1143eac5 100644
--- a/etnaviv/Android.mk
+++ b/etnaviv/Android.mk
@@ -5,6 +5,7 @@ include $(CLEAR_VARS)
5include $(LOCAL_PATH)/Makefile.sources 5include $(LOCAL_PATH)/Makefile.sources
6 6
7LOCAL_MODULE := libdrm_etnaviv 7LOCAL_MODULE := libdrm_etnaviv
8LOCAL_VENDOR_MODULE := true
8 9
9LOCAL_SHARED_LIBRARIES := libdrm 10LOCAL_SHARED_LIBRARIES := libdrm
10 11
diff --git a/freedreno/Android.mk b/freedreno/Android.mk
index 2b582aed..c1289145 100644
--- a/freedreno/Android.mk
+++ b/freedreno/Android.mk
@@ -5,7 +5,7 @@ include $(CLEAR_VARS)
5include $(LOCAL_PATH)/Makefile.sources 5include $(LOCAL_PATH)/Makefile.sources
6 6
7LOCAL_MODULE := libdrm_freedreno 7LOCAL_MODULE := libdrm_freedreno
8 8LOCAL_VENDOR_MODULE := true
9LOCAL_SHARED_LIBRARIES := libdrm 9LOCAL_SHARED_LIBRARIES := libdrm
10 10
11LOCAL_SRC_FILES := $(LIBDRM_FREEDRENO_FILES) 11LOCAL_SRC_FILES := $(LIBDRM_FREEDRENO_FILES)
diff --git a/intel/Android.mk b/intel/Android.mk
index 2a0dc4cb..f8b27dd5 100644
--- a/intel/Android.mk
+++ b/intel/Android.mk
@@ -28,6 +28,7 @@ include $(CLEAR_VARS)
28include $(LOCAL_PATH)/Makefile.sources 28include $(LOCAL_PATH)/Makefile.sources
29 29
30LOCAL_MODULE := libdrm_intel 30LOCAL_MODULE := libdrm_intel
31LOCAL_VENDOR_MODULE := true
31 32
32# Removed dependency to libpciaccess: not used on Android 33# Removed dependency to libpciaccess: not used on Android
33LOCAL_SHARED_LIBRARIES := libdrm 34LOCAL_SHARED_LIBRARIES := libdrm
diff --git a/libkms/Android.mk b/libkms/Android.mk
index 9f81d8e3..8a38ad54 100644
--- a/libkms/Android.mk
+++ b/libkms/Android.mk
@@ -49,6 +49,7 @@ LOCAL_SRC_FILES += $(LIBKMS_RADEON_FILES)
49endif 49endif
50 50
51LOCAL_MODULE := libkms 51LOCAL_MODULE := libkms
52LOCAL_VENDOR_MODULE := true
52LOCAL_SHARED_LIBRARIES := libdrm 53LOCAL_SHARED_LIBRARIES := libdrm
53 54
54include $(LIBDRM_COMMON_MK) 55include $(LIBDRM_COMMON_MK)
diff --git a/nouveau/Android.mk b/nouveau/Android.mk
index b430af4f..27433d87 100644
--- a/nouveau/Android.mk
+++ b/nouveau/Android.mk
@@ -5,6 +5,7 @@ include $(CLEAR_VARS)
5include $(LOCAL_PATH)/Makefile.sources 5include $(LOCAL_PATH)/Makefile.sources
6 6
7LOCAL_MODULE := libdrm_nouveau 7LOCAL_MODULE := libdrm_nouveau
8LOCAL_VENDOR_MODULE := true
8 9
9LOCAL_SHARED_LIBRARIES := libdrm 10LOCAL_SHARED_LIBRARIES := libdrm
10 11
diff --git a/radeon/Android.mk b/radeon/Android.mk
index 71040dab..7bc9cee9 100644
--- a/radeon/Android.mk
+++ b/radeon/Android.mk
@@ -5,6 +5,7 @@ include $(CLEAR_VARS)
5include $(LOCAL_PATH)/Makefile.sources 5include $(LOCAL_PATH)/Makefile.sources
6 6
7LOCAL_MODULE := libdrm_radeon 7LOCAL_MODULE := libdrm_radeon
8LOCAL_VENDOR_MODULE := true
8 9
9LOCAL_SHARED_LIBRARIES := libdrm 10LOCAL_SHARED_LIBRARIES := libdrm
10 11
diff --git a/rockchip/Android.mk b/rockchip/Android.mk
index 82b3b00a..8f561cd9 100644
--- a/rockchip/Android.mk
+++ b/rockchip/Android.mk
@@ -14,4 +14,6 @@ LOCAL_CFLAGS := \
14LOCAL_SHARED_LIBRARIES := \ 14LOCAL_SHARED_LIBRARIES := \
15 libdrm 15 libdrm
16 16
17LOCAL_VENDOR_MODULE := true
18
17include $(BUILD_SHARED_LIBRARY) 19include $(BUILD_SHARED_LIBRARY)
diff --git a/tegra/Android.mk b/tegra/Android.mk
index 7300728c..cae4ff68 100644
--- a/tegra/Android.mk
+++ b/tegra/Android.mk
@@ -14,4 +14,6 @@ LOCAL_CFLAGS := \
14LOCAL_SHARED_LIBRARIES := \ 14LOCAL_SHARED_LIBRARIES := \
15 libdrm 15 libdrm
16 16
17LOCAL_VENDOR_MODULE := true
18
17include $(BUILD_SHARED_LIBRARY) 19include $(BUILD_SHARED_LIBRARY)
diff --git a/tests/modetest/Android.mk b/tests/modetest/Android.mk
index ab40b806..4f9b02d3 100644
--- a/tests/modetest/Android.mk
+++ b/tests/modetest/Android.mk
@@ -7,7 +7,7 @@ LOCAL_SRC_FILES := $(filter-out %.h,$(MODETEST_FILES))
7 7
8LOCAL_MODULE := modetest 8LOCAL_MODULE := modetest
9 9
10LOCAL_SHARED_LIBRARIES := libdrm 10LOCAL_SHARED_LIBRARIES := libdrm_platform
11LOCAL_STATIC_LIBRARIES := libdrm_util 11LOCAL_STATIC_LIBRARIES := libdrm_util
12 12
13LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 13LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
diff --git a/tests/planetest/Android.mk b/tests/planetest/Android.mk
index 4a56d135..0c30968a 100644
--- a/tests/planetest/Android.mk
+++ b/tests/planetest/Android.mk
@@ -9,7 +9,7 @@ LOCAL_SRC_FILES := $(filter-out %.h,$(PLANETEST_COMMON_FILES) $(PLANETEST_FILES)
9 9
10LOCAL_MODULE := planetest 10LOCAL_MODULE := planetest
11 11
12LOCAL_SHARED_LIBRARIES := libdrm 12LOCAL_SHARED_LIBRARIES := libdrm_platform
13 13
14include $(BUILD_EXECUTABLE) 14include $(BUILD_EXECUTABLE)
15 15
@@ -22,6 +22,6 @@ LOCAL_SRC_FILES := $(filter-out %.h,$(PLANETEST_COMMON_FILES) $(ATOMICTEST_FILES
22 22
23LOCAL_MODULE := atomictest 23LOCAL_MODULE := atomictest
24 24
25LOCAL_SHARED_LIBRARIES := libdrm 25LOCAL_SHARED_LIBRARIES := libdrm_platform
26 26
27include $(BUILD_EXECUTABLE) 27include $(BUILD_EXECUTABLE)
diff --git a/tests/proptest/Android.mk b/tests/proptest/Android.mk
index 588fbed2..eaada3b1 100644
--- a/tests/proptest/Android.mk
+++ b/tests/proptest/Android.mk
@@ -7,7 +7,7 @@ LOCAL_SRC_FILES := $(PROPTEST_FILES)
7 7
8LOCAL_MODULE := proptest 8LOCAL_MODULE := proptest
9 9
10LOCAL_SHARED_LIBRARIES := libdrm 10LOCAL_SHARED_LIBRARIES := libdrm_platform
11LOCAL_STATIC_LIBRARIES := libdrm_util 11LOCAL_STATIC_LIBRARIES := libdrm_util
12 12
13LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 13LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
diff --git a/tests/util/Android.mk b/tests/util/Android.mk
index 7656c4c2..44c524d2 100644
--- a/tests/util/Android.mk
+++ b/tests/util/Android.mk
@@ -28,7 +28,7 @@ include $(LOCAL_PATH)/Makefile.sources
28 28
29LOCAL_MODULE := libdrm_util 29LOCAL_MODULE := libdrm_util
30 30
31LOCAL_SHARED_LIBRARIES := libdrm 31LOCAL_SHARED_LIBRARIES := libdrm_platform
32 32
33LOCAL_SRC_FILES := $(UTIL_FILES) 33LOCAL_SRC_FILES := $(UTIL_FILES)
34 34