• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2025 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
16ohos_shared_library("hiappevent") {
17  include_dirs = [ "include/" ]
18
19  sources = [
20    "./src/napi_error.cpp",
21    "./src/napi_hiappevent_builder.cpp",
22    "./src/napi_hiappevent_config.cpp",
23    "./src/napi_hiappevent_init.cpp",
24    "./src/napi_hiappevent_js.cpp",
25    "./src/napi_hiappevent_write.cpp",
26    "./src/napi_util.cpp",
27  ]
28
29  deps = [ "../../native/libhiappevent:libhiappevent_base" ]
30
31  external_deps = [
32    "c_utils:utils",
33    "hilog:libhilog",
34    "jsoncpp:jsoncpp",
35    "napi:ace_napi",
36  ]
37
38  relative_install_dir = "module"
39
40  part_name = "hiappevent"
41  subsystem_name = "hiviewdfx"
42}
43
44ohos_shared_library("hiappevent_v9") {
45  include_dirs = [ "include/" ]
46
47  sources = [
48    "./src/napi_app_event_holder.cpp",
49    "./src/napi_app_event_watcher.cpp",
50    "./src/napi_config_builder.cpp",
51    "./src/napi_env_watcher_manager.cpp",
52    "./src/napi_error.cpp",
53    "./src/napi_hiappevent_builder.cpp",
54    "./src/napi_hiappevent_config.cpp",
55    "./src/napi_hiappevent_init.cpp",
56    "./src/napi_hiappevent_js_v9.cpp",
57    "./src/napi_hiappevent_processor.cpp",
58    "./src/napi_hiappevent_userinfo.cpp",
59    "./src/napi_hiappevent_watch.cpp",
60    "./src/napi_hiappevent_write.cpp",
61    "./src/napi_param_builder.cpp",
62    "./src/napi_util.cpp",
63  ]
64
65  deps = [
66    "../../native/libhiappevent:libhiappevent_base",
67    "../../native/libhiappevent/utility:hiappevent_utility",
68  ]
69
70  external_deps = [
71    "c_utils:utils",
72    "ffrt:libffrt",
73    "hilog:libhilog",
74    "jsoncpp:jsoncpp",
75    "napi:ace_napi",
76    "relational_store:native_rdb",
77  ]
78
79  output_name = "hiappevent_napi"
80  relative_install_dir = "module/hiviewdfx"
81
82  part_name = "hiappevent"
83  subsystem_name = "hiviewdfx"
84}
85