blob: 79e425683b2c472ac7485e7c932a86609cccbc23 [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
14#
15
16LOCAL_PATH := $(call my-dir)
17
18include $(CLEAR_VARS)
19LOCAL_PRELINK_MODULE := false
20LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
21LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libmemalloc
22LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
23LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
24LOCAL_C_INCLUDES += hardware/qcom/display/libgralloc
25LOCAL_SRC_FILES := \
26 overlayLib.cpp \
27 overlayLibUI.cpp \
28LOCAL_CFLAGS:= -DLOG_TAG=\"OverlayLib\"
29
30ifeq ($(TARGET_USE_HDMI_AS_PRIMARY),true)
31LOCAL_CFLAGS += -DHDMI_AS_PRIMARY
32endif
33ifeq ($(TARGET_USES_POST_PROCESSING),true)
34LOCAL_CFLAGS += -DUSES_POST_PROCESSING
35LOCAL_SHARED_LIBRARIES += libmm-abl
36LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pp/inc
37LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/lib/
38endif
39LOCAL_MODULE := liboverlay
40
41#LGE_CHANGE, for userdebug mode
42LOCAL_MODULE_TAGS := optional
43include $(BUILD_SHARED_LIBRARY)