1# Copyright (c) 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("//build/ohos.gni") 15import("//foundation/ability/dmsfwk/dmsfwk.gni") 16 17config("continuemanager_napi_public_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "//foundation/ability/dmsfwk/interfaces/kits/napi/include/", 21 "//foundation/ability/dmsfwk/services/dtbabilitymgr/include/", 22 "//foundation/ability/dmsfwk/services/dtbschedmgr/include/", 23 ] 24 25 cflags = [] 26 if (target_cpu == "arm") { 27 cflags += [ "-DBINDER_IPC_32BIT" ] 28 } 29} 30 31ohos_shared_library("continuemanager_napi") { 32 branch_protector_ret = "pac_ret" 33 sanitize = { 34 boundary_sanitize = true 35 cfi = true 36 cfi_cross_dso = true 37 debug = false 38 integer_overflow = true 39 ubsan = true 40 } 41 42 sources = [ 43 "js_continuation_state_client.cpp", 44 "js_continuation_state_manager.cpp", 45 "js_continuation_state_manager_stub.cpp", 46 ] 47 48 public_configs = [ ":continuemanager_napi_public_config" ] 49 50 ldflags = [ 51 "-fpie", 52 "-Wl,-z,relro", 53 "-Wl,-z,now", 54 ] 55 56 deps = [ 57 "${dms_path}/common:distributed_sched_utils", 58 "../../../innerkits/common:common_sdk", 59 ] 60 61 external_deps = [ 62 "ability_base:want", 63 "ability_runtime:ability_context_native", 64 "ability_runtime:abilitykit_native", 65 "ability_runtime:napi_base_context", 66 "ability_runtime:wantagent_innerkits", 67 "cJSON:cjson", 68 "c_utils:utils", 69 "device_manager:devicemanagersdk", 70 "device_security_level:dslm_sdk", 71 "hilog:libhilog", 72 "ipc:ipc_core", 73 "napi:ace_napi", 74 "resource_management:global_resmgr", 75 "samgr:samgr_proxy", 76 ] 77 78 relative_install_dir = "module/app/ability" 79 subsystem_name = "ability" 80 part_name = "dmsfwk" 81} 82