# 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_executable("begetctl") { sources = [ "main.c", "misc_daemon.cpp", "init_cmd_reboot.c", "service_control.c", "param_cmd.c" ] defines = [ "INIT_AGENT" ] include_dirs = [ "//base/startup/init_lite/services/include", "//base/startup/init_lite/services/log", "//base/startup/init_lite/interfaces/innerkits/include", "//base/update/updater/interfaces/kits/include/misc_info", "//base/startup/syspara_lite/interfaces/innerkits/native/syspara/include", "//base/startup/init_lite/services/include/param/", "//base/startup/init_lite/services/param/include", "//third_party/bounds_checking_function/include", "//base/update/updateservice/interfaces/innerkits/include", ] deps = [ "//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared", "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara", "//base/startup/init_lite/interfaces/innerkits/reboot:libreboot_static", "//base/startup/init_lite/services/log:agent_log", "//base/startup/init_lite/services/param:param_client", "//third_party/bounds_checking_function:libsec_static", ] external_deps = [ "hiviewdfx_hilog_native:libhilog" ] symlink_target_name = [ "misc_daemon", "reboot", "devctl", "service", "service_control", "start_service", "stop_service", "service", "param" ] install_images = [ "system" ] install_enable = true part_name = "init" }