aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk133
1 files changed, 0 insertions, 133 deletions
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index 2a980ad0..00000000
--- a/Android.mk
+++ /dev/null
@@ -1,133 +0,0 @@
1#
2# Copyright © 2011-2012 Intel Corporation
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
24# Two identical libs are defined here.
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
27
28LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
29
30LOCAL_PATH := $(call my-dir)
31
32# Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES
33include $(LOCAL_PATH)/Makefile.sources
34
35common_CFLAGS := \
36 -Wall -Werror \
37 -Wno-enum-conversion \
38 -Wno-pointer-arith \
39 -Wno-sign-compare \
40 -Wno-tautological-compare
41
42# Static library for the device (recovery)
43include $(CLEAR_VARS)
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
95LOCAL_MODULE := libdrm
96LOCAL_VENDOR_MODULE := true
97
98LOCAL_SRC_FILES := $(filter-out %.h,$(LIBDRM_FILES))
99LOCAL_EXPORT_C_INCLUDE_DIRS := \
100 $(LOCAL_PATH) \
101 $(LOCAL_PATH)/include/drm
102
103LOCAL_C_INCLUDES := \
104 $(LOCAL_PATH)/include/drm
105
106LOCAL_CFLAGS := \
107 $(common_CFLAGS)
108
109include $(LIBDRM_COMMON_MK)
110include $(BUILD_STATIC_LIBRARY)
111
112# Dynamic library for the device
113include $(CLEAR_VARS)
114
115LOCAL_MODULE := libdrm
116LOCAL_VENDOR_MODULE := true
117
118LOCAL_SRC_FILES := $(filter-out %.h,$(LIBDRM_FILES))
119LOCAL_EXPORT_C_INCLUDE_DIRS := \
120 $(LOCAL_PATH) \
121 $(LOCAL_PATH)/include/drm
122
123LOCAL_C_INCLUDES := \
124 $(LOCAL_PATH)/include/drm
125
126LOCAL_CFLAGS := \
127 $(common_CFLAGS)
128
129include $(LIBDRM_COMMON_MK)
130include $(BUILD_SHARED_LIBRARY)
131
132include $(call all-makefiles-under,$(LOCAL_PATH))
133endif # if TARGET_USE_PRIVATE_LIBDRM is not true