BUILD.gn 2.1 KB
Newer Older
Z
zhong_ning 已提交
1 2 3 4 5 6 7 8 9 10 11
# 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
H
handyohos 已提交
12
# limitations under the License.
Z
zhong_ning 已提交
13 14 15

import("//build/ohos.gni")

H
handyohos 已提交
16 17 18 19 20 21 22 23 24 25 26
ohos_executable("begetctl") {
  sources = [
    "main.c",
    "misc_daemon.cpp",
    "init_cmd_reboot.c",
    "service_control.c",
    "param_cmd.c"
  ]

  defines = [ "INIT_AGENT" ]

Z
zhong_ning 已提交
27
  include_dirs = [
H
handyohos 已提交
28 29
    "//base/startup/init_lite/services/include",
    "//base/startup/init_lite/services/log",
Z
zhong_ning 已提交
30
    "//base/startup/init_lite/interfaces/innerkits/include",
H
handyohos 已提交
31
    "//base/update/updater/interfaces/kits/include/misc_info",
Z
zhong_ning 已提交
32
    "//base/startup/syspara_lite/interfaces/innerkits/native/syspara/include",
H
handyohos 已提交
33 34 35 36
    "//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",
Z
zhong_ning 已提交
37 38 39 40
  ]
  deps = [
    "//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared",
    "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
H
handyohos 已提交
41 42 43 44
    "//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",
Z
zhong_ning 已提交
45
  ]
H
handyohos 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

  external_deps = [ "hiviewdfx_hilog_native:libhilog" ]

  symlink_target_name = [
      "misc_daemon",
      "reboot",
      "devctl",
      "service",
      "service_control",
      "start_service",
      "stop_service",
      "service",
      "param"
  ]

Z
zhong_ning 已提交
61 62
  install_images = [ "system" ]
  install_enable = true
H
handyohos 已提交
63

Z
zhong_ning 已提交
64 65
  part_name = "init"
}