• 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  stack_protector_ret = true
20  sanitize = {
21    integer_overflow = true
22    ubsan = true
23    boundary_sanitize = true
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28
29  include_dirs = [
30    "./include",
31    "./include/audio_haptic_player",
32    "./../../native/audio_haptic",
33    "./../../../interfaces/inner_api/native",
34    "./../../../interfaces/inner_api/native/audio_haptic/include",
35    "./../../../services/utils/include",
36  ]
37
38  sources = [
39    "./src/audio_haptic_common_napi.cpp",
40    "./src/audio_haptic_file_descriptor_napi.cpp",
41    "./src/audio_haptic_manager_napi.cpp",
42    "./src/audio_haptic_player/audio_haptic_player_callback_napi.cpp",
43    "./src/audio_haptic_player/audio_haptic_player_napi.cpp",
44    "./src/audio_haptic_player/audio_haptic_player_options_napi.cpp",
45  ]
46
47  deps = [ "./../../native/audio_haptic:audio_haptic" ]
48
49  external_deps = [
50    "access_token:libaccesstoken_sdk",
51    "access_token:libtokenid_sdk",
52    "audio_framework:audio_client",
53    "c_utils:utils",
54    "hilog:libhilog",
55    "ipc:ipc_single",
56    "media_foundation:media_foundation",
57    "napi:ace_napi",
58  ]
59  relative_install_dir = "module/multimedia"
60  part_name = "player_framework"
61  subsystem_name = "multimedia"
62}
63