1e0e9324cSopenharmony_ci# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development Co., Ltd.
2e0e9324cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e0e9324cSopenharmony_ci# you may not use this file except in compliance with the License.
4e0e9324cSopenharmony_ci# You may obtain a copy of the License at
5e0e9324cSopenharmony_ci#
6e0e9324cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e0e9324cSopenharmony_ci#
8e0e9324cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e0e9324cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e0e9324cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e0e9324cSopenharmony_ci# See the License for the specific language governing permissions and
12e0e9324cSopenharmony_ci# limitations under the License.
13e0e9324cSopenharmony_ci
14e0e9324cSopenharmony_ciimport("//build/ohos.gni")
15e0e9324cSopenharmony_ciimport("//foundation/CastEngine/castengine_wifi_display/config.gni")
16e0e9324cSopenharmony_ci
17e0e9324cSopenharmony_ciconfig("sharing_service_config") {
18e0e9324cSopenharmony_ci  include_dirs = [
19e0e9324cSopenharmony_ci    "$SHARING_ROOT_DIR/services",
20e0e9324cSopenharmony_ci    "$SHARING_ROOT_DIR/services/utils",
21e0e9324cSopenharmony_ci    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
22e0e9324cSopenharmony_ci    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain",
23e0e9324cSopenharmony_ci    "//foundation/CastEngine/castengine_wifi_display/services/interaction/device_kit",
24e0e9324cSopenharmony_ci    "//foundation/CastEngine/castengine_wifi_display/services/interaction/ipc_codec",
25e0e9324cSopenharmony_ci    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc",
26e0e9324cSopenharmony_ci    "//foundation/communication/wifi/wifi/frameworks/native/include",
27e0e9324cSopenharmony_ci    "//foundation/communication/wifi/wifi/frameworks/native/interfaces",
28e0e9324cSopenharmony_ci    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include/",
29e0e9324cSopenharmony_ci    "//foundation/communication/ipc/ipc/native/c/ipc/include",
30e0e9324cSopenharmony_ci    "$SHARING_ROOT_DIR/services/extend/magic_enum",
31e0e9324cSopenharmony_ci    "//foundation/systemabilitymgr/safwk/services/safwk/include",
32e0e9324cSopenharmony_ci    "//utils/native/base/include",
33e0e9324cSopenharmony_ci    "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include",
34e0e9324cSopenharmony_ci    "//third_party/json/include",
35e0e9324cSopenharmony_ci    "//foundation/ability/ability_runtime/interfaces/inner_api",
36e0e9324cSopenharmony_ci    "//foundation/ability/ability_runtime/interfaces/kits/native",
37e0e9324cSopenharmony_ci    "$SHARING_ROOT_DIR/tests:coverage_flags",
38e0e9324cSopenharmony_ci  ]
39e0e9324cSopenharmony_ci
40e0e9324cSopenharmony_ci  cflags = [ "-Wno-c++20-extensions" ]
41e0e9324cSopenharmony_ci}
42e0e9324cSopenharmony_ci
43e0e9324cSopenharmony_ciohos_source_set("sharing_interaction_srcs") {
44e0e9324cSopenharmony_ci  configs = [ ":sharing_service_config" ]
45e0e9324cSopenharmony_ci
46e0e9324cSopenharmony_ci  sanitize = {
47e0e9324cSopenharmony_ci    cfi = true
48e0e9324cSopenharmony_ci    cfi_cross_dso = true
49e0e9324cSopenharmony_ci    debug = false
50e0e9324cSopenharmony_ci  }
51e0e9324cSopenharmony_ci
52e0e9324cSopenharmony_ci  sources = [
53e0e9324cSopenharmony_ci    "domain/domain_manager.cpp",
54e0e9324cSopenharmony_ci    "domain/rpc/domain_rpc_client.cpp",
55e0e9324cSopenharmony_ci    "domain/rpc/domain_rpc_manager.cpp",
56e0e9324cSopenharmony_ci    "domain/rpc/domain_rpc_service.cpp",
57e0e9324cSopenharmony_ci    "domain/rpc/domain_rpc_service_proxy.cpp",
58e0e9324cSopenharmony_ci    "domain/rpc/domain_rpc_service_stub.cpp",
59e0e9324cSopenharmony_ci    "interaction.cpp",
60e0e9324cSopenharmony_ci    "interaction_manager.cpp",
61e0e9324cSopenharmony_ci    "interprocess/inter_ipc_client.cpp",
62e0e9324cSopenharmony_ci    "interprocess/inter_ipc_client_stub.cpp",
63e0e9324cSopenharmony_ci    "interprocess/inter_ipc_proxy.cpp",
64e0e9324cSopenharmony_ci    "interprocess/inter_ipc_service.cpp",
65e0e9324cSopenharmony_ci    "interprocess/inter_ipc_service_stub.cpp",
66e0e9324cSopenharmony_ci    "interprocess/inter_ipc_stub.cpp",
67e0e9324cSopenharmony_ci    "interprocess/inter_ipc_sub_stub.cpp",
68e0e9324cSopenharmony_ci    "interprocess/ipc_msg_adapter.cpp",
69e0e9324cSopenharmony_ci    "scene/scene_format.cpp",
70e0e9324cSopenharmony_ci  ]
71e0e9324cSopenharmony_ci
72e0e9324cSopenharmony_ci  deps = [
73e0e9324cSopenharmony_ci    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
74e0e9324cSopenharmony_ci    "device_kit:dmkit",
75e0e9324cSopenharmony_ci    "domain:domain_manager",
76e0e9324cSopenharmony_ci    "ipc_codec:ipc_codec_srcs",
77e0e9324cSopenharmony_ci  ]
78e0e9324cSopenharmony_ci
79e0e9324cSopenharmony_ci  external_deps = [
80e0e9324cSopenharmony_ci    "ability_base:base",
81e0e9324cSopenharmony_ci    "ability_base:want",
82e0e9324cSopenharmony_ci    "ability_runtime:ability_manager",
83e0e9324cSopenharmony_ci    "access_token:libaccesstoken_sdk",
84e0e9324cSopenharmony_ci    "access_token:libnativetoken",
85e0e9324cSopenharmony_ci    "access_token:libtoken_setproc",
86e0e9324cSopenharmony_ci    "device_manager:devicemanagersdk",
87e0e9324cSopenharmony_ci    "graphic_surface:surface",
88e0e9324cSopenharmony_ci    "hilog:libhilog",
89e0e9324cSopenharmony_ci    "kv_store:distributeddata_inner",
90e0e9324cSopenharmony_ci    "wifi:wifi_sdk",
91e0e9324cSopenharmony_ci  ]
92e0e9324cSopenharmony_ci
93e0e9324cSopenharmony_ci  subsystem_name = "castplus"
94e0e9324cSopenharmony_ci  part_name = "sharing_framework"
95e0e9324cSopenharmony_ci}
96