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("../../resmgr.gni") 16ohos_shared_library("cj_resource_manager_ffi") { 17 include_dirs = [ 18 "../../dfx/hisysevent_adapter", 19 "../../frameworks/resmgr/include", 20 "../inner_api/include", 21 ] 22 23 if (!build_ohos_sdk) { 24 deps = [ "../../frameworks/resmgr:global_resmgr" ] 25 26 external_deps = [ 27 "ability_base:configuration", 28 "ability_runtime:app_context", 29 "ability_runtime:ability_connect_callback_stub", 30 "ace_engine:drawable_descriptor", 31 "bounds_checking_function:libsec_shared", 32 "bundle_framework:appexecfwk_base", 33 "c_utils:utils", 34 "hilog:libhilog", 35 "hisysevent:libhisysevent", 36 "hitrace:hitrace_meter", 37 "init:libbegetutil", 38 "ipc:ipc_single", 39 "napi:ace_napi", 40 "napi:cj_bind_ffi", 41 "napi:cj_bind_native", 42 ] 43 44 sources = [ 45 "src/resource_manager_ffi.cpp", 46 "src/resource_manager_impl.cpp", 47 "src/utils.cpp", 48 ] 49 } else { 50 sources = [ "src/resource_manager_mock.cpp" ] 51 } 52 53 innerapi_tags = [ "platformsdk" ] 54 subsystem_name = "global" 55 part_name = "resource_management" 56} 57