• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//build/ohos.gni")
15import("../../windowmanager_aafwk.gni")
16
17config("session_public_config") {
18  include_dirs = [
19    "${window_base_path}/window_scene",
20    "${window_base_path}/window_scene/intention_event/service/anr_manager/include",
21    "${window_base_path}/window_scene/intention_event/framework/anr_handler/include",
22    "${window_base_path}/window_scene/intention_event/utils/include",
23    "${window_base_path}/interfaces/innerkits/dm",
24
25    # for window_manager_hilog
26    "${window_base_path}/utils/include",
27    "${window_base_path}/window_scene/common/include",
28
29    # for WMError Code
30    "${window_base_path}/interfaces/innerkits/wm",
31
32    # for mouse style
33    "${multimodalinput_path}/input/util/common/include",
34  ]
35}
36
37ohos_shared_library("scene_session") {
38  sources = [
39    "container/src/window_event_channel.cpp",
40    "container/src/zidl/session_stage_proxy.cpp",
41    "container/src/zidl/session_stage_stub.cpp",
42    "container/src/zidl/window_event_channel_proxy.cpp",
43    "container/src/zidl/window_event_channel_stub.cpp",
44    "host/src/extension_session.cpp",
45    "host/src/move_drag_controller.cpp",
46    "host/src/root_scene_session.cpp",
47    "host/src/scene_persistence.cpp",
48    "host/src/scene_persistent_storage.cpp",
49    "host/src/scene_session.cpp",
50    "host/src/session.cpp",
51    "host/src/zidl/session_proxy.cpp",
52    "host/src/zidl/session_stub.cpp",
53  ]
54
55  public_configs = [ ":session_public_config" ]
56
57  deps = [
58    "${window_base_path}/utils:libwmutil",
59    "${window_base_path}/window_scene/common:window_scene_common",
60    "${window_base_path}/window_scene/intention_event/service:intention_event_anr_manager",
61    "${window_base_path}/window_scene/session_manager:screen_session_manager",
62  ]
63
64  public_deps =
65      [ "${window_base_path}/window_scene/interfaces/innerkits:libwsutils" ]
66
67  external_deps = [
68    "ability_base:session_info",
69    "ability_base:want",
70    "ability_runtime:ability_start_setting",
71    "c_utils:utils",
72    "graphic_2d:librender_service_client",
73    "hilog:libhilog",
74    "image_framework:image_native",
75    "input:libmmi-client",
76    "ipc:ipc_single",
77    "power_manager:powermgr_client",
78    "preferences:native_preferences",
79  ]
80
81  innerapi_tags = [ "platformsdk" ]
82  part_name = "window_manager"
83  subsystem_name = "window"
84}
85
86ohos_shared_library("screen_session") {
87  sources = [
88    "screen/src/screen_property.cpp",
89    "screen/src/screen_session.cpp",
90  ]
91
92  public_configs = [ ":session_public_config" ]
93
94  deps = [ "${window_base_path}/utils:libwmutil" ]
95
96  external_deps = [
97    "c_utils:utils",
98    "graphic_2d:librender_service_client",
99    "hilog:libhilog",
100    "init:libbegetutil",
101  ]
102
103  innerapi_tags = [ "platformsdk" ]
104  part_name = "window_manager"
105  subsystem_name = "window"
106}
107