Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 1 | # 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 Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 14 | LOCAL_PATH := $(call my-dir) |
| 15 | |
| 16 | # HAL module implemenation, not prelinked and stored in |
| 17 | # hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 18 | include $(CLEAR_VARS) |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 19 | LOCAL_PRELINK_MODULE := false |
| 20 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 21 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libmemalloc |
Naseer Ahmed | a87da60 | 2012-07-01 23:54:19 -0700 | [diff] [blame^] | 22 | LOCAL_SHARED_LIBRARIES += libgenlock libqdutils libGLESv1_CM |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 23 | LOCAL_C_INCLUDES := hardware/qcom/display/liboverlay/ |
| 24 | LOCAL_C_INCLUDES += hardware/qcom/display/libgenlock |
Naseer Ahmed | a87da60 | 2012-07-01 23:54:19 -0700 | [diff] [blame^] | 25 | LOCAL_C_INCLUDES += hardware/qcom/display/libqdutils |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 26 | LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) |
| 27 | LOCAL_MODULE_TAGS := optional |
| 28 | LOCAL_CFLAGS := -DLOG_TAG=\"$(TARGET_BOARD_PLATFORM).gralloc\" \ |
Naseer Ahmed | 30621ab | 2012-06-25 15:37:21 -0700 | [diff] [blame] | 29 | -DDEBUG_CALC_FPS -Wno-missing-field-initializers |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 30 | LOCAL_SRC_FILES := gpu.cpp gralloc.cpp framebuffer.cpp mapper.cpp |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 31 | |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 32 | ifeq ($(TARGET_USES_POST_PROCESSING),true) |
| 33 | LOCAL_CFLAGS += -DUSES_POST_PROCESSING |
| 34 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pp/inc |
| 35 | endif |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 36 | |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 37 | ifeq ($(TARGET_USES_MDP3), true) |
| 38 | LOCAL_CFLAGS += -DUSE_MDP3 |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 39 | endif |
| 40 | |
| 41 | ifeq ($(TARGET_HAVE_HDMI_OUT),true) |
| 42 | LOCAL_CFLAGS += -DHDMI_DUAL_DISPLAY |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 43 | LOCAL_SHARED_LIBRARIES += liboverlay |
| 44 | endif |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 45 | include $(BUILD_SHARED_LIBRARY) |
| 46 | |
| 47 | #MemAlloc Library |
| 48 | include $(CLEAR_VARS) |
| 49 | LOCAL_PRELINK_MODULE := false |
| 50 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) |
Naseer Ahmed | a87da60 | 2012-07-01 23:54:19 -0700 | [diff] [blame^] | 51 | LOCAL_C_INCLUDES := hardware/qcom/display/libqdutils |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 52 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 53 | LOCAL_SRC_FILES := ionalloc.cpp alloc_controller.cpp |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 54 | LOCAL_CFLAGS:= -DLOG_TAG=\"memalloc\" |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 55 | LOCAL_CFLAGS += -DUSE_ION |
Iliyan Malchev | 202a77d | 2012-06-11 14:41:12 -0700 | [diff] [blame] | 56 | LOCAL_MODULE := libmemalloc |
| 57 | LOCAL_MODULE_TAGS := optional |
| 58 | include $(BUILD_SHARED_LIBRARY) |