• 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/services/utils",
21    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain",
22    "//foundation/CastEngine/castengine_wifi_display/services/interaction/device_kit",
23    "//foundation/CastEngine/castengine_wifi_display/services/interaction/ipc_codec",
24    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc",
25    "$SHARING_ROOT_DIR/services/extend/magic_enum",
26    "$SHARING_ROOT_DIR/tests:coverage_flags",
27  ]
28
29  cflags = [ "-Wno-c++20-extensions" ]
30}
31
32ohos_source_set("sharing_interaction_srcs") {
33  configs = [ ":sharing_service_config" ]
34
35  sanitize = {
36    cfi = true
37    cfi_cross_dso = true
38    debug = false
39    boundary_sanitize = true
40    ubsan = true
41    integer_overflow = true
42  }
43
44  sources = [
45    "domain/domain_manager.cpp",
46    "domain/rpc/domain_rpc_client.cpp",
47    "domain/rpc/domain_rpc_manager.cpp",
48    "domain/rpc/domain_rpc_service.cpp",
49    "domain/rpc/domain_rpc_service_proxy.cpp",
50    "domain/rpc/domain_rpc_service_stub.cpp",
51    "interaction.cpp",
52    "interaction_manager.cpp",
53    "interprocess/inter_ipc_client.cpp",
54    "interprocess/inter_ipc_client_stub.cpp",
55    "interprocess/inter_ipc_proxy.cpp",
56    "interprocess/inter_ipc_service.cpp",
57    "interprocess/inter_ipc_service_stub.cpp",
58    "interprocess/inter_ipc_stub.cpp",
59    "interprocess/inter_ipc_sub_stub.cpp",
60    "interprocess/ipc_msg_adapter.cpp",
61    "scene/scene_format.cpp",
62  ]
63
64  deps = [
65    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
66    "device_kit:dmkit",
67    "domain:domain_manager",
68    "ipc_codec:ipc_codec_srcs",
69  ]
70
71  external_deps = [
72    "ability_base:base",
73    "ability_base:want",
74    "ability_runtime:ability_manager",
75    "access_token:libaccesstoken_sdk",
76    "access_token:libnativetoken",
77    "access_token:libtoken_setproc",
78    "device_manager:devicemanagersdk",
79    "graphic_surface:surface",
80    "hilog:libhilog",
81    "ipc:ipc_core",
82    "kv_store:distributeddata_inner",
83    "safwk:system_ability_fwk",
84    "samgr:samgr_proxy",
85    "wifi:wifi_sdk",
86  ]
87
88  subsystem_name = "castplus"
89  part_name = "sharing_framework"
90}
91