• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "//foundation/multimedia/audio_framework/frameworks/native/hdiadapter/common/include",
32    "../include",
33  ]
34
35  configs = [
36    "//foundation/graphic/graphic_surface/surface:surface_public_config",
37    "//foundation/multimedia/player_framework/services/utils:media_service_utils_public_config",
38  ]
39
40  external_deps = [
41    "c_utils:utils",
42    "hilog:libhilog",
43    "ipc:ipc_core",
44    "power_manager:powermgr_client",
45  ]
46
47  cflags = [
48    "-fno-rtti",
49    "-fno-exceptions",
50    "-Wall",
51    "-fno-common",
52    "-fstack-protector-strong",
53    "-FPIC",
54    "-FS",
55    "-O2",
56    "-D_FORTIFY_SOURCE=2",
57    "-fvisibility=hidden",
58    "-Wformat=2",
59    "-Wfloat-equal",
60    "-Wdate-time",
61  ]
62
63  part_name = "device_unionpi_tiger"
64}
65