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("../ecologicalrulemgrservice.gni") 15 16config("ecologicalrulemgrservice_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ 19 "include", 20 "./manager/include", 21 "../utils/include", 22 "${innerkits_path}/include", 23 "//third_party/json/include", 24 "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include", 25 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", 26 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 27 ] 28} 29 30ohos_shared_library("ecologicalrulemgr_service") { 31 configs = [ "${ecologicalrulemgrservice_utils_path}:utils_config" ] 32 33 public_configs = [ 34 "//commonlibrary/c_utils/base:utils_config", 35 ":ecologicalrulemgrservice_config", 36 ] 37 38 cflags = [ 39 "-fvisibility=hidden", 40 "-fdata-sections", 41 "-ffunction-sections", 42 "-Os", 43 ] 44 cflags_cc = [ 45 "-fvisibility-inlines-hidden", 46 "-Os", 47 ] 48 49 sources = [ 50 "${innerkits_path}/src/ecological_rule_mgr_service_param.cpp", 51 "manager/src/ecologic_rule_mgr_service.cpp", 52 "manager/src/ecologic_rule_mgr_service_stub.cpp", 53 ] 54 55 deps = [] 56 external_deps = [ 57 "ability_base:want", 58 "ability_base:zuri", 59 "ability_runtime:abilitykit_native", 60 "ability_runtime:runtime", 61 "ability_runtime:wantagent_innerkits", 62 "access_token:libaccesstoken_sdk", 63 "access_token:libtokenid_sdk", 64 "bundle_framework:appexecfwk_base", 65 "bundle_framework:appexecfwk_core", 66 "c_utils:utils", 67 "hilog:libhilog", 68 "ipc:ipc_core", 69 "safwk:system_ability_fwk", 70 "samgr:samgr_proxy", 71 ] 72 part_name = "ecological_rule_manager" 73 subsystem_name = "bundlemanager" 74 use_exceptions = true 75} 76