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  }
23  install_enable = true
24  sources = [ "src/pulse_audio_service_adapter_impl.cpp" ]
25  cflags = [ "-fPIC" ]
26  cflags += [ "-Wall" ]
27  cflags_cc = cflags
28
29  include_dirs = [
30    "include",
31    "../audioutils/include",
32    "../../../interfaces/inner_api/native/audiocommon/include",
33    "../../../services/audio_service/server/include",
34  ]
35
36  deps = [ "../audioutils:audio_utils" ]
37
38  public_configs = [ ":audio_external_library_config" ]
39
40  external_deps = [
41    "hilog:libhilog",
42    "hisysevent:libhisysevent",
43    "ipc:ipc_single",
44    "media_foundation:media_monitor_client",
45    "media_foundation:media_monitor_common",
46    "pulseaudio:pulse",
47  ]
48  part_name = "audio_framework"
49  subsystem_name = "multimedia"
50}
51
52config("audio_external_library_config") {
53  include_dirs = [ "../../../interfaces/inner_api/native/audiocommon/include" ]
54}
55