1# Copyright (c) 2021-2022 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("../../../resmgr.gni") 16 17ohos_shared_library("resourcemanager") { 18 include_dirs = [ 19 "../../../dfx/hisysevent_adapter", 20 "../../../frameworks/resmgr/include", 21 "../../inner_api/include", 22 ] 23 24 sources = [ 25 "../../../dfx/hisysevent_adapter/hisysevent_adapter.cpp", 26 "src/resource_manager_napi.cpp", 27 ] 28 29 defines = [ "CONFIG_HILOG" ] 30 31 deps = [ "../innerkits/core:resmgr_napi_core" ] 32 33 external_deps = [ 34 "ability_runtime:abilitykit_native", 35 "ability_runtime:extensionkit_native", 36 "ability_runtime:runtime", 37 "hilog:libhilog", 38 "hisysevent:libhisysevent", 39 "hitrace:hitrace_meter", 40 "napi:ace_napi", 41 ] 42 43 stack_protector_ret = true 44 sanitize = { 45 boundary_sanitize = true 46 cfi = true 47 cfi_cross_dso = true 48 debug = false 49 integer_overflow = true 50 ubsan = true 51 } 52 relative_install_dir = "module" 53 subsystem_name = "global" 54 part_name = "resource_management" 55} 56 57ohos_shared_library("sendableresourcemanager") { 58 include_dirs = [ "../../inner_api/include" ] 59 60 sources = [ "src/sendable_resource_manager_napi.cpp" ] 61 62 defines = [ "CONFIG_HILOG" ] 63 64 external_deps = [ 65 "hilog:libhilog", 66 "napi:ace_napi", 67 ] 68 69 stack_protector_ret = true 70 sanitize = { 71 boundary_sanitize = true 72 cfi = true 73 cfi_cross_dso = true 74 debug = false 75 integer_overflow = true 76 ubsan = true 77 } 78 relative_install_dir = "module" 79 subsystem_name = "global" 80 part_name = "resource_management" 81} 82