1# Copyright (c) 2021 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") 14 15ohos_prebuilt_etc("param_watcher.rc") { 16 source = "etc/param_watcher.cfg" 17 relative_install_dir = "init" 18 part_name = "init" 19} 20 21ohos_shared_library("param_watcheragent") { 22 sources = [ 23 "agent/watcher.cpp", 24 "agent/watcher_manager_kits.cpp", 25 "agent/watcher_manager_proxy.cpp", 26 "agent/watcher_stub.cpp", 27 ] 28 29 include_dirs = [ 30 "//base/startup/init_lite/services/param/include", 31 "//base/startup/init_lite/services/include/param", 32 "//base/startup/init_lite/services/param/watcher/include", 33 "//base/startup/init_lite/services/param/watcher/agent", 34 "//base/startup/init_lite/services/include", 35 "//base/startup/init_lite/services/log", 36 "//base/startup/init_lite/interfaces/innerkits/include", 37 "//base/startup/init_lite/services/loopevent/include", 38 ] 39 40 defines = [ "INIT_AGENT" ] 41 42 deps = [ 43 "//base/startup/init_lite/services/log:agent_log", 44 "//base/startup/init_lite/services/param:param_client", 45 "//third_party/bounds_checking_function:libsec_static", 46 "//utils/native/base:utils", 47 ] 48 49 external_deps = [ 50 "ipc:ipc_core", 51 "safwk:system_ability_fwk", 52 "samgr_standard:samgr_proxy", 53 ] 54 55 part_name = "init" 56} 57 58ohos_shared_library("param_watcher") { 59 sources = [ 60 "//base/startup/init_lite/services/utils/list.c", 61 "proxy/watcher_manager.cpp", 62 "proxy/watcher_manager_stub.cpp", 63 "proxy/watcher_proxy.cpp", 64 ] 65 66 include_dirs = [ 67 "//base/startup/init_lite/services/param/include", 68 "//base/startup/init_lite/services/include/param", 69 "//base/startup/init_lite/services/param/watcher/proxy", 70 "//base/startup/init_lite/services/param/watcher/include", 71 "//base/startup/init_lite/services/include", 72 "//base/startup/init_lite/services/log", 73 "//base/startup/init_lite/interfaces/innerkits/include", 74 "//base/startup/init_lite/services/loopevent/include", 75 "//third_party/libuv/include", 76 "//third_party/cJSON", 77 "//utils/native/base/include", 78 "//utils/system/safwk/native/include", 79 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 80 "//foundation/distributedschedule/safwk/services/safwk/include", 81 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk", 82 "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include", 83 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 84 ] 85 86 defines = [ "INIT_AGENT" ] 87 88 deps = [ 89 "//base/startup/init_lite/services/log:agent_log", 90 "//base/startup/init_lite/services/param:param_client", 91 "//third_party/bounds_checking_function:libsec_static", 92 "//utils/native/base:utils", 93 ] 94 95 external_deps = [ 96 "ipc:ipc_core", 97 "safwk:system_ability_fwk", 98 "samgr_standard:samgr_proxy", 99 ] 100 install_images = [ "system" ] 101 part_name = "init" 102} 103