• 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("//build/ohos/ace/ace.gni")
16import("//foundation/multimedia/player_framework/config.gni")
17
18ohos_shared_library("audiohaptic_napi") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23  }
24
25  include_dirs = [
26    "./include",
27    "./include/audio_haptic_player",
28    "./../../native/audio_haptic",
29    "./../../../interfaces/inner_api/native",
30    "./../../../interfaces/inner_api/native/audio_haptic/include",
31    "./../../../services/utils/include",
32  ]
33
34  sources = [
35    "./src/audio_haptic_common_napi.cpp",
36    "./src/audio_haptic_manager_napi.cpp",
37    "./src/audio_haptic_player/audio_haptic_player_callback_napi.cpp",
38    "./src/audio_haptic_player/audio_haptic_player_napi.cpp",
39    "./src/audio_haptic_player/audio_haptic_player_options_napi.cpp",
40  ]
41
42  deps = [ "./../../native/audio_haptic:audio_haptic" ]
43
44  external_deps = [
45    "audio_framework:audio_client",
46    "c_utils:utils",
47    "hilog:libhilog",
48    "ipc:ipc_single",
49    "media_foundation:media_foundation",
50    "napi:ace_napi",
51  ]
52  relative_install_dir = "module/multimedia"
53  part_name = "player_framework"
54  subsystem_name = "multimedia"
55}
56