aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
diff options
context:
space:
mode:
authorEmil Velikov2014-09-07 12:13:10 -0500
committerEmil Velikov2014-09-28 11:09:34 -0500
commita3dfd6d40db6f089ea581d62ddf07ab2290dac9e (patch)
tree7e84416b5d49e6e5312b817b04c419b296187069 /libkms
parent1a75044a3905f9f4664e57e37e3fb216dfb7a8f7 (diff)
downloadexternal-libdrm-a3dfd6d40db6f089ea581d62ddf07ab2290dac9e.tar.gz
external-libdrm-a3dfd6d40db6f089ea581d62ddf07ab2290dac9e.tar.xz
external-libdrm-a3dfd6d40db6f089ea581d62ddf07ab2290dac9e.zip
libkms: add Android build
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'libkms')
-rw-r--r--libkms/Android.mk53
1 files changed, 53 insertions, 0 deletions
diff --git a/libkms/Android.mk b/libkms/Android.mk
new file mode 100644
index 00000000..d2df32a8
--- /dev/null
+++ b/libkms/Android.mk
@@ -0,0 +1,53 @@
1DRM_GPU_DRIVERS := $(strip $(filter-out swrast, $(BOARD_GPU_DRIVERS)))
2
3intel_drivers := i915 i965 i915g ilo
4radeon_drivers := r300g r600g radeonsi
5nouveau_drivers := nouveau
6vmwgfx_drivers := vmwgfx
7
8valid_drivers := \
9 $(intel_drivers) \
10 $(radeon_drivers) \
11 $(nouveau_drivers) \
12 $(vmwgfx_drivers)
13
14# warn about invalid drivers
15invalid_drivers := $(filter-out $(valid_drivers), $(DRM_GPU_DRIVERS))
16ifneq ($(invalid_drivers),)
17$(warning invalid GPU drivers: $(invalid_drivers))
18# tidy up
19DRM_GPU_DRIVERS := $(filter-out $(invalid_drivers), $(DRM_GPU_DRIVERS))
20endif
21
22LOCAL_PATH := $(call my-dir)
23
24include $(CLEAR_VARS)
25include $(LOCAL_PATH)/Makefile.sources
26
27LOCAL_SRC_FILES := $(LIBKMS_FILES)
28
29ifneq ($(filter $(vmwgfx_drivers), $(DRM_GPU_DRIVERS)),)
30LOCAL_SRC_FILES += $(LIBKMS_VMWGFX_FILES)
31endif
32
33ifneq ($(filter $(intel_drivers), $(DRM_GPU_DRIVERS)),)
34LOCAL_SRC_FILES += $(LIBKMS_INTEL_FILES)
35endif
36
37ifneq ($(filter $(nouveau_drivers), $(DRM_GPU_DRIVERS)),)
38LOCAL_SRC_FILES += $(LIBKMS_NOUVEAU_FILES)
39endif
40
41ifneq ($(filter $(radeon_drivers), $(DRM_GPU_DRIVERS)),)
42LOCAL_SRC_FILES += $(LIBKMS_RADEON_FILES)
43endif
44
45LOCAL_MODULE := libkms
46LOCAL_SHARED_LIBRARIES := libdrm
47
48LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libdrm
49
50LOCAL_COPY_HEADERS_TO := libdrm
51LOCAL_COPY_HEADERS := $(LIBKMS_H_FILES)
52
53include $(BUILD_SHARED_LIBRARY)