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 "udid:libudid_static", 26 ] 27 if (build_seccomp) { 28 deps += [ "seccomp:libseccomp_static" ] 29 } 30 if (build_selinux) { 31 deps += [ "selinux:libselinuxadp_static" ] 32 } 33 if (init_use_encaps) { 34 deps += [ "encaps:libencaps_static" ] 35 } 36 deps += [ "trace:inittrace_cfg" ] 37 } 38} 39 40group("modulesgroup") { 41 if (!defined(ohos_lite)) { 42 deps = [ 43 "bootchart:bootchart", 44 "init_context:init_context", 45 "init_eng:init_eng", 46 "reboot:rebootmodule", 47 "sysevent:eventmodule", 48 "trace:inittrace", 49 "udid:udidmodule", 50 ] 51 if (build_seccomp) { 52 deps += [ "seccomp:seccomp_filter" ] 53 } 54 if (build_selinux) { 55 deps += [ "selinux:selinuxadp" ] 56 } 57 } 58} 59