1cc290419Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2cc290419Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3cc290419Sopenharmony_ci# you may not use this file except in compliance with the License.
4cc290419Sopenharmony_ci# You may obtain a copy of the License at
5cc290419Sopenharmony_ci#
6cc290419Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7cc290419Sopenharmony_ci#
8cc290419Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9cc290419Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10cc290419Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11cc290419Sopenharmony_ci# See the License for the specific language governing permissions and
12cc290419Sopenharmony_ci# limitations under the License.
13cc290419Sopenharmony_ci
14cc290419Sopenharmony_ciimport("//build/ohos.gni")
15cc290419Sopenharmony_ciimport("//developtools/hdc/hdc.gni")
16cc290419Sopenharmony_ci
17cc290419Sopenharmony_cigroup("daemon_etc") {
18cc290419Sopenharmony_ci  deps = [
19cc290419Sopenharmony_ci    ":hdc.para",
20cc290419Sopenharmony_ci    ":hdc.para.dac",
21cc290419Sopenharmony_ci    ":hdcd.cfg",
22cc290419Sopenharmony_ci  ]
23cc290419Sopenharmony_ci}
24cc290419Sopenharmony_ci
25cc290419Sopenharmony_ciohos_prebuilt_etc("hdcd.cfg") {
26cc290419Sopenharmony_ci  source = "hdcd.root.cfg"
27cc290419Sopenharmony_ci  if (build_variant == "user") {
28cc290419Sopenharmony_ci    source = "hdcd.cfg"
29cc290419Sopenharmony_ci  }
30cc290419Sopenharmony_ci  relative_install_dir = "init"
31cc290419Sopenharmony_ci  install_images = [
32cc290419Sopenharmony_ci    "system",
33cc290419Sopenharmony_ci    "updater",
34cc290419Sopenharmony_ci  ]
35cc290419Sopenharmony_ci  output = "hdcd.cfg"
36cc290419Sopenharmony_ci  part_name = "hdc"
37cc290419Sopenharmony_ci  subsystem_name = "developtools"
38cc290419Sopenharmony_ci}
39cc290419Sopenharmony_ci
40cc290419Sopenharmony_ciohos_prebuilt_etc("hdc.para") {
41cc290419Sopenharmony_ci  source = "hdc.root.para"
42cc290419Sopenharmony_ci  if (build_variant == "user") {
43cc290419Sopenharmony_ci    source = "hdc.para"
44cc290419Sopenharmony_ci  }
45cc290419Sopenharmony_ci  relative_install_dir = "param"
46cc290419Sopenharmony_ci  install_images = [
47cc290419Sopenharmony_ci    "system",
48cc290419Sopenharmony_ci    "updater",
49cc290419Sopenharmony_ci  ]
50cc290419Sopenharmony_ci  output = "hdc.para"
51cc290419Sopenharmony_ci  part_name = "hdc"
52cc290419Sopenharmony_ci  subsystem_name = "developtools"
53cc290419Sopenharmony_ci}
54cc290419Sopenharmony_ci
55cc290419Sopenharmony_ciohos_prebuilt_etc("hdc.para.dac") {
56cc290419Sopenharmony_ci  source = "hdc.para.dac"
57cc290419Sopenharmony_ci  relative_install_dir = "param"
58cc290419Sopenharmony_ci  install_images = [
59cc290419Sopenharmony_ci    "system",
60cc290419Sopenharmony_ci    "updater",
61cc290419Sopenharmony_ci  ]
62cc290419Sopenharmony_ci  part_name = "hdc"
63cc290419Sopenharmony_ci  subsystem_name = "developtools"
64cc290419Sopenharmony_ci}
65