1# Copyright (c) 2022-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
16config("hiappevent_watcher_config") {
17  visibility = [ "*:*" ]
18  include_dirs = [
19    "include",
20    "../include",
21    "../load/include",
22    "../../../../interfaces/native/inner_api/include",
23  ]
24}
25
26ohos_source_set("hiappevent_observer") {
27  public_configs = [ ":hiappevent_watcher_config" ]
28
29  sources = [
30    "app_event_handler.cpp",
31    "app_event_observer.cpp",
32    "app_event_observer_mgr.cpp",
33    "app_event_processor_proxy.cpp",
34    "app_event_watcher.cpp",
35    "app_state_callback.cpp",
36    "os_event_listener.cpp",
37  ]
38
39  deps = [
40    "../cache:hiappevent_cache",
41    "../utility:hiappevent_utility",
42  ]
43
44  external_deps = [
45    "ability_runtime:app_context",
46    "bundle_framework:appexecfwk_base",
47    "bundle_framework:appexecfwk_core",
48    "c_utils:utils",
49    "eventhandler:libeventhandler",
50    "ffrt:libffrt",
51    "hilog:libhilog",
52    "init:libbegetutil",
53    "jsoncpp:jsoncpp",
54    "relational_store:native_rdb",
55    "storage_service:storage_manager_acl",
56  ]
57
58  part_name = "hiappevent"
59  subsystem_name = "hiviewdfx"
60}
61