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