• 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("//foundation/multimedia/player_framework/config.gni")
16
17config("audio_haptic_client_public_config") {
18  visibility = [ ":*" ]
19  include_dirs =
20      [ "./../../../interfaces/inner_api/native/system_sound_manager/include" ]
21}
22
23ohos_shared_library("audio_haptic") {
24  sanitize = {
25    cfi = true
26    cfi_cross_dso = true
27    debug = false
28  }
29
30  install_enable = true
31  sources = [
32    "audio_haptic_manager_impl.cpp",
33    "audio_haptic_player_impl.cpp",
34    "audio_haptic_vibrator_impl.cpp",
35  ]
36
37  include_dirs = [
38    "./",
39    "./../../../interfaces/inner_api/native/audio_haptic/include",
40    "./../../../interfaces/inner_api/native/soundpool/include",
41    "./../../../services/utils/include",
42  ]
43
44  deps = [
45    "./../../../interfaces/inner_api/native:media_client",
46    "./../soundpool:soundpool_client",
47  ]
48
49  external_deps = [
50    "audio_framework:audio_client",
51    "graphic_surface:surface",
52    "hilog:libhilog",
53  ]
54
55  if (multimedia_player_framework_support_vibrator) {
56    external_deps += [ "miscdevice:vibrator_interface_native" ]
57  }
58
59  cflags = [
60    "-Wall",
61    "-Werror",
62  ]
63
64  public_configs = [ ":audio_haptic_client_public_config" ]
65
66  defines = []
67  defines += player_framework_defines
68  innerapi_tags = [ "platformsdk" ]
69  subsystem_name = "multimedia"
70  part_name = "player_framework"
71}
72