blob: 982d1be2d37ce77b9625a947ed02da64deec6033 [file] [log] [blame]
codeworkx62f02ba2012-05-20 12:00:36 +02001# 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# HAL module implemenation, not prelinked and stored in
18# hw/<COPYPIX_HARDWARE_MODULE_ID>.<ro.product.board>.so
19
20include $(CLEAR_VARS)
21LOCAL_PRELINK_MODULE := false
22LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
23LOCAL_SHARED_LIBRARIES := liblog libcutils libEGL \
24 libGLESv1_CM
25
26LOCAL_SHARED_LIBRARIES += libion
27
28LOCAL_C_INCLUDES := \
29 $(LOCAL_PATH)/../include
30
31LOCAL_SRC_FILES := SecHWCLog.cpp SecHWCUtils.cpp SecHWC.cpp
32
33LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libfimg
34
35ifeq ($(TARGET_SOC),exynos4210)
36LOCAL_CFLAGS += -DSAMSUNG_EXYNOS4210
37endif
38
39ifeq ($(TARGET_SOC),exynos4212)
40LOCAL_CFLAGS += -DSAMSUNG_EXYNOS4212
41endif
42
43ifeq ($(TARGET_SOC),exynos5250)
44LOCAL_CFLAGS += -DSAMSUNG_EXYNOS5250
45endif
46
47ifeq ($(BOARD_USES_HDMI),true)
48LOCAL_C_INCLUDES += \
49 device/samsung/$(TARGET_BOARD_PLATFORM)/libhwcomposer \
50 device/samsung/$(TARGET_BOARD_PLATFORM)/include \
51 device/samsung/$(TARGET_BOARD_PLATFORM)/libhdmi/libhdmiservice
52
53LOCAL_SHARED_LIBRARIES += libhdmiclient libTVOut
54
55LOCAL_CFLAGS += -DBOARD_USES_HDMI
56LOCAL_CFLAGS += -DBOARD_HDMI_STD=$(BOARD_HDMI_STD)
57LOCAL_CFLAGS += -DVIDEO_DUAL_DISPLAY
58
59ifeq ($(BOARD_USES_HDMI_SUBTITLES),true)
60 LOCAL_CFLAGS += -DBOARD_USES_HDMI_SUBTITLES
61endif
62
63ifeq ($(BOARD_HDMI_STD), STD_NTSC_M)
64LOCAL_CFLAGS += -DSTD_NTSC_M
65endif
66
67ifeq ($(BOARD_HDMI_STD),STD_480P)
68LOCAL_CFLAGS += -DSTD_480P
69endif
70
71ifeq ($(BOARD_HDMI_STD),STD_720P)
72LOCAL_CFLAGS += -DSTD_720P
73endif
74
75ifeq ($(BOARD_HDMI_STD),STD_1080P)
76LOCAL_CFLAGS += -DSTD_1080P
77endif
78endif
79
80LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
81LOCAL_MODULE_TAGS := optional
82include $(BUILD_SHARED_LIBRARY)