BUILD.gn 1.2 KB
Newer Older
M
Mupceet 已提交
1
# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
X
xionglei6 已提交
2 3 4 5 6 7 8 9 10 11 12
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
C
cheng_jinsong 已提交
13
import("//build/ohos.gni")
X
xionglei6 已提交
14

M
Mupceet 已提交
15 16
group("static_modules") {
  if (!defined(ohos_lite)) {
17
    deps = [
M
Mupceet 已提交
18
      "bootchart:libbootchart_static",
19
      "bootevent:libbootevent_static",
M
Mupceet 已提交
20
      "init_hook:inithook",
C
cheng_jinsong 已提交
21
      "reboot:libreboot_static",
22
    ]
X
<feat>  
xiacong 已提交
23 24 25
    if (build_seccomp) {
      deps += [ "seccomp:libseccomp_static" ]
    }
C
cheng_jinsong 已提交
26 27 28
    if (build_selinux) {
      deps += [ "selinux:libselinuxadp_static" ]
    }
C
cheng_jinsong 已提交
29
  }
30 31
}

M
Mupceet 已提交
32 33
group("modulesgroup") {
  if (!defined(ohos_lite)) {
C
cheng_jinsong 已提交
34 35 36 37
    deps = [
      "bootchart:bootchart",
      "reboot:rebootmodule",
    ]
X
<feat>  
xiacong 已提交
38 39 40
    if (build_seccomp) {
      deps += [ "seccomp:seccomp_module" ]
    }
C
cheng_jinsong 已提交
41 42 43
    if (build_selinux) {
      deps += [ "selinux:selinuxadp" ]
    }
C
cheng_jinsong 已提交
44
  }
X
xionglei6 已提交
45
}