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 "../../../frameworks/dfx/hisysevent_adapter", 44 ] 45 46 sources = [ 47 "../../../frameworks/dfx/hisysevent_adapter/hisysevent_adapter.cpp", 48 "src/custom_config_napi.cpp", 49 ] 50 51 external_deps = [ 52 "ability_runtime:abilitykit_native", 53 "ability_runtime:app_context", 54 "c_utils:utils", 55 "hilog:libhilog", 56 "hisysevent:libhisysevent", 57 "init:libbegetutil", 58 "napi:ace_napi", 59 ] 60 relative_install_dir = "module/customization" 61 subsystem_name = "customization" 62 part_name = "config_policy" 63} 64