• 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")
15import("//drivers/adapter/uhdf2/uhdf.gni")
16
17ohos_shared_library("audio_capturer_source") {
18  install_enable = true
19  sources = [ "//foundation/multimedia/audio_standard/frameworks/native/audiocapturer/src/audio_capturer_source.cpp" ]
20  cflags = [ "-fPIC" ]
21  cflags += [ "-Wall" ]
22  if ("${product_name}" == "m40") {
23    cflags += [ "-DPRODUCT_M40" ]
24  } else if ("${product_name}" == "Hi3751V350") {
25    cflags += [ "-DPRODUCT_Hi37XX" ]
26  }
27  cflags_cc = cflags
28
29  include_dirs = [
30    "//foundation/multimedia/audio_standard/frameworks/native/audiocapturer/include",
31    "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocommon/include",
32    "//foundation/multimedia/media_standard/interfaces/innerkits/native/media/include",
33    "//utils/native/base/include",
34    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
35    "//drivers/peripheral/audio/interfaces/include",
36    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
37    "//third_party/bounds_checking_function/include",
38  ]
39  public_configs = [ ":audio_external_library_config" ]
40
41  deps = [
42    "$hdf_uhdf_path/hdi:libhdi",
43    "$hdf_uhdf_path/host:libhdf_host",
44    "$hdf_uhdf_path/ipc:libhdf_ipc_adapter",
45    "$hdf_uhdf_path/utils:libhdf_utils",
46    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
47    "//third_party/bounds_checking_function:libsec_static",
48  ]
49
50  if ("${product_name}" == "m40") {
51    deps += [ "//drivers/peripheral/adapter/audio/interfaces:hdi_audio_client" ]
52  } else {
53    deps +=
54        [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ]
55  }
56
57  part_name = "multimedia_audio_standard"
58  subsystem_name = "multimedia"
59}
60
61config("audio_external_library_config") {
62  include_dirs = [ "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocommon/include" ]
63}
64