Commit | Line | Data |
---|---|---|
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 | ||
17 | common_exynos_dirs := \ | |
18 | libion_exynos \ | |
19 | libexynosutils \ | |
20 | libcec \ | |
21 | libcsc \ | |
22 | libmpp \ | |
23 | libhwcutils \ | |
24 | libhwcService \ | |
25 | libv4l2 \ | |
26 | libscaler \ | |
27 | libswconverter \ | |
28 | libvideocodec \ | |
29 | libstagefrighthw \ | |
30 | libmemtrack \ | |
31 | exyrngd \ | |
32 | rpmbd | |
33 | ||
34 | ifeq ($(TARGET_USES_UNIVERSAL_LIBHWJPEG), true) | |
35 | common_exynos_dirs += libhwjpeg | |
36 | endif | |
37 | ||
38 | ifneq ($(BOARD_USES_FIMC), true) | |
39 | common_exynos_dirs += \ | |
40 | libgscaler | |
41 | endif | |
42 | ||
43 | ifeq ($(BOARD_USES_FIMGAPI_V5X), true) | |
44 | common_exynos_dirs += \ | |
45 | libfimg5x | |
46 | else | |
47 | common_exynos_dirs += \ | |
48 | libfimg4x | |
49 | endif | |
50 | ||
51 | ||
52 | ifeq ($(BOARD_USES_EXYNOS5_COMMON_GRALLOC), true) | |
53 | common_exynos_dirs += \ | |
54 | gralloc | |
55 | endif | |
56 | ||
57 | ifeq ($(BOARD_USES_HWC_TINY), true) | |
58 | common_exynos_dirs += \ | |
59 | libvppdisplay_tiny | |
60 | else | |
61 | ifeq ($(BOARD_USES_VPP), true) | |
62 | common_exynos_dirs += libvppdisplay | |
63 | else | |
64 | common_exynos_dirs += libdisplay | |
65 | endif | |
66 | endif | |
67 | ||
68 | ifeq ($(BOARD_USES_HWC_TINY), true) | |
69 | common_exynos_dirs += \ | |
70 | libhwc_tiny | |
71 | else | |
72 | ifneq ($(BOARD_TV_PRIMARY), true) | |
73 | common_exynos_dirs += \ | |
74 | libhwc | |
75 | endif | |
76 | endif | |
77 | ||
78 | ifneq ($(BOARD_USES_HWC_TINY), true) | |
79 | ifeq ($(BOARD_USES_VIRTUAL_DISPLAY), true) | |
80 | ifeq ($(BOARD_USES_VPP), true) | |
81 | common_exynos_dirs += \ | |
82 | libvppvirtualdisplay | |
83 | else | |
84 | common_exynos_dirs += \ | |
85 | libvirtualdisplay | |
86 | endif | |
87 | endif | |
88 | endif | |
89 | ||
90 | ifeq ($(BOARD_USE_ALP_AUDIO), true) | |
91 | ifeq ($(BOARD_USE_SEIREN_AUDIO), true) | |
92 | common_exynos_dirs += \ | |
93 | libseiren | |
94 | else | |
95 | common_exynos_dirs += \ | |
96 | libsrp | |
97 | endif | |
98 | endif | |
99 | ||
100 | ifeq ($(BOARD_USE_COMMON_AUDIOHAL), true) | |
101 | common_exynos_dirs += \ | |
102 | libaudio | |
103 | endif | |
104 | ||
105 | ifneq ($(BOARD_USES_HWC_TINY), true) | |
106 | ifeq ($(BOARD_HDMI_INCAPABLE), true) | |
107 | common_exynos_dirs += libhdmi_dummy | |
108 | else | |
109 | ifeq ($(BOARD_USES_VPP), true) | |
110 | common_exynos_dirs += libvpphdmi | |
111 | else | |
112 | ifeq ($(BOARD_USES_NEW_HDMI), true) | |
113 | common_exynos_dirs += libhdmi | |
114 | else | |
115 | common_exynos_dirs += libhdmi_legacy | |
116 | endif | |
117 | endif | |
118 | endif | |
119 | endif | |
120 | ||
121 | ifeq ($(BOARD_USES_FIMGAPI_V4L2), true) | |
122 | common_exynos_dirs += \ | |
123 | libg2d | |
124 | endif | |
125 | ||
126 | ifeq ($(BOARD_BACK_CAMERA_USES_EXTERNAL_CAMERA), true) | |
127 | common_exynos_dirs += \ | |
128 | libcamera_external | |
129 | else | |
130 | ifeq ($(BOARD_FRONT_CAMERA_USES_EXTERNAL_CAMERA), true) | |
131 | common_exynos_dirs += \ | |
132 | libcamera_external | |
133 | endif | |
134 | endif | |
135 | ||
136 | include $(call all-named-subdir-makefiles,$(common_exynos_dirs)) |