• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Unionman Technology 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")
15import("//build/ohos/ndk/ndk.gni")
16
17SUBSYSTEM_DIR = "//foundation/communication/ipc"
18IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native"
19BUND = true
20
21ohos_prebuilt_etc("Applist.json") {
22  source = "Applist.json"
23  part_name = "product_unionpi_tiger"
24}
25
26ohos_prebuilt_executable("get_faultlog.sh") {
27  source = "get_faultlog.sh"
28  module_install_dir = "bin"
29  part_name = "product_unionpi_tiger"
30  install_enable = true
31}
32
33ohos_executable("ipc_shell_server") {
34  include_dirs = [
35    "$IPC_CORE_ROOT/c/adapter/access_token/include",
36    "//utils/system/safwk/native/include",
37    "//third_party/zlib",
38  ]
39  if (BUND) {
40    sources = [ "ipc_server_disable_verity.cpp" ]
41  } else {
42    sources = [ "ipc_server.cpp" ]
43  }
44  external_deps = [
45    "c_utils:utils",
46    "hiviewdfx_hilog_native:libhilog",
47    "ipc:ipc_core",
48    "ipc:ipc_single",
49    "samgr:samgr_proxy",
50  ]
51  deps = [
52    "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
53    "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
54    "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base:appexecfwk_base",
55    "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core:appexecfwk_core",
56    "//third_party/bounds_checking_function:libsec_static",
57    "//third_party/cJSON:cjson",
58  ]
59  part_name = "product_unionpi_tiger"
60}
61group("ipc_shell") {
62  deps = [
63    ":Applist.json",
64    ":get_faultlog.sh",
65    ":ipc_shell_server",
66  ]
67}
68