libdisplay: backport acquireFenceFd close check from SM-N935S blob to stop potential...
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos.git] / libdisplay / Android.mk
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 LOCAL_PATH:= $(call my-dir)
16 include $(CLEAR_VARS)
17
18 LOCAL_PRELINK_MODULE := false
19 LOCAL_SHARED_LIBRARIES := liblog libion libutils libcutils libexynosutils \
20 libexynosv4l2 libhwcutils libsync libmpp
21
22 ifeq ($(BOARD_USES_FIMC), true)
23 LOCAL_SHARED_LIBRARIES += libexynosfimc
24 else
25 LOCAL_SHARED_LIBRARIES += libexynosgscaler
26 endif
27
28 ifeq ($(BOARD_USES_FB_PHY_LINEAR),true)
29 LOCAL_SHARED_LIBRARIES += libfimg
30 LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/exynos/libfimg4x
31 endif
32
33 LOCAL_CFLAGS += -DLOG_TAG=\"display\"
34 LOCAL_CFLAGS += -DHLOG_CODE=1
35 LOCAL_C_INCLUDES := \
36 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
37 $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
38 $(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
39 $(LOCAL_PATH)/../include \
40 $(LOCAL_PATH)/../libhwc \
41 $(LOCAL_PATH)/../libhwcutils \
42 $(TOP)/hardware/samsung_slsi/exynos/libexynosutils \
43 $(TOP)/hardware/samsung_slsi/exynos/libmpp \
44 $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libhwcmodule \
45 $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libhwcutilsmodule
46
47 LOCAL_ADDITIONAL_DEPENDENCIES := \
48 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
49
50 LOCAL_SRC_FILES := \
51 ExynosDisplay.cpp \
52 ExynosOverlayDisplay.cpp
53
54 include $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libdisplaymodule/Android.mk
55
56 LOCAL_MODULE := libexynosdisplay
57
58 include $(TOP)/hardware/samsung_slsi/exynos/BoardConfigCFlags.mk
59 include $(BUILD_SHARED_LIBRARY)
60