blob: bc0aa0d3027c8e7be85be8723544499f20e2ee6e [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
15ifeq ($(filter-out exynos5,$(TARGET_BOARD_PLATFORM)),)
16ifeq ($(BOARD_USES_HDMI),true)
17
18LOCAL_PATH:= $(call my-dir)
19
20#
21# libTVOut
22#
23
24include $(CLEAR_VARS)
25LOCAL_MODULE_TAGS := optional
26LOCAL_PRELINK_MODULE := false
27
28LOCAL_SRC_FILES := \
29 SecTVOutService.cpp \
30 ISecTVOut.cpp \
31 MessageQueue.cpp
32
33LOCAL_C_INCLUDES := \
34
35LOCAL_SHARED_LIBRARIES := \
36 libbinder \
37 libutils \
38 libcutils
39
40LOCAL_C_INCLUDES += device/samsung/$(TARGET_BOARD_PLATFORM)/include
41LOCAL_C_INCLUDES += device/samsung/$(TARGET_BOARD_PLATFORM)/libhdmi
42LOCAL_SHARED_LIBRARIES += libhdmi
43
44ifeq ($(BOARD_USES_HDMI_SUBTITLES),true)
45 LOCAL_CFLAGS += -DBOARD_USES_HDMI_SUBTITLES
46endif
47
48LOCAL_MODULE := libTVOut
49
50include $(BUILD_SHARED_LIBRARY)
51
52#
53# libhdmiclient
54#
55
56include $(CLEAR_VARS)
57
58LOCAL_MODULE_TAGS := optional
59LOCAL_PRELINK_MODULE := false
60
61LOCAL_SRC_FILES:= \
62 SecHdmiClient.cpp
63
64LOCAL_C_INCLUDES += \
65 $(JNI_H_INCLUDE)
66
67LOCAL_SHARED_LIBRARIES := \
68 libbinder \
69 libutils \
70 libTVOut
71
72ifeq ($(TARGET_SIMULATOR),true)
73ifeq ($(TARGET_OS),linux)
74ifeq ($(TARGET_ARCH),x86)
75LOCAL_LDLIBS += -lpthread -ldl -lrt
76endif
77endif
78endif
79
80ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
81 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
82endif
83
84ifeq ($(TARGET_SOC),exynos5250)
85LOCAL_CFLAGS += -DSAMSUNG_EXYNOS5250
86endif
87
88LOCAL_CFLAGS += -DBOARD_USES_HDMI
89
90LOCAL_MODULE:= libhdmiclient
91
92include $(BUILD_SHARED_LIBRARY)
93
94endif
95endif