osal: add libui dependency
[GitHub/LineageOS/android_hardware_samsung_slsi_openmax.git] / osal / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 ifeq ($(BOARD_USE_SKYPE_HD), true)
4
5 #################################
6 #### libExynosOMX_SkypeHD_Enc ###
7 #################################
8 include $(CLEAR_VARS)
9
10 LOCAL_MODULE_TAGS := optional
11
12 LOCAL_PRELINK_MODULE := false
13 LOCAL_MODULE := libExynosOMX_SkypeHD_Enc
14
15 LOCAL_CFLAGS := \
16 -Wno-enum-conversion \
17 -Wno-unused-label \
18 -Wno-unused-parameter \
19 -Wno-unused-variable \
20 -Wno-parentheses-equality \
21 -Wno-undefined-inline
22 LOCAL_CFLAGS += -DUSE_SKYPE_HD
23 LOCAL_CFLAGS += -DBUILD_ENC
24
25 LOCAL_SRC_FILES := Exynos_OSAL_SkypeHD.c
26
27 LOCAL_C_INCLUDES := \
28 $(EXYNOS_OMX_TOP)/core \
29 $(EXYNOS_OMX_INC)/exynos \
30 $(EXYNOS_OMX_INC)/skype \
31 $(EXYNOS_OMX_TOP)/osal \
32 $(EXYNOS_OMX_COMPONENT)/common \
33 $(EXYNOS_OMX_COMPONENT)/video/enc \
34 $(EXYNOS_OMX_COMPONENT)/video/enc/h264 \
35 $(EXYNOS_VIDEO_CODEC)/include \
36 $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
37 $(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
38 $(TOP)/hardware/samsung_slsi/exynos/include
39
40 ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
41 LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
42 LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
43 else
44 ifeq ($(BOARD_USE_ANDROID), true)
45 LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
46 endif
47 endif
48
49 include $(BUILD_STATIC_LIBRARY)
50
51 #################################
52 #### libExynosOMX_SkypeHD_Dec ###
53 #################################
54 include $(CLEAR_VARS)
55
56 LOCAL_MODULE_TAGS := optional
57
58 LOCAL_PRELINK_MODULE := false
59 LOCAL_MODULE := libExynosOMX_SkypeHD_Dec
60
61 LOCAL_CFLAGS := -DUSE_SKYPE_HD
62 LOCAL_CFLAGS += -DBUILD_DEC
63 LOCAL_SRC_FILES := Exynos_OSAL_SkypeHD.c
64
65 LOCAL_C_INCLUDES := \
66 $(EXYNOS_OMX_TOP)/core \
67 $(EXYNOS_OMX_INC)/exynos \
68 $(EXYNOS_OMX_INC)/skype \
69 $(EXYNOS_OMX_TOP)/osal \
70 $(EXYNOS_OMX_COMPONENT)/common \
71 $(EXYNOS_OMX_COMPONENT)/video/dec \
72 $(EXYNOS_OMX_COMPONENT)/video/dec/h264 \
73 $(EXYNOS_VIDEO_CODEC)/include \
74 $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
75 $(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
76 $(TOP)/hardware/samsung_slsi/exynos/include
77
78 ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
79 LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
80 LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
81 else
82 ifeq ($(BOARD_USE_ANDROID), true)
83 LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
84 endif
85 endif
86
87 include $(BUILD_STATIC_LIBRARY)
88 endif # for Skype HD
89
90
91 ##########################
92 #### libExynosOMX_OSAL ###
93 ##########################
94 include $(CLEAR_VARS)
95
96 LOCAL_MODULE_TAGS := optional
97
98 LOCAL_SRC_FILES := \
99 Exynos_OSAL_Event.c \
100 Exynos_OSAL_Queue.c \
101 Exynos_OSAL_ETC.c \
102 Exynos_OSAL_Mutex.c \
103 Exynos_OSAL_Thread.c \
104 Exynos_OSAL_Memory.c \
105 Exynos_OSAL_Semaphore.c \
106 Exynos_OSAL_Library.c \
107 Exynos_OSAL_Log.c \
108 Exynos_OSAL_SharedMemory.c
109
110 LOCAL_PRELINK_MODULE := false
111 LOCAL_MODULE := libExynosOMX_OSAL
112
113 LOCAL_CFLAGS := \
114 -Wno-enum-conversion \
115 -Wno-unused-label \
116 -Wno-unused-parameter \
117 -Wno-unused-variable \
118 -Wno-parentheses-equality \
119 -Wno-undefined-inline
120
121 ifeq ($(BOARD_USE_ANDROID), true)
122 LOCAL_SRC_FILES += \
123 Exynos_OSAL_Android.cpp \
124 Exynos_OSAL_BufferMapper.cpp
125 endif
126
127 ifeq ($(BOARD_USE_ANB), true)
128 LOCAL_CFLAGS += -DUSE_ANB
129
130 ifeq ($(BOARD_USE_ANB_OUTBUF_SHARE), true)
131 LOCAL_CFLAGS += -DUSE_ANB_OUTBUF_SHARE
132 endif
133 endif
134
135 ifeq ($(BOARD_USE_DMA_BUF), true)
136 LOCAL_CFLAGS += -DUSE_DMA_BUF
137 endif
138
139 ifeq ($(BOARD_USE_METADATABUFFERTYPE), true)
140 LOCAL_CFLAGS += -DUSE_METADATABUFFERTYPE
141
142 ifeq ($(BOARD_USE_STOREMETADATA), true)
143 LOCAL_CFLAGS += -DUSE_STOREMETADATA
144 endif
145
146 ifeq ($(BOARD_USE_ANDROIDOPAQUE), true)
147 LOCAL_CFLAGS += -DUSE_ANDROIDOPAQUE
148 endif
149 endif
150
151 ifeq ($(BOARD_USE_IMPROVED_BUFFER), true)
152 LOCAL_CFLAGS += -DUSE_IMPROVED_BUFFER
153 endif
154
155 ifeq ($(BOARD_USE_CSC_HW), true)
156 LOCAL_CFLAGS += -DUSE_CSC_HW
157 endif
158
159 ifeq ($(BOARD_USE_NON_CACHED_GRAPHICBUFFER), true)
160 LOCAL_CFLAGS += -DUSE_NON_CACHED_GRAPHICBUFFER
161 endif
162
163 ifeq ($(TARGET_BOARD_PLATFORM),exynos3)
164 LOCAL_CFLAGS += -DUSE_MFC5X_ALIGNMENT
165 endif
166
167 ifeq ($(TARGET_BOARD_PLATFORM),exynos4)
168 LOCAL_CFLAGS += -DUSE_MFC5X_ALIGNMENT
169 endif
170
171 LOCAL_SHARED_LIBRARIES := libion libhardware libnativewindow libui
172 LOCAL_STATIC_LIBRARIES := liblog libcutils libExynosVideoApi
173
174 LOCAL_C_INCLUDES := \
175 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
176 $(EXYNOS_OMX_TOP)/core \
177 $(EXYNOS_OMX_INC)/exynos \
178 $(EXYNOS_OMX_TOP)/osal \
179 $(EXYNOS_OMX_COMPONENT)/common \
180 $(EXYNOS_OMX_COMPONENT)/video/dec \
181 $(EXYNOS_OMX_COMPONENT)/video/enc \
182 $(EXYNOS_VIDEO_CODEC)/include \
183 $(TOP)/frameworks/native/libs/arect/include \
184 $(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
185 $(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
186 $(TOP)/hardware/samsung_slsi/exynos/include
187
188 LOCAL_ADDITIONAL_DEPENDENCIES := \
189 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
190
191 ifeq ($(BOARD_USE_ANDROID), true)
192 LOCAL_C_INCLUDES += \
193 $(ANDROID_MEDIA_INC)/hardware \
194 $(TOP)/system/core/libion/include
195 endif
196
197 ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
198 LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER
199 LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos
200 else
201 ifeq ($(BOARD_USE_ANDROID), true)
202 LOCAL_C_INCLUDES += $(ANDROID_MEDIA_INC)/openmax
203 endif
204 endif
205
206 include $(BUILD_STATIC_LIBRARY)