1885b47fbSopenharmony_ci# Copyright (C) 2022 Huawei Device Co., Ltd. 2885b47fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3885b47fbSopenharmony_ci# you may not use this file except in compliance with the License. 4885b47fbSopenharmony_ci# You may obtain a copy of the License at 5885b47fbSopenharmony_ci# 6885b47fbSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7885b47fbSopenharmony_ci# 8885b47fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9885b47fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10885b47fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11885b47fbSopenharmony_ci# See the License for the specific language governing permissions and 12885b47fbSopenharmony_ci# limitations under the License. 13885b47fbSopenharmony_ci 14885b47fbSopenharmony_ciimport("//build/ohos.gni") 15885b47fbSopenharmony_ci 16885b47fbSopenharmony_ciohos_shared_library("gesturepoint_napi") { 17885b47fbSopenharmony_ci branch_protector_ret = "pac_ret" 18885b47fbSopenharmony_ci sanitize = { 19885b47fbSopenharmony_ci integer_overflow = true 20885b47fbSopenharmony_ci ubsan = true 21885b47fbSopenharmony_ci boundary_sanitize = true 22885b47fbSopenharmony_ci cfi = false 23885b47fbSopenharmony_ci cfi_cross_dso = false 24885b47fbSopenharmony_ci debug = false 25885b47fbSopenharmony_ci } 26885b47fbSopenharmony_ci 27885b47fbSopenharmony_ci include_dirs = [ 28885b47fbSopenharmony_ci "../../../../common/log/include", 29885b47fbSopenharmony_ci "../include", 30885b47fbSopenharmony_ci "include", 31885b47fbSopenharmony_ci ] 32885b47fbSopenharmony_ci 33885b47fbSopenharmony_ci defines = [ 34885b47fbSopenharmony_ci "AAMS_LOG_TAG = \"accessibility_napi\"", 35885b47fbSopenharmony_ci "AAMS_LOG_DOMAIN = 0xD001D10", 36885b47fbSopenharmony_ci ] 37885b47fbSopenharmony_ci 38885b47fbSopenharmony_ci if (build_variant == "user") { 39885b47fbSopenharmony_ci defines += [ "RELEASE_VERSION" ] 40885b47fbSopenharmony_ci } 41885b47fbSopenharmony_ci 42885b47fbSopenharmony_ci sources = [ 43885b47fbSopenharmony_ci "./src/napi_accessibility_gesture_point.cpp", 44885b47fbSopenharmony_ci "./src/native_module.cpp", 45885b47fbSopenharmony_ci ] 46885b47fbSopenharmony_ci 47885b47fbSopenharmony_ci configs = [] 48885b47fbSopenharmony_ci 49885b47fbSopenharmony_ci deps = [ "../../../innerkits/common:accessibility_common" ] 50885b47fbSopenharmony_ci 51885b47fbSopenharmony_ci external_deps = [ 52885b47fbSopenharmony_ci "hilog:libhilog", 53885b47fbSopenharmony_ci "napi:ace_napi", 54885b47fbSopenharmony_ci ] 55885b47fbSopenharmony_ci 56885b47fbSopenharmony_ci relative_install_dir = "module/accessibility" 57885b47fbSopenharmony_ci subsystem_name = "barrierfree" 58885b47fbSopenharmony_ci part_name = "accessibility" 59885b47fbSopenharmony_ci} 60