1190978c3Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
2190978c3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3190978c3Sopenharmony_ci# you may not use this file except in compliance with the License.
4190978c3Sopenharmony_ci# You may obtain a copy of the License at
5190978c3Sopenharmony_ci#
6190978c3Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7190978c3Sopenharmony_ci#
8190978c3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9190978c3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10190978c3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11190978c3Sopenharmony_ci# See the License for the specific language governing permissions and
12190978c3Sopenharmony_ci# limitations under the License.
13190978c3Sopenharmony_ci
14190978c3Sopenharmony_ciimport("//build/ohos.gni")
15190978c3Sopenharmony_ciimport("../../services/engine/engine_sa.gni")
16190978c3Sopenharmony_ci
17190978c3Sopenharmony_ciohos_prebuilt_etc("dupdate_config.json") {
18190978c3Sopenharmony_ci  source = "$update_service_dupdate_config_path"
19190978c3Sopenharmony_ci  relative_install_dir = "update"
20190978c3Sopenharmony_ci  install_images = [
21190978c3Sopenharmony_ci    "updater",
22190978c3Sopenharmony_ci    "system",
23190978c3Sopenharmony_ci  ]
24190978c3Sopenharmony_ci  part_name = "$updateengine_part_name"
25190978c3Sopenharmony_ci  subsystem_name = "updater"
26190978c3Sopenharmony_ci}
27190978c3Sopenharmony_ci
28190978c3Sopenharmony_ciohos_prebuilt_etc("updater_sa.cfg") {
29190978c3Sopenharmony_ci  source = "$update_service_updater_sa_cfg_path"
30190978c3Sopenharmony_ci  relative_install_dir = "init"
31190978c3Sopenharmony_ci  part_name = "$updateengine_part_name"
32190978c3Sopenharmony_ci  subsystem_name = "updater"
33190978c3Sopenharmony_ci}
34190978c3Sopenharmony_ci
35190978c3Sopenharmony_ciohos_shared_library("$updateengine_library_name") {
36190978c3Sopenharmony_ci  shlib_type = "sa"
37190978c3Sopenharmony_ci  include_dirs = sa_include_dirs
38190978c3Sopenharmony_ci  sources = sa_sources
39190978c3Sopenharmony_ci  deps = sa_deps
40190978c3Sopenharmony_ci  external_deps = sa_external_deps
41190978c3Sopenharmony_ci  public_deps = sa_public_deps
42190978c3Sopenharmony_ci  part_name = "$updateengine_part_name"
43190978c3Sopenharmony_ci  subsystem_name = "updater"
44190978c3Sopenharmony_ci  defines = sa_defines
45190978c3Sopenharmony_ci  cflags = sa_cflags
46190978c3Sopenharmony_ci}
47