1378b89b0Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2378b89b0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3378b89b0Sopenharmony_ci# you may not use this file except in compliance with the License.
4378b89b0Sopenharmony_ci# You may obtain a copy of the License at
5378b89b0Sopenharmony_ci#
6378b89b0Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7378b89b0Sopenharmony_ci#
8378b89b0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9378b89b0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10378b89b0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11378b89b0Sopenharmony_ci# See the License for the specific language governing permissions and
12378b89b0Sopenharmony_ci# limitations under the License.
13378b89b0Sopenharmony_ci
14378b89b0Sopenharmony_ciimport("../ecologicalrulemgrservice.gni")
15378b89b0Sopenharmony_ci
16378b89b0Sopenharmony_ciconfig("ecologicalrulemgrservice_config") {
17378b89b0Sopenharmony_ci  visibility = [ ":*" ]
18378b89b0Sopenharmony_ci  include_dirs = [
19378b89b0Sopenharmony_ci    "include",
20378b89b0Sopenharmony_ci    "./manager/include",
21378b89b0Sopenharmony_ci    "../utils/include",
22378b89b0Sopenharmony_ci    "${innerkits_path}/include",
23378b89b0Sopenharmony_ci  ]
24378b89b0Sopenharmony_ci}
25378b89b0Sopenharmony_ci
26378b89b0Sopenharmony_ciohos_shared_library("ecologicalrulemgr_service") {
27378b89b0Sopenharmony_ci  configs = [ "${ecologicalrulemgrservice_utils_path}:utils_config" ]
28378b89b0Sopenharmony_ci
29378b89b0Sopenharmony_ci  public_configs = [ ":ecologicalrulemgrservice_config" ]
30378b89b0Sopenharmony_ci
31378b89b0Sopenharmony_ci  cflags = [
32378b89b0Sopenharmony_ci    "-fvisibility=hidden",
33378b89b0Sopenharmony_ci    "-fdata-sections",
34378b89b0Sopenharmony_ci    "-ffunction-sections",
35378b89b0Sopenharmony_ci    "-Os",
36378b89b0Sopenharmony_ci  ]
37378b89b0Sopenharmony_ci  cflags_cc = [
38378b89b0Sopenharmony_ci    "-fvisibility-inlines-hidden",
39378b89b0Sopenharmony_ci    "-Os",
40378b89b0Sopenharmony_ci  ]
41378b89b0Sopenharmony_ci
42378b89b0Sopenharmony_ci  sources = [
43378b89b0Sopenharmony_ci    "${innerkits_path}/src/ecological_rule_mgr_service_param.cpp",
44378b89b0Sopenharmony_ci    "manager/src/ecologic_rule_mgr_service.cpp",
45378b89b0Sopenharmony_ci    "manager/src/ecologic_rule_mgr_service_stub.cpp",
46378b89b0Sopenharmony_ci  ]
47378b89b0Sopenharmony_ci
48378b89b0Sopenharmony_ci  deps = []
49378b89b0Sopenharmony_ci  external_deps = [
50378b89b0Sopenharmony_ci    "ability_base:want",
51378b89b0Sopenharmony_ci    "ability_base:zuri",
52378b89b0Sopenharmony_ci    "ability_runtime:abilitykit_native",
53378b89b0Sopenharmony_ci    "ability_runtime:runtime",
54378b89b0Sopenharmony_ci    "ability_runtime:wantagent_innerkits",
55378b89b0Sopenharmony_ci    "access_token:libaccesstoken_sdk",
56378b89b0Sopenharmony_ci    "access_token:libtokenid_sdk",
57378b89b0Sopenharmony_ci    "bundle_framework:appexecfwk_base",
58378b89b0Sopenharmony_ci    "bundle_framework:appexecfwk_core",
59378b89b0Sopenharmony_ci    "c_utils:utils",
60378b89b0Sopenharmony_ci    "hilog:libhilog",
61378b89b0Sopenharmony_ci    "ipc:ipc_core",
62378b89b0Sopenharmony_ci    "safwk:system_ability_fwk",
63378b89b0Sopenharmony_ci    "samgr:samgr_proxy",
64378b89b0Sopenharmony_ci  ]
65378b89b0Sopenharmony_ci  public_external_deps = [
66378b89b0Sopenharmony_ci    "bundle_framework:appexecfwk_core",
67378b89b0Sopenharmony_ci    "ipc:ipc_core",
68378b89b0Sopenharmony_ci    "json:nlohmann_json_static",
69378b89b0Sopenharmony_ci    "samgr:samgr_proxy",
70378b89b0Sopenharmony_ci  ]
71378b89b0Sopenharmony_ci  part_name = "ecological_rule_manager"
72378b89b0Sopenharmony_ci  subsystem_name = "bundlemanager"
73378b89b0Sopenharmony_ci  use_exceptions = true
74378b89b0Sopenharmony_ci}
75