BUILD.gn 1.4 KB
Newer Older
C
cheng_jinsong 已提交
1
# Copyright (c) 2023 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",
C
chengjinsong2 已提交
22
      "udid:libudid_static",
23
    ]
X
<feat>  
xiacong 已提交
24 25 26
    if (build_seccomp) {
      deps += [ "seccomp:libseccomp_static" ]
    }
C
cheng_jinsong 已提交
27 28 29
    if (build_selinux) {
      deps += [ "selinux:libselinuxadp_static" ]
    }
C
cheng_jinsong 已提交
30 31 32 33
    deps += [
      "trace:inittrace_cfg",
      "trace:libinittrace_static",
    ]
C
cheng_jinsong 已提交
34
  }
35 36
}

M
Mupceet 已提交
37 38
group("modulesgroup") {
  if (!defined(ohos_lite)) {
C
cheng_jinsong 已提交
39 40 41
    deps = [
      "bootchart:bootchart",
      "reboot:rebootmodule",
C
cheng_jinsong 已提交
42
      "trace:inittrace",
C
chengjinsong2 已提交
43
      "udid:udidmodule",
C
cheng_jinsong 已提交
44
    ]
X
<feat>  
xiacong 已提交
45
    if (build_seccomp) {
X
<fix>  
xiacong 已提交
46
      deps += [ "seccomp:seccomp_filter" ]
X
<feat>  
xiacong 已提交
47
    }
C
cheng_jinsong 已提交
48 49 50
    if (build_selinux) {
      deps += [ "selinux:selinuxadp" ]
    }
C
cheng_jinsong 已提交
51
  }
X
xionglei6 已提交
52
}