• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13
14import("//build/ohos.gni")
15import("../../../updateengine.gni")
16
17ohos_prebuilt_etc("updater_sa.rc") {
18  source = "etc/updater_sa.rc"
19  relative_install_dir = "init"
20  part_name = "$updateengine_part_name"
21  subsystem_name = "updater"
22}
23
24config("updateengine_inner_library_native_config") {
25  include_dirs = [
26    "$updateengine_root_path/interfaces/inner_api/include",
27    "$updateengine_root_path/services/core/ability/define/include",
28    "$updateengine_root_path/services/core/ability/log/include",
29    "$updateengine_root_path/services/core/ability/utils/include",
30  ]
31}
32
33ohos_shared_library("$updateengine_inner_library_name") {
34  defines = [ "DUAL_ADAPTER" ]
35  sources = [
36    "$updateengine_root_path/interfaces/inner_api/engine/update_service_kits_impl.cpp",
37    "$updateengine_root_path/interfaces/inner_api/engine/update_service_ondemand.cpp",
38    "$updateengine_root_path/interfaces/inner_api/engine/update_service_proxy.cpp",
39    "$updateengine_root_path/services/callback/src/update_callback.cpp",
40    "$updateengine_root_path/services/callback/src/update_callback_stub.cpp",
41    "$updateengine_root_path/services/core/ability/log/src/update_log.cpp",
42    "$updateengine_root_path/services/engine/src/message_parcel_helper.cpp",
43    "$updateengine_root_path/services/engine/src/update_helper.cpp",
44  ]
45
46  include_dirs = [
47    "$updateengine_root_path/interfaces/inner_api/include",
48    "$updateengine_root_path/services/callback/include",
49    "$updateengine_root_path/services/core/ability/utils/include",
50    "$updateengine_root_path/services/engine/include",
51    "//third_party/bounds_checking_function/include",  # secure method
52  ]
53
54  public_configs = [ ":updateengine_inner_library_native_config" ]
55
56  deps = [ "//third_party/bounds_checking_function:libsec_static" ]
57
58  external_deps = [
59    "c_utils:utils",  # sptr
60    "hilog:libhilog",
61    "ipc:ipc_core",
62    "safwk:system_ability_fwk",
63    "samgr:samgr_proxy",
64  ]
65
66  part_name = "$updateengine_part_name"
67  subsystem_name = "updater"
68}
69