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.
13import("//build/ohos.gni")
14import("../../ecologicalrulemgrservice.gni")
15
16config("ecologicalrulemgrservice_client_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "include",
20    "${ecologicalrulemgrservice_path}/manager/include",
21    "${ecologicalrulemgrservice_utils_path}/include",
22  ]
23}
24
25ohos_shared_library("erms_client") {
26  sources = [
27    "${innerkits_path}/src/ecological_rule_mgr_service_client.cpp",
28    "${innerkits_path}/src/ecological_rule_mgr_service_param.cpp",
29    "${innerkits_path}/src/ecological_rule_mgr_service_proxy.cpp",
30  ]
31
32  configs = [ ":ecologicalrulemgrservice_client_config" ]
33  public_configs = [ ":ecologicalrulemgrservice_client_config" ]
34  deps = []
35  external_deps = [
36    "ability_base:want",
37    "bundle_framework:appexecfwk_base",
38    "c_utils:utils",
39    "eventhandler:libeventhandler",
40    "hilog:libhilog",
41    "ipc:ipc_core",
42    "samgr:samgr_proxy",
43  ]
44  innerapi_tags = [ "platformsdk" ]
45  subsystem_name = "bundlemanager"
46  part_name = "ecological_rule_manager"
47}
48