1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16ohos_shared_library("libamplayer_audio_render") { 17 install_enable = true 18 19 install_images = [ chipset_base_dir ] 20 21 sources = [ "amplayer_audio_render_adapter.cpp" ] 22 23 include_dirs = [ 24 "//commonlibrary/c_utils/base/include", 25 "//drivers/peripheral/audio/interfaces/include", 26 "//drivers/peripheral/audio/hal/hdi_binder/proxy/include/", 27 "//drivers/peripheral/base", 28 "//foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/primary", 29 "//foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/common", 30 "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", 31 "../include", 32 ] 33 34 configs = [ 35 "//foundation/graphic/graphic_2d/frameworks/surface:surface_public_config", 36 "//foundation/multimedia/player_framework/services/utils:media_service_utils_public_config", 37 ] 38 39 external_deps = [ 40 "c_utils:utils", 41 "hilog:libhilog", 42 "ipc:ipc_core", 43 "power_manager:powermgr_client", 44 ] 45 46 cflags = [ 47 "-fno-rtti", 48 "-fno-exceptions", 49 "-Wall", 50 "-fno-common", 51 "-fstack-protector-strong", 52 "-FPIC", 53 "-FS", 54 "-O2", 55 "-D_FORTIFY_SOURCE=2", 56 "-fvisibility=hidden", 57 "-Wformat=2", 58 "-Wfloat-equal", 59 "-Wdate-time", 60 ] 61 62 subsystem_name = "unionman_products" 63 part_name = "unionman_products" 64} 65