• 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  include_dirs = [
21    "${multimedia_player_framework_path}/frameworks/js/ringtone_manager/include",
22    "${multimedia_player_framework_path}/interfaces/inner_api/native",
23    "${multimedia_player_framework_path}/interfaces/inner_api/native/audio_ringtone/include",
24    "${multimedia_player_framework_path}/services/utils/include",
25    "${multimedia_audio_framework_path}/interfaces/inner_api/native/audiocommon/include",
26    "//third_party/libuv/include",
27  ]
28
29  sources = [
30    "./src/audio_renderer_info_napi.cpp",
31    "./src/ringtone_common_napi.cpp",
32    "./src/ringtone_options_napi.cpp",
33    "./src/ringtone_player_callback_napi.cpp",
34    "./src/ringtone_player_napi.cpp",
35    "./src/system_sound_manager_napi.cpp",
36  ]
37
38  deps = [ "./../../native/system_sound:audio_ringtone_client" ]
39
40  external_deps = [
41    "ability_runtime:abilitykit_native",
42    "ability_runtime:napi_base_context",
43    "access_token:libaccesstoken_sdk",
44    "access_token:libtokenid_sdk",
45    "c_utils:utils",
46    "hilog:libhilog",
47    "ipc:ipc_single",
48    "napi:ace_napi",
49    "resource_management:global_resmgr",
50  ]
51  relative_install_dir = "module/multimedia"
52  part_name = "player_framework"
53  subsystem_name = "multimedia"
54}
55