• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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("//base/notification/distributed_notification_service/notification.gni")
15import("//build/ohos.gni")
16
17cflags = []
18
19config("notification_ndk_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    "${inner_api_path}",
24    "${notification_ndk_path}/include",
25  ]
26
27  if (target_cpu == "arm") {
28    cflags += [ "-DBINDER_IPC_32BIT" ]
29  }
30}
31
32config("notification_ndk_public_config") {
33  visibility = [ ":*" ]
34
35  include_dirs = [ "${notification_ndk_path}/include" ]
36}
37
38ohos_shared_library("ohnotification") {
39  sanitize = {
40    integer_overflow = true
41    ubsan = true
42    boundary_sanitize = true
43    cfi = true
44    cfi_cross_dso = true
45    debug = false
46  }
47  branch_protector_ret = "pac_ret"
48
49  configs = [ ":notification_ndk_config" ]
50
51  public_configs = [ ":notification_ndk_public_config" ]
52
53  sources = [ "src/notification.cpp" ]
54
55  deps = [ "${frameworks_module_ans_path}:ans_innerkits" ]
56
57  external_deps = [
58    "ability_base:base",
59    "ability_base:zuri",
60    "c_utils:utils",
61    "ffrt:libffrt",
62    "hilog:libhilog",
63    "ipc:ipc_single",
64  ]
65  output_extension = "so"
66  innerapi_tags = [ "ndk" ]
67  subsystem_name = "${subsystem_name}"
68  part_name = "${component_name}"
69}
70