1# Copyright (c) 2022 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("//developtools/hdc/hdc.gni") 16 17group("daemon_etc") { 18 deps = [ 19 ":hdc.para", 20 ":hdc.para.dac", 21 ":hdcd.cfg", 22 ] 23} 24 25ohos_prebuilt_etc("hdcd.cfg") { 26 source = "hdcd.root.cfg" 27 if (build_variant == "user") { 28 source = "hdcd.cfg" 29 } 30 if (hdc_feature_support_sudo && build_variant == "user") { 31 source = "hdcd_sudo.cfg" 32 } 33 relative_install_dir = "init" 34 install_images = [ 35 "system", 36 "updater", 37 ] 38 output = "hdcd.cfg" 39 part_name = "hdc" 40 subsystem_name = "developtools" 41} 42 43ohos_prebuilt_etc("hdc.para") { 44 source = "hdc.root.para" 45 if (build_variant == "user") { 46 source = "hdc.para" 47 } 48 relative_install_dir = "param" 49 install_images = [ 50 "system", 51 "updater", 52 ] 53 output = "hdc.para" 54 part_name = "hdc" 55 subsystem_name = "developtools" 56} 57 58ohos_prebuilt_etc("hdc.para.dac") { 59 source = "hdc.para.dac" 60 relative_install_dir = "param" 61 install_images = [ 62 "system", 63 "updater", 64 ] 65 part_name = "hdc" 66 subsystem_name = "developtools" 67} 68