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_manager_napi.cpp", 41 "./src/audio_haptic_player/audio_haptic_player_callback_napi.cpp", 42 "./src/audio_haptic_player/audio_haptic_player_napi.cpp", 43 "./src/audio_haptic_player/audio_haptic_player_options_napi.cpp", 44 ] 45 46 deps = [ "./../../native/audio_haptic:audio_haptic" ] 47 48 external_deps = [ 49 "audio_framework:audio_client", 50 "c_utils:utils", 51 "hilog:libhilog", 52 "ipc:ipc_single", 53 "media_foundation:media_foundation", 54 "napi:ace_napi", 55 ] 56 relative_install_dir = "module/multimedia" 57 part_name = "player_framework" 58 subsystem_name = "multimedia" 59} 60