• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15
16config("seccomp_public_config") {
17  include_dirs = [ "//base/startup/init/interfaces/innerkits/seccomp/include" ]
18}
19
20if (defined(build_seccomp) && build_seccomp) {
21  ohos_shared_library("seccomp") {
22    sources =
23        [ "//base/startup/init/services/modules/seccomp/seccomp_policy.c" ]
24
25    public_configs = [ ":seccomp_public_config" ]
26
27    include_dirs = [
28      "//base/startup/init/interfaces/innerkits/include",
29      "//base/startup/init/services/modules",
30      "//base/startup/init/services/log",
31      "//third_party/bounds_checking_function/include",
32    ]
33
34    deps = [
35      "//base/startup/init/interfaces/innerkits:libbegetutil",
36      "//third_party/bounds_checking_function:libsec_shared",
37    ]
38
39    license_file = "//base/startup/init/LICENSE"
40
41    part_name = "init"
42    subsystem_name = "startup"
43
44    install_enable = true
45    install_images = [ "system" ]
46  }
47} else {
48  group("seccomp") {
49  }
50}
51