1100ae2f9Sopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2100ae2f9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3100ae2f9Sopenharmony_ci# you may not use this file except in compliance with the License.
4100ae2f9Sopenharmony_ci# You may obtain a copy of the License at
5100ae2f9Sopenharmony_ci#
6100ae2f9Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7100ae2f9Sopenharmony_ci#
8100ae2f9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9100ae2f9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10100ae2f9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11100ae2f9Sopenharmony_ci# See the License for the specific language governing permissions and
12100ae2f9Sopenharmony_ci# limitations under the License.
13100ae2f9Sopenharmony_ci
14100ae2f9Sopenharmony_ciimport("//build/ohos.gni")
15100ae2f9Sopenharmony_ciimport("../../eventhandler.gni")
16100ae2f9Sopenharmony_ci
17100ae2f9Sopenharmony_ciohos_shared_library("eventhandler_native") {
18100ae2f9Sopenharmony_ci  sanitize = {
19100ae2f9Sopenharmony_ci    integer_overflow = true
20100ae2f9Sopenharmony_ci    ubsan = true
21100ae2f9Sopenharmony_ci    boundary_sanitize = true
22100ae2f9Sopenharmony_ci    cfi = true
23100ae2f9Sopenharmony_ci    cfi_cross_dso = true
24100ae2f9Sopenharmony_ci    debug = false
25100ae2f9Sopenharmony_ci  }
26100ae2f9Sopenharmony_ci  branch_protector_ret = "pac_ret"
27100ae2f9Sopenharmony_ci
28100ae2f9Sopenharmony_ci  sources = [ "src/native_interface_eventhandler.cpp" ]
29100ae2f9Sopenharmony_ci
30100ae2f9Sopenharmony_ci  include_dirs = [ "${kits_path}/native" ]
31100ae2f9Sopenharmony_ci
32100ae2f9Sopenharmony_ci  cflags = [ "-Wno-error=inconsistent-missing-override" ]
33100ae2f9Sopenharmony_ci
34100ae2f9Sopenharmony_ci  deps = [ "${frameworks_path}/eventhandler:libeventhandler" ]
35100ae2f9Sopenharmony_ci
36100ae2f9Sopenharmony_ci  external_deps = [
37100ae2f9Sopenharmony_ci    "c_utils:utils",
38100ae2f9Sopenharmony_ci    "hilog:libhilog",
39100ae2f9Sopenharmony_ci  ]
40100ae2f9Sopenharmony_ci
41100ae2f9Sopenharmony_ci  subsystem_name = "notification"
42100ae2f9Sopenharmony_ci  part_name = "eventhandler"
43100ae2f9Sopenharmony_ci}
44