1# Copyright (c) 2021-2024 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")
15
16hiappevent_native_path = "//base/hiviewdfx/hiappevent/frameworks/native"
17
18ohos_shared_library("hiappevent_ndk") {
19  include_dirs = [
20    "$hiappevent_native_path/libhiappevent/include",
21    "$hiappevent_native_path/ndk/include",
22    "//base/hiviewdfx/hiappevent/interfaces/native/kits/include",
23  ]
24
25  sources = [
26    "hiappevent_ndk.c",
27    "src/ndk_app_event_processor.cpp",
28    "src/ndk_app_event_processor_service.cpp",
29    "src/ndk_app_event_watcher.cpp",
30    "src/ndk_app_event_watcher_proxy.cpp",
31    "src/ndk_app_event_watcher_service.cpp",
32  ]
33
34  deps = [ "$hiappevent_native_path/libhiappevent:libhiappevent_base" ]
35
36  external_deps = [
37    "ffrt:libffrt",
38    "hilog:libhilog",
39    "relational_store:native_rdb",
40  ]
41
42  part_name = "hiappevent"
43  subsystem_name = "hiviewdfx"
44}
45