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        goldfish_media_utils.cpp
20
21$(call emugl-begin-shared-library,libgoldfish_codecs_common$(GOLDFISH_OPENGL_LIB_SUFFIX))
22
23LOCAL_SRC_FILES := $(commonSources)
24
25LOCAL_CFLAGS += -DLOG_TAG=\"goldfish_codecs_common\"
26LOCAL_CFLAGS += -Wno-unused-private-field
27
28$(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog)
29
30$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
31
32ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST))
33$(call emugl-import,libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX))
34else
35$(call emugl-export,STATIC_LIBRARIES,libGoldfishAddressSpace)
36endif
37
38$(call emugl-end-module)
39