blob: fd4cacb4e0422b7978cd1dafd051ebc024ccdff6 [file] [log] [blame]
Iliyan Malchev202a77d2012-06-11 14:41:12 -07001# Copyright (C) 2008 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Iliyan Malchev202a77d2012-06-11 14:41:12 -070014LOCAL_PATH := $(call my-dir)
15
16# HAL module implemenation, not prelinked and stored in
17# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
18include $(CLEAR_VARS)
Naseer Ahmed29a26812012-06-14 00:56:20 -070019LOCAL_PRELINK_MODULE := false
20LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
21LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libmemalloc
Naseer Ahmeda87da602012-07-01 23:54:19 -070022LOCAL_SHARED_LIBRARIES += libgenlock libqdutils libGLESv1_CM
Naseer Ahmed29a26812012-06-14 00:56:20 -070023LOCAL_C_INCLUDES := hardware/qcom/display/liboverlay/
24LOCAL_C_INCLUDES += hardware/qcom/display/libgenlock
Naseer Ahmeda87da602012-07-01 23:54:19 -070025LOCAL_C_INCLUDES += hardware/qcom/display/libqdutils
Naseer Ahmed29a26812012-06-14 00:56:20 -070026LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
27LOCAL_MODULE_TAGS := optional
28LOCAL_CFLAGS := -DLOG_TAG=\"$(TARGET_BOARD_PLATFORM).gralloc\" \
Naseer Ahmed30621ab2012-06-25 15:37:21 -070029 -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmed29a26812012-06-14 00:56:20 -070030LOCAL_SRC_FILES := gpu.cpp gralloc.cpp framebuffer.cpp mapper.cpp
Iliyan Malchev202a77d2012-06-11 14:41:12 -070031
Naseer Ahmed29a26812012-06-14 00:56:20 -070032ifeq ($(TARGET_USES_POST_PROCESSING),true)
33 LOCAL_CFLAGS += -DUSES_POST_PROCESSING
34 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pp/inc
35endif
Iliyan Malchev202a77d2012-06-11 14:41:12 -070036
Naseer Ahmed29a26812012-06-14 00:56:20 -070037ifeq ($(TARGET_USES_MDP3), true)
38 LOCAL_CFLAGS += -DUSE_MDP3
Iliyan Malchev202a77d2012-06-11 14:41:12 -070039endif
40
41ifeq ($(TARGET_HAVE_HDMI_OUT),true)
42 LOCAL_CFLAGS += -DHDMI_DUAL_DISPLAY
Iliyan Malchev202a77d2012-06-11 14:41:12 -070043 LOCAL_SHARED_LIBRARIES += liboverlay
44endif
Iliyan Malchev202a77d2012-06-11 14:41:12 -070045include $(BUILD_SHARED_LIBRARY)
46
47#MemAlloc Library
48include $(CLEAR_VARS)
49LOCAL_PRELINK_MODULE := false
50LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
Naseer Ahmeda87da602012-07-01 23:54:19 -070051LOCAL_C_INCLUDES := hardware/qcom/display/libqdutils
Iliyan Malchev202a77d2012-06-11 14:41:12 -070052LOCAL_SHARED_LIBRARIES := liblog libcutils libutils
Naseer Ahmed29a26812012-06-14 00:56:20 -070053LOCAL_SRC_FILES := ionalloc.cpp alloc_controller.cpp
Iliyan Malchev202a77d2012-06-11 14:41:12 -070054LOCAL_CFLAGS:= -DLOG_TAG=\"memalloc\"
Naseer Ahmed29a26812012-06-14 00:56:20 -070055LOCAL_CFLAGS += -DUSE_ION
Iliyan Malchev202a77d2012-06-11 14:41:12 -070056LOCAL_MODULE := libmemalloc
57LOCAL_MODULE_TAGS := optional
58include $(BUILD_SHARED_LIBRARY)