• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2022 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16import("//build/ohos.gni")
17import("//foundation/ability/ability_runtime/ability_runtime.gni")
18
19group("ams_common_target") {
20  deps = [
21    ":event_report",
22    ":perm_verification",
23  ]
24}
25
26config("common_config") {
27  visibility = [ ":*" ]
28  include_dirs = [
29    "include",
30    "${ability_runtime_innerkits_path}/ability_manager/include",
31  ]
32  cflags = []
33  if (target_cpu == "arm") {
34    cflags += [ "-DBINDER_IPC_32BIT" ]
35  }
36}
37
38#build so
39ohos_shared_library("perm_verification") {
40  public_configs = [ ":common_config" ]
41
42  sources = [ "src/permission_verification.cpp" ]
43
44  external_deps = [
45    "ability_base:want",
46    "access_token:libaccesstoken_sdk",
47    "c_utils:utils",
48    "hiviewdfx_hilog_native:libhilog",
49    "ipc:ipc_core",
50  ]
51
52  subsystem_name = "ability"
53  part_name = "ability_runtime"
54}
55
56ohos_shared_library("event_report") {
57  public_configs = [ ":common_config" ]
58
59  sources = [ "src/event_report.cpp" ]
60
61  external_deps = [
62    "hisysevent_native:libhisysevent",
63    "hiviewdfx_hilog_native:libhilog",
64  ]
65
66  subsystem_name = "ability"
67  part_name = "ability_runtime"
68}
69