• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/notification/ces_standard/event.gni")
15import("//build/ohos.gni")
16
17cflags = []
18
19config("native_module_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = []
23
24  if (target_cpu == "arm") {
25    cflags += [ "-DBINDER_IPC_32BIT" ]
26  }
27
28  defines = [
29    "EVENT_LOG_TAG = \"CES_STANDARD\"",
30    "LOG_DOMAIN = 0xD008800",
31  ]
32}
33
34ohos_shared_library("commonevent") {
35  include_dirs = [
36    "${interfaces_path}/kits/napi/common_event/include",
37    "//foundation/aafwk/standard/interfaces/kits/napi/aafwk/inner/napi_common",
38    "//third_party/node/src",
39    "//third_party/libuv/include",
40  ]
41
42  configs = [ ":native_module_config" ]
43
44  sources = [
45    "src/common_event.cpp",
46    "src/init.cpp",
47    "src/support.cpp",
48  ]
49
50  deps = [
51    "${ces_common_path}:libevent_common",
52    "${ces_native_path}:cesfwk_innerkits",
53    "//foundation/aafwk/standard/interfaces/kits/napi/aafwk/inner/napi_common:napi_common",
54    "//third_party/libuv:uv_static",
55    "//utils/native/base:utils",
56  ]
57
58  external_deps = [
59    "ability_base:base",
60    "ability_base:want",
61    "ability_runtime:ability_manager",
62    "ability_runtime:abilitykit_native",
63    "bundle_framework:appexecfwk_base",
64    "bundle_framework:appexecfwk_core",
65    "eventhandler:libeventhandler",
66    "hiviewdfx_hilog_native:libhilog",
67    "ipc:ipc_core",
68    "napi:ace_napi",
69    "permission_standard:libpermissionsdk_standard",
70    "samgr_standard:samgr_proxy",
71  ]
72
73  relative_install_dir = "module"
74  subsystem_name = "notification"
75  part_name = "ces_standard"
76}
77