1# Copyright (c) 2024-2025 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/ace/ace.gni") 15import("../../../../device_status.gni") 16 17config("boomerangnapi_private_config") { 18 include_dirs = [ 19 "include", 20 "${device_status_interfaces_path}/innerkits/include", 21 "${device_status_service_path}/native/include", 22 ] 23} 24 25config("boomerang_callback_config") { 26 include_dirs = [ "include" ] 27} 28 29ohos_shared_library("metadatabinding_napi") { 30 branch_protector_ret = "pac_ret" 31 sanitize = { 32 integer_overflow = true 33 ubsan = true 34 boundary_sanitize = true 35 cfi = true 36 cfi_cross_dso = true 37 debug = false 38 } 39 sources = [ 40 "src/boomerang_event.cpp", 41 "src/boomerang_napi.cpp", 42 "src/boomerang_napi_error.cpp", 43 ] 44 45 configs = [ 46 "${device_status_utils_path}:devicestatus_utils_config", 47 ":boomerangnapi_private_config", 48 ] 49 50 public_configs = [ ":boomerang_callback_config" ] 51 52 deps = [ 53 "${device_status_interfaces_path}/innerkits:devicestatus_client", 54 "${device_status_utils_path}:devicestatus_util", 55 ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "graphic_2d:librender_service_client", 60 "hilog:libhilog", 61 "image_framework:image", 62 "image_framework:image_native", 63 "image_framework:pixelmap", 64 "image_framework:pixelmap_ndk", 65 "ipc:ipc_single", 66 "napi:ace_napi", 67 ] 68 69 relative_install_dir = "module/multimodalawareness" 70 subsystem_name = "${device_status_subsystem_name}" 71 part_name = "${device_status_part_name}" 72} 73