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 subsystem_name = "startup" 20} 21 22ohos_shared_library("param_watcher") { 23 sources = [ 24 "proxy/watcher_manager.cpp", 25 "proxy/watcher_manager_stub.cpp", 26 "proxy/watcher_proxy.cpp", 27 ] 28 29 include_dirs = [ 30 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", 31 "//base/startup/init/services/param/include", 32 "//base/startup/init/services/include/param", 33 "//base/startup/init/services/param/linux", 34 "//base/startup/init/services/param/watcher/proxy", 35 "//base/startup/init/services/param/watcher/include", 36 "//base/startup/init/services/include", 37 "//base/startup/init/services/log", 38 "//base/startup/init/interfaces/innerkits/include", 39 "//base/startup/init/services/loopevent/include", 40 "//third_party/cJSON", 41 ] 42 43 deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "ipc:ipc_core", 48 "safwk:system_ability_fwk", 49 ] 50 install_images = [ "system" ] 51 part_name = "init" 52 subsystem_name = "startup" 53} 54