• 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")
17import("./../../../multimedia_player_framework_aafwk.gni")
18
19ohos_shared_library("systemsoundmanager") {
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24  }
25
26  include_dirs = [
27    "./include",
28    "./include/ringtone_player",
29    "./include/system_tone_player",
30    "./../avplayer/",
31    "./../common/",
32    "./../../native/system_sound_manager",
33    "./../../../interfaces/inner_api/native",
34    "./../../../interfaces/inner_api/native/system_sound_manager/include",
35    "./../../../services/utils/include",
36    "//third_party/libuv/include",
37    "./../common",
38  ]
39
40  sources = [
41    "./src/ringtone_player/audio_renderer_info_napi.cpp",
42    "./src/ringtone_player/ringtone_common_napi.cpp",
43    "./src/ringtone_player/ringtone_options_napi.cpp",
44    "./src/ringtone_player/ringtone_player_callback_napi.cpp",
45    "./src/ringtone_player/ringtone_player_napi.cpp",
46    "./src/system_sound_manager_napi.cpp",
47    "./src/system_tone_player/system_tone_options_napi.cpp",
48    "./src/system_tone_player/system_tone_player_napi.cpp",
49  ]
50
51  deps = [ "./../../native/system_sound_manager:system_sound_client" ]
52
53  external_deps = [
54    "ability_runtime:abilitykit_native",
55    "ability_runtime:napi_base_context",
56    "access_token:libaccesstoken_sdk",
57    "access_token:libtokenid_sdk",
58    "audio_framework:audio_client",
59    "c_utils:utils",
60    "graphic_surface:surface",
61    "hilog:libhilog",
62    "ipc:ipc_single",
63    "media_foundation:media_foundation",
64    "napi:ace_napi",
65    "qos_manager:qos",
66    "resource_management:global_resmgr",
67  ]
68  relative_install_dir = "module/multimedia"
69  part_name = "player_framework"
70  subsystem_name = "multimedia"
71}
72