1# Copyright (c) 2024-2024 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("../../multimodalinput_mini.gni") 15 16config("napi_config") { 17 include_dirs = [ 18 "${mmi_path}/util/common/include", 19 "${mmi_path}/util/napi/include", 20 "${mmi_path}/interfaces/native/innerkits/event/include", 21 ] 22} 23 24ohos_shared_library("libmmi-napi") { 25 sources = [ 26 "src/key_event_napi.cpp", 27 "src/util_napi.cpp", 28 "src/util_napi_error.cpp", 29 "src/util_napi_value.cpp", 30 ] 31 branch_protector_ret = "pac_ret" 32 sanitize = { 33 integer_overflow = true 34 ubsan = true 35 boundary_sanitize = true 36 cfi = true 37 cfi_cross_dso = true 38 debug = false 39 } 40 41 configs = [ "${mmi_path}:coverage_flags" ] 42 43 public_configs = [ ":napi_config" ] 44 45 deps = [ "${mmi_path}/util:libmmi-util" ] 46 47 external_deps = [ 48 "hilog:libhilog", 49 "napi:ace_napi", 50 ] 51 52 innerapi_tags = [ "platformsdk" ] 53 part_name = "input" 54 subsystem_name = "multimodalinput" 55} 56