1# 2# Copyright 2018 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 GoldfishOMXComponent.cpp \ 20 GoldfishOMXPlugin.cpp \ 21 GoldfishVideoDecoderOMXComponent.cpp \ 22 SimpleGoldfishOMXComponent.cpp \ 23 24$(call emugl-begin-shared-library,libstagefrighthw$(GOLDFISH_OPENGL_LIB_SUFFIX)) 25 26LOCAL_SRC_FILES := $(commonSources) 27 28LOCAL_CFLAGS += $(PV_CFLAGS_MINUS_VISIBILITY) -Werror 29LOCAL_CFLAGS += -Wno-unused-private-field 30 31LOCAL_C_INCLUDES += \ 32 $(call include-path-for, frameworks-native)/media/hardware \ 33 $(call include-path-for, frameworks-native)/media/openmax \ 34 35$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) 36$(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) 37 38LOCAL_HEADER_LIBRARIES += media_plugin_headers \ 39 libmedia_headers \ 40 libbinder_headers \ 41 libhidlbase_impl_internal \ 42 libbase 43 44LOCAL_SHARED_LIBRARIES += \ 45 libbinder \ 46 libutils \ 47 liblog \ 48 libcutils \ 49 android.hardware.media.omx@1.0 \ 50 libstagefright_foundation 51 52LOCAL_VENDOR_MODULE := true 53 54$(call emugl-end-module) 55