libhwjpeg: resolve compilation errors
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos.git] / Android.mk
CommitLineData
5763fb39
T
1#
2# Copyright (C) 2012 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
90e8221e
CH
17ifeq ($(TARGET_SLSI_VARIANT),bsp)
18
5763fb39
T
19common_exynos_dirs := \
20 libion_exynos \
21 libexynosutils \
22 libcec \
23 libcsc \
24 libmpp \
25 libhwcutils \
26 libhwcService \
27 libv4l2 \
28 libscaler \
29 libswconverter \
30 libvideocodec \
31 libstagefrighthw \
32 libmemtrack \
33 exyrngd \
34 rpmbd
35
36ifeq ($(TARGET_USES_UNIVERSAL_LIBHWJPEG), true)
37common_exynos_dirs += libhwjpeg
38endif
39
40ifneq ($(BOARD_USES_FIMC), true)
41common_exynos_dirs += \
42 libgscaler
43endif
44
45ifeq ($(BOARD_USES_FIMGAPI_V5X), true)
46common_exynos_dirs += \
47 libfimg5x
48else
49common_exynos_dirs += \
50 libfimg4x
51endif
52
53
54ifeq ($(BOARD_USES_EXYNOS5_COMMON_GRALLOC), true)
55common_exynos_dirs += \
56 gralloc
57endif
58
59ifeq ($(BOARD_USES_HWC_TINY), true)
60common_exynos_dirs += \
61 libvppdisplay_tiny
62else
63ifeq ($(BOARD_USES_VPP), true)
64common_exynos_dirs += libvppdisplay
65else
66common_exynos_dirs += libdisplay
67endif
68endif
69
70ifeq ($(BOARD_USES_HWC_TINY), true)
71common_exynos_dirs += \
72 libhwc_tiny
73else
74ifneq ($(BOARD_TV_PRIMARY), true)
75common_exynos_dirs += \
76 libhwc
77endif
78endif
79
80ifneq ($(BOARD_USES_HWC_TINY), true)
81ifeq ($(BOARD_USES_VIRTUAL_DISPLAY), true)
82ifeq ($(BOARD_USES_VPP), true)
83common_exynos_dirs += \
84 libvppvirtualdisplay
85else
86common_exynos_dirs += \
87 libvirtualdisplay
88endif
89endif
90endif
91
92ifeq ($(BOARD_USE_ALP_AUDIO), true)
93ifeq ($(BOARD_USE_SEIREN_AUDIO), true)
94common_exynos_dirs += \
95 libseiren
96else
97common_exynos_dirs += \
98 libsrp
99endif
100endif
101
102ifeq ($(BOARD_USE_COMMON_AUDIOHAL), true)
103common_exynos_dirs += \
104 libaudio
105endif
106
107ifneq ($(BOARD_USES_HWC_TINY), true)
108ifeq ($(BOARD_HDMI_INCAPABLE), true)
109common_exynos_dirs += libhdmi_dummy
110else
111ifeq ($(BOARD_USES_VPP), true)
112common_exynos_dirs += libvpphdmi
113else
114ifeq ($(BOARD_USES_NEW_HDMI), true)
115common_exynos_dirs += libhdmi
116else
117common_exynos_dirs += libhdmi_legacy
118endif
119endif
120endif
121endif
122
123ifeq ($(BOARD_USES_FIMGAPI_V4L2), true)
124common_exynos_dirs += \
125 libg2d
126endif
127
128ifeq ($(BOARD_BACK_CAMERA_USES_EXTERNAL_CAMERA), true)
129common_exynos_dirs += \
130 libcamera_external
131else
132ifeq ($(BOARD_FRONT_CAMERA_USES_EXTERNAL_CAMERA), true)
133common_exynos_dirs += \
134 libcamera_external
135endif
136endif
137
138include $(call all-named-subdir-makefiles,$(common_exynos_dirs))
90e8221e
CH
139
140endif # TARGET_SLSI_VARIANT