1# Copyright (c) 2023 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. 13import("//base/startup/init/begetd.gni") 14import("//build/ohos.gni") 15 16group("static_modules") { 17 if (!defined(ohos_lite)) { 18 deps = [ 19 "bootchart:libbootchart_static", 20 "bootevent:libbootevent_static", 21 "init_context:initcontext_static", 22 "init_eng:libiniteng_static", 23 "init_hook:inithook", 24 "reboot:libreboot_static", 25 "trace:inittrace_static", 26 "udid:libudid_static", 27 ] 28 if (build_seccomp) { 29 deps += [ "seccomp:libseccomp_static" ] 30 } 31 if (build_selinux) { 32 deps += [ "selinux:libselinuxadp_static" ] 33 } 34 if (init_use_encaps) { 35 deps += [ "encaps:libencaps_static" ] 36 } 37 deps += [ "trace:inittrace_cfg" ] 38 } 39} 40 41group("modulesgroup") { 42 if (!defined(ohos_lite)) { 43 deps = [ 44 "bootchart:bootchart", 45 "init_context:init_context", 46 "init_eng:init_eng", 47 "module_update:module_update_init", 48 "reboot:rebootmodule", 49 "sysevent:eventmodule", 50 "trace:inittrace", 51 "udid:udidmodule", 52 ] 53 if (build_seccomp) { 54 deps += [ "seccomp:seccomp_filter" ] 55 } 56 if (build_selinux) { 57 deps += [ "selinux:selinuxadp" ] 58 } 59 } 60} 61