• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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")
15import("//developtools/profiler/device/base/config.gni")
16
17ohos_executable("transitto") {
18  sources = [ "transitto.cpp" ]
19
20  include_dirs = [ "//third_party/json/include" ]
21  defines = []
22  cflags_cc = [ "-std=c++20" ]
23
24  external_deps = [
25    "ability_base:want",
26    "bundle_framework:appexecfwk_base",
27    "bundle_framework:appexecfwk_core",
28    "c_utils:utils",
29    "common_event_service:cesfwk_innerkits",
30    "hiviewdfx_hilog_native:libhilog",
31    "ipc:ipc_core",
32    "safwk:system_ability_fwk",
33    "samgr:samgr_proxy",
34  ]
35
36  deps = []
37
38  if (build_selinux) {
39    include_dirs += [ "//third_party/selinux/libselinux/include" ]
40    deps += [ "//third_party/selinux:libselinux" ]
41    defines += [ "SUPPORT_SELINUX_TRANSITTO" ]
42    external_deps += [
43      "selinux:libload_policy",
44      "selinux:librestorecon",
45    ]
46  }
47
48  install_images = [ "system" ]
49
50  install_enable = true
51  subsystem_name = "developtools"
52  part_name = "profiler"
53}
54
55ohos_executable("transitto_test") {
56  sources = [ "transitto_test.cpp" ]
57
58  include_dirs = []
59  defines = []
60  cflags_cc = [ "-std=c++20" ]
61
62  external_deps = [ "c_utils:utils" ]
63
64  deps = []
65
66  subsystem_name = "developtools"
67  part_name = "profiler"
68}
69
70group("transitto_tool") {
71  deps = [ ":transitto" ]
72}
73
74group("transitto_tool_test") {
75  deps = [ ":transitto_test" ]
76}
77