• 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/hiviewdfx/hiappevent/hiappevent_aafwk.gni")
15import("//build/ohos.gni")
16
17config("libhiappevent_source_config") {
18  visibility = [ "*:*" ]
19  include_dirs = [
20    "include",
21    "//base/hiviewdfx/hiappevent/interfaces/native/kits/include",
22    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
23  ]
24}
25
26ohos_shared_library("libhiappevent_base") {
27  public_configs = [
28    ":libhiappevent_source_config",
29    "cache:hiappevent_cache_config",
30    "watcher:hiappevent_watcher_config",
31  ]
32
33  sources = [
34    "hiappevent_base.cpp",
35    "hiappevent_c.cpp",
36    "hiappevent_clean.cpp",
37    "hiappevent_config.cpp",
38    "hiappevent_read.cpp",
39    "hiappevent_verify.cpp",
40    "hiappevent_write.cpp",
41  ]
42
43  deps = [
44    "${ability_runtime_path}/frameworks/native/appkit:app_context",
45    "cache:hiappevent_cache",
46    "cleaner:hiappevent_cleaner",
47    "utility:hiappevent_utility",
48    "watcher:hiappevent_watcher",
49  ]
50
51  version_script = "libhiappevent_base.map"
52
53  external_deps = [
54    "bundle_framework:appexecfwk_base",
55    "bundle_framework:appexecfwk_core",
56    "hilog_native:libhilog",
57    "hitrace_native:libhitracechain",
58    "relational_store:native_rdb",
59  ]
60
61  part_name = "hiappevent_native"
62  subsystem_name = "hiviewdfx"
63}
64