# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") ohos_prebuilt_etc("param_watcher.rc") { source = "etc/param_watcher.cfg" relative_install_dir = "init" part_name = "init" subsystem_name = "startup" } ohos_shared_library("param_watcher") { sources = [ "//base/startup/init/services/param/linux/param_message.c", "proxy/watcher_manager.cpp", "proxy/watcher_manager_stub.cpp", "proxy/watcher_proxy.cpp", ] include_dirs = [ "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", "//base/startup/init/services/param/include", "//base/startup/init/services/include/param", "//base/startup/init/services/param/linux", "//base/startup/init/services/param/watcher/proxy", "//base/startup/init/services/param/watcher/include", "//base/startup/init/services/include", "//base/startup/init/services/log", "//base/startup/init/interfaces/innerkits/include", "//base/startup/init/services/loopevent/include", "//third_party/cJSON", ] deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil", "//base/startup/init/services/log:agent_log", ] external_deps = [ "c_utils:utils", "ipc:ipc_core", "safwk:system_ability_fwk", ] shlib_type = "sa" install_images = [ "system" ] part_name = "init" subsystem_name = "startup" }