1# Copyright (c) 2023 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("//base/security/asset/config.gni") 15import("//build/ohos.gni") 16 17ohos_static_library("asset_os_dependency") { 18 include_dirs = [ 19 "inc", 20 "../../frameworks/os_dependency/log/inc", 21 "../../interfaces/kits/c/inc", 22 ] 23 sources = [ 24 "src/access_token_wrapper.cpp", 25 "src/bms_wrapper.cpp", 26 "src/os_account_wrapper.cpp", 27 "src/system_ability_wrapper.cpp", 28 "src/system_event_wrapper.cpp", 29 "src/file_operator_wrapper.cpp", 30 ] 31 deps = [ "../../frameworks/os_dependency/memory:asset_mem" ] 32 external_deps = [ 33 "ability_base:want", 34 "access_token:libaccesstoken_sdk", 35 "access_token:libtokenid_sdk", 36 "bundle_framework:appexecfwk_base", 37 "bundle_framework:appexecfwk_core", 38 "c_utils:utils", 39 "common_event_service:cesfwk_innerkits", 40 "hilog:libhilog", 41 "ipc:ipc_single", 42 "os_account:os_account_innerkits", 43 "samgr:samgr_proxy", 44 ] 45 cflags = [ "-DASSET_UPGRADE_HAP_CONFIG=${asset_split_hap_list}" ] 46 subsystem_name = "security" 47 part_name = "asset" 48} 49