BUILD.gn 1.9 KB
Newer Older
H
handyohos 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 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") {
X
x00405909 已提交
16
  source = "etc/param_watcher.cfg"
H
handyohos 已提交
17 18
  relative_install_dir = "init"
  part_name = "init"
19
  subsystem_name = "startup"
H
handyohos 已提交
20 21 22 23
}

ohos_shared_library("param_watcher") {
  sources = [
C
chengjinsong2 已提交
24
    "//base/startup/init/services/param/linux/param_message.c",
H
handyohos 已提交
25 26 27 28 29
    "proxy/watcher_manager.cpp",
    "proxy/watcher_manager_stub.cpp",
    "proxy/watcher_proxy.cpp",
  ]

A
aodongbiao 已提交
30
  include_dirs = [
H
huangxiaolinabc123 已提交
31
    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/",
M
init  
Mupceet 已提交
32 33 34 35 36 37 38 39 40
    "//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",
H
handyohos 已提交
41 42 43
    "//third_party/cJSON",
  ]

C
chengjinsong2 已提交
44 45 46 47
  deps = [
    "//base/startup/init/interfaces/innerkits:libbegetutil",
    "//base/startup/init/services/log:agent_log",
  ]
H
handyohos 已提交
48 49

  external_deps = [
H
hongtao 已提交
50
    "c_utils:utils",
X
xionglei6 已提交
51
    "ipc:ipc_core",
H
handyohos 已提交
52 53
    "safwk:system_ability_fwk",
  ]
54
  shlib_type = "sa"
H
handyohos 已提交
55 56
  install_images = [ "system" ]
  part_name = "init"
57
  subsystem_name = "startup"
H
handyohos 已提交
58
}