• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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")
15import("//foundation/CastEngine/castengine_wifi_display/config.gni")
16
17config("sharing_service_config") {
18  include_dirs = [
19    "$SHARING_ROOT_DIR/services",
20    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd",
21    "$SHARING_ROOT_DIR/services/interaction/ipc_codec",
22    "$SHARING_ROOT_DIR/services/interaction/device_kit",
23    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include",
24    "$SHARING_ROOT_DIR/services/extend/magic_enum",
25  ]
26
27  cflags = [ "-Wno-c++20-extensions" ]
28}
29
30ohos_shared_library("sharingwfd_napi") {
31  install_enable = true
32
33  sanitize = {
34    cfi = true
35    cfi_cross_dso = true
36    debug = false
37  }
38
39  include_dirs = [
40    "$SHARING_ROOT_DIR",
41    "$SHARING_ROOT_DIR/services/utils",
42    "$SHARING_ROOT_DIR/interfaces/kits/js/wfd/include",
43    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include",
44    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd",
45    "//third_party/node/src",
46  ]
47
48  sources = [
49    "$SHARING_ROOT_DIR/frameworks/kitsimpl/js/wfd/native_module_ohos_wfd.cpp",
50    "$SHARING_ROOT_DIR/frameworks/kitsimpl/js/wfd/wfd_napi_sink.cpp",
51  ]
52
53  public_configs = [
54    ":sharing_service_config",
55    "$SHARING_ROOT_DIR/tests:coverage_flags",
56  ]
57
58  deps = [
59    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client",
60    "$SHARING_ROOT_DIR/services/interaction/device_kit:dmkit",
61    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
62  ]
63
64  external_deps = [
65    "ability_base:base",
66    "ability_base:want",
67    "ability_runtime:app_manager",
68    "bundle_framework:appexecfwk_base",
69    "bundle_framework:appexecfwk_core",
70    "c_utils:utils",
71    "device_manager:devicemanagersdk",
72    "graphic_standard:surface",
73    "hilog_native:libhilog",
74    "ipc:ipc_core",
75    "napi:ace_napi",
76  ]
77
78  subsystem_name = "castplus"
79  part_name = "sharing_framework"
80}
81