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 "//base/startup/init/services/param/linux/param_message.c", 25 "proxy/watcher_manager.cpp", 26 "proxy/watcher_manager_stub.cpp", 27 "proxy/watcher_proxy.cpp", 28 ] 29 30 include_dirs = [ 31 "//base/startup/init/services/param/include", 32 "//base/startup/init/interfaces/innerkits/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/interfaces/innerkits/include", 37 "//base/startup/init/services/log", 38 "//base/startup/init/services/loopevent/include", 39 "//third_party/cJSON", 40 ] 41 42 deps = [ 43 "//base/startup/init/interfaces/innerkits:libbegetutil", 44 "//base/startup/init/services/log:agent_log", 45 ] 46 47 branch_protector_ret = "pac_ret" 48 sanitize = { 49 cfi = true 50 cfi_cross_dso = true 51 debug = false 52 } 53 54 external_deps = [ 55 "c_utils:utils", 56 "ipc:ipc_core", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 ] 60 shlib_type = "sa" 61 install_images = [ "system" ] 62 part_name = "init" 63 subsystem_name = "startup" 64} 65