• 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
16pulseaudio_build_path = "//third_party/pulseaudio/ohosbuild"
17
18ohos_shared_library("pulse_audio_service_adapter") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23    blocklist = "../../../cfi_blocklist.txt"
24  }
25  install_enable = true
26  sources = [ "src/pulse_audio_service_adapter_impl.cpp" ]
27  cflags = [ "-fPIC" ]
28  cflags += [ "-Wall" ]
29  cflags_cc = cflags
30
31  include_dirs = [
32    "$pulseaudio_build_path/include",
33    "include",
34    "../../../interfaces/inner_api/native/audiocommon/include",
35    "//third_party/pulseaudio/src",
36    "//third_party/pulseaudio/confgure/src",
37    "//third_party/pulseaudio/include",
38  ]
39
40  public_configs = [ ":audio_external_library_config" ]
41
42  deps = [ "$pulseaudio_build_path/src/pulse:pulse" ]
43
44  external_deps = [
45    "hilog:libhilog",
46    "hisysevent:libhisysevent",
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