summaryrefslogtreecommitdiff
path: root/src/gralloc/Android.mk
blob: cf85517d6d8c4eb1f0fe7e275a0dd1b5d72e945b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Android.mk for gralloc

LOCAL_PATH := $(call my-dir)

common_SRC_FILES := \
	gralloc_gem.c \
	gralloc_kms.c \
	gralloc_mod.c

common_C_INCLUDES := \
	external/drm \
	external/drm/include/drm

common_SHARED_LIBRARIES := \
	libdrm \
	liblog \
	libcutils

ifeq ($(strip $(MESA_BUILD_INTEL)),true)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
	$(common_SRC_FILES) \
	gralloc_gem_i915.c

LOCAL_C_INCLUDES := \
	$(common_C_INCLUDES) \
	external/drm/intel

LOCAL_SHARED_LIBRARIES := \
	$(common_SHARED_LIBRARIES) \
	libdrm_intel \
	libEGL

LOCAL_MODULE := gralloc.mesa
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw

include $(BUILD_SHARED_LIBRARY)
endif # MESA_BUILD_INTEL

ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
	$(common_SRC_FILES) \
	gralloc_gem_pipe.c

LOCAL_C_INCLUDES := \
	$(common_C_INCLUDES) \
	external/mesa/src/gallium/include \
	external/mesa/src/gallium/auxiliary

LOCAL_MODULE := libmesa_st_gralloc

include $(BUILD_STATIC_LIBRARY)
endif # MESA_BUILD_GALLIUM