• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-2021 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("//base/startup/appspawn/appspawn.gni")
15import("//build/ohos.gni")
16
17ohos_prebuilt_etc("appdata-sandbox.json") {
18  if (target_cpu == "arm64") {
19    source = "//base/startup/appspawn/appdata-sandbox64.json"
20  } else {
21    source = "//base/startup/appspawn/appdata-sandbox.json"
22  }
23
24  subsystem_name = "${subsystem_name}"
25  part_name = "${part_name}"
26  module_install_dir = "etc/sandbox"
27}
28
29ohos_prebuilt_etc("product-sandbox.json") {
30  source = "//base/startup/appspawn/product-sandbox.json"
31  part_name = "${part_name}"
32  module_install_dir = "etc/sandbox"
33}
34
35ohos_prebuilt_etc("sandbox-config.json") {
36  source = "//base/startup/appspawn/sandbox-config.json"
37  part_name = "${part_name}"
38  module_install_dir = "etc/sandbox"
39}
40
41group("etc_files") {
42  deps = [
43    ":appdata-sandbox.json",
44    ":product-sandbox.json",
45    ":sandbox-config.json",
46  ]
47}
48