1#
2# Copyright 2019 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#
16LOCAL_PATH := $(call my-dir)
17
18commonSources := \
19        GoldfishAVCDec.cpp  \
20        MediaH264Decoder.cpp
21
22$(call emugl-begin-shared-library,libstagefright_goldfish_avcdec$(GOLDFISH_OPENGL_LIB_SUFFIX))
23
24LOCAL_SRC_FILES := $(commonSources)
25
26LOCAL_CFLAGS += -DLOG_TAG=\"goldfish_avcdec\"
27LOCAL_CFLAGS += -Wno-unused-private-field
28
29$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog)
30
31LOCAL_HEADER_LIBRARIES := media_plugin_headers \
32                          libmedia_headers \
33                          libbinder_headers \
34                          libhidlbase_impl_internal \
35                          libbase
36LOCAL_HEADER_LIBRARIES += libui_headers \
37                          libnativewindow_headers \
38                          libhardware_headers \
39                          libarect_headers \
40                          libarect_headers_for_ndk
41LOCAL_SHARED_LIBRARIES :=       \
42        libbinder               \
43        libutils                \
44        liblog                  \
45        libcutils               \
46        libui \
47        android.hardware.media.omx@1.0 \
48	    android.hardware.graphics.allocator@3.0 \
49		android.hardware.graphics.mapper@3.0 \
50        libstagefright_foundation
51
52LOCAL_HEADER_LIBRARIES += libgralloc_cb.ranchu
53
54$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
55$(call emugl-import,libgoldfish_codecs_common)
56$(call emugl-import,libstagefrighthw)
57$(call emugl-end-module)
58