1# Copyright (c) 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.gni") 15import("//foundation/ability/ability_runtime/ability_runtime.gni") 16 17ohos_shared_library("verticalpanelmanager_napi") { 18 sanitize = { 19 integer_overflow = true 20 ubsan = true 21 boundary_sanitize = true 22 cfi = true 23 cfi_cross_dso = true 24 cfi_vcall_icall_only = true 25 debug = false 26 } 27 28 include_dirs = [ 29 "include", 30 "${ability_runtime_path}/interfaces/inner_api/", 31 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/", 32 ] 33 34 sources = [ 35 "js_ability_vertical_panel.cpp", 36 "js_panel_start_callback.cpp", 37 "native_module.cpp", 38 ] 39 40 configs = [ "${ability_runtime_services_path}/common:common_config" ] 41 42 deps = [ 43 "${ability_runtime_innerkits_path}/napi_base_context:napi_base_context", 44 "${ability_runtime_innerkits_path}/runtime:runtime", 45 "${ability_runtime_napi_path}/inner/napi_common:napi_common", 46 "${ability_runtime_native_path}/ability:ability_context_native", 47 "${ability_runtime_native_path}/ability/native:abilitykit_native", 48 ] 49 50 external_deps = [ 51 "ability_base:base", 52 "ability_base:want", 53 "access_token:libtokenid_sdk", 54 "ace_engine:ace_uicontent", 55 "c_utils:utils", 56 "hilog:libhilog", 57 "ipc:ipc_core", 58 ] 59 cflags_cc = [] 60 if (os_dlp_part_enabled) { 61 cflags_cc += [ "-DWITH_DLP" ] 62 } 63 64 relative_install_dir = "module/app/ability" 65 66 subsystem_name = "ability" 67 part_name = "ability_runtime" 68} 69