1# Copyright (c) 2022-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") 15 16ohos_shared_library("configpolicy") { 17 include_dirs = [ 18 "include", 19 "../../../interfaces/inner_api/include", 20 "../../../frameworks/dfx/hisysevent_adapter", 21 ] 22 23 sources = [ 24 "../../../frameworks/dfx/hisysevent_adapter/hisysevent_adapter.cpp", 25 "src/config_policy_napi.cpp", 26 ] 27 28 deps = [ "../../../frameworks/config_policy:configpolicy_util" ] 29 external_deps = [ 30 "hilog:libhilog", 31 "hisysevent:libhisysevent", 32 "napi:ace_napi", 33 ] 34 relative_install_dir = "module" 35 subsystem_name = "customization" 36 part_name = "config_policy" 37} 38 39ohos_shared_library("customconfig") { 40 include_dirs = [ 41 "include", 42 "../../../interfaces/inner_api/include", 43 ] 44 45 sources = [ 46 "src/custom_config_napi.cpp", 47 ] 48 49 external_deps = [ 50 "ability_runtime:abilitykit_native", 51 "ability_runtime:app_context", 52 "c_utils:utils", 53 "hilog:libhilog", 54 "init:libbegetutil", 55 "ipc:ipc_single", 56 "napi:ace_napi", 57 ] 58 relative_install_dir = "module/customization" 59 subsystem_name = "customization" 60 part_name = "config_policy" 61} 62