• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("pulse_audio_service_adapter") {
17  sanitize = {
18    cfi = true
19    cfi_cross_dso = true
20    cfi_vcall_icall_only = true
21    debug = false
22    integer_overflow = true
23    ubsan = true
24    boundary_sanitize = true
25  }
26  install_enable = true
27  sources = [ "src/pulse_audio_service_adapter_impl.cpp" ]
28  cflags = [ "-fPIC" ]
29  cflags += [ "-Wall" ]
30  cflags += [ "-Os" ]
31  cflags_cc = cflags
32
33  include_dirs = [
34    "include",
35    "../audioutils/include",
36    "../../../interfaces/inner_api/native/audiocommon/include",
37    "../../../services/audio_service/server/include",
38  ]
39
40  deps = [ "../audioutils:audio_utils" ]
41
42  external_deps = [
43    "c_utils:utils",
44    "hilog:libhilog",
45    "hisysevent:libhisysevent",
46    "ipc:ipc_single",
47    "media_foundation:media_monitor_client",
48    "media_foundation:media_monitor_common",
49    "pulseaudio:pulse",
50    "samgr:samgr_proxy",
51  ]
52  part_name = "audio_framework"
53  subsystem_name = "multimedia"
54  version_script = "libpulse_audio_service_adapter.versionscript"
55}
56