• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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")
16import("//drivers/peripheral/audio/audio.gni")
17
18config("hdi_service_config") {
19  visibility = [ ":*" ]
20
21  cflags = [
22    "-Wall",
23    "-Wextra",
24    "-Werror",
25    "-DGST_DISABLE_DEPRECATED",
26    "-DHAVE_CONFIG_H",
27    "-fno-strict-aliasing",
28    "-Wno-sign-compare",
29    "-Wno-builtin-requires-header",
30    "-Wno-implicit-function-declaration",
31    "-Wno-format",
32    "-Wno-int-conversion",
33    "-Wno-unused-function",
34    "-Wno-unused-parameter",
35    "-Wno-thread-safety-attributes",
36    "-Wno-inconsistent-missing-override",
37    "-fno-rtti",
38    "-fno-exceptions",
39    "-ffunction-sections",
40    "-fdata-sections",
41  ]
42
43  ldflags = [ "-Wl" ]
44}
45
46ohos_shared_library("audio_bluetooth_hdi_adapter_server") {
47  include_dirs = [
48    "//drivers/peripheral/bluetooth/audio/interfaces/include",
49    "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include",
50    "//drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/include",
51    "//third_party/bounds_checking_function/include",
52  ]
53
54  sources = [
55    "src/hdf_audio_server.cpp",
56    "src/hdf_audio_server_common.cpp",
57    "src/hdf_audio_server_render.cpp",
58  ]
59
60  deps = [
61    "$hdf_uhdf_path/hdi:libhdi",
62    "$hdf_uhdf_path/host:libhdf_host",
63    "$hdf_uhdf_path/ipc:libhdf_ipc_adapter",
64    "$hdf_uhdf_path/utils:libhdf_utils",
65    "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough:hdi_audio_bluetooth",
66    "//utils/native/base:utils",
67  ]
68
69  defines = []
70  if (is_standard_system) {
71    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
72  } else {
73    external_deps = [ "hilog:libhilog" ]
74  }
75
76  public_configs = [ ":hdi_service_config" ]
77
78  install_images = [ chipset_base_dir ]
79  subsystem_name = "hdf"
80  part_name = "bluetooth_device_driver"
81}
82