1# Copyright (c) 2021-2022 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") 15 16group("demo") { 17 testonly = true 18 19 deps = [ 20 ":demo_freeze_display", 21 ":demo_mirror_screen_listener", 22 ":demo_screenshot_listener", 23 ":demo_snapshot_virtual_screen", 24 ":demo_system_sub_window", 25 ] 26} 27 28ohos_executable("demo_mirror_screen_listener") { 29 sources = [ "demo_mirror_screen_listener.cpp" ] 30 31 include_dirs = 32 [ "//foundation/window/window_manager/test/common/utils/include" ] 33 34 deps = [ 35 "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base", 36 "//foundation/window/window_manager/dm:libdm", 37 ] 38 39 external_deps = [ "c_utils:utils" ] 40 41 part_name = "window_manager" 42 subsystem_name = "window" 43} 44 45ohos_executable("demo_screenshot_listener") { 46 sources = [ "demo_screenshot_listener.cpp" ] 47 48 include_dirs = 49 [ "//foundation/window/window_manager/test/common/utils/include" ] 50 51 deps = [ 52 "//foundation/window/window_manager/dm:libdm", 53 "//foundation/window/window_manager/utils:libwmutil", 54 ] 55 56 external_deps = [ 57 "c_utils:utils", 58 "hilog_native:libhilog", 59 "multimedia_image_framework:image_native", 60 ] 61 62 part_name = "window_manager" 63 subsystem_name = "window" 64} 65 66ohos_executable("demo_snapshot_virtual_screen") { 67 sources = [ "demo_snapshot_virtual_screen.cpp" ] 68 69 include_dirs = [ 70 "//foundation/window/window_manager/interfaces/innerkits/dm", 71 "//foundation/window/window_manager/snapshot/include", 72 "//foundation/window/window_manager/utils/include", 73 ] 74 75 deps = [ 76 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 77 "//foundation/window/window_manager/dm:libdm", 78 "//foundation/window/window_manager/snapshot:libsnapshot_util", 79 "//foundation/window/window_manager/utils:libwmutil", 80 ] 81 82 part_name = "window_manager" 83 subsystem_name = "window" 84} 85 86ohos_executable("demo_system_sub_window") { 87 sources = [ "demo_system_sub_window.cpp" ] 88 89 include_dirs = [ 90 "//foundation/window/window_manager/interfaces/innerkits/wm", 91 "//foundation/window/window_manager/test/common/utils/include", 92 ] 93 94 deps = [ 95 "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base", 96 "//foundation/window/window_manager/wm:libwm", 97 ] 98 99 external_deps = [ "c_utils:utils" ] 100 101 part_name = "window_manager" 102 subsystem_name = "window" 103} 104 105ohos_executable("demo_freeze_display") { 106 sources = [ "demo_freeze_display.cpp" ] 107 108 include_dirs = [ 109 "//foundation/window/window_manager/interfaces/innerkits/dm", 110 111 # pixel_map.h 112 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 113 ] 114 deps = [ "//foundation/window/window_manager/dm:libdm" ] 115 external_deps = [ "multimedia_image_framework:image_native" ] 116 part_name = "window_manager" 117 subsystem_name = "window" 118} 119