• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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")
15import("../../../../../config.gni")
16
17config("capturer_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "../../../../../interfaces/inner_api/native/audiocommon/include",
22    "../../../../../services/audio_service/common/include",
23    "../../../audioschedule/include",
24  ]
25
26  cflags = [
27    "-Wall",
28    "-Werror",
29    "-DHAVE_CONFIG_H",
30    "-D_GNU_SOURCE",
31    "-D__INCLUDED_FROM_PULSE_AUDIO",
32  ]
33}
34
35ohos_shared_library("module-inner-capturer-sink") {
36  sanitize = {
37    cfi = true
38    cfi_cross_dso = true
39    cfi_vcall_icall_only = true
40    debug = false
41    integer_overflow = true
42    ubsan = true
43    boundary_sanitize = true
44  }
45  sources = [ "module_inner_capturer_sink.c" ]
46
47  configs = [ ":capturer_config" ]
48
49  cflags = [ "-DPA_MODULE_NAME=libmodule_inner_capturer_sink_z_so" ]
50
51  ldflags = [
52    "-Wl",
53    "--no-undefined",
54  ]
55
56  deps = [
57    "../../../../../services/audio_service:audio_common",
58    "../../../audioschedule:audio_schedule",
59    "../../../audioutils:audio_utils",
60  ]
61
62  external_deps = [
63    "hilog:libhilog",
64    "pulseaudio:pulse",
65    "pulseaudio:pulsecommon",
66    "pulseaudio:pulsecore",
67  ]
68
69  public_external_deps = [ "bounds_checking_function:libsec_shared" ]
70
71  subsystem_name = "multimedia"
72  part_name = "audio_framework"
73}
74