move snapshot virtual screen to demo

Signed-off-by: realice <hanbing12@huawei.com>
Change-Id: Ic7b37676fea953e4de2b725042c7946dfbfe5cbb
This commit is contained in:
realice 2022-08-17 18:20:32 +08:00
parent 6d3db88be3
commit 9073c8451a
3 changed files with 24 additions and 23 deletions

View File

@ -42,24 +42,6 @@ ohos_executable("snapshot_display") {
subsystem_name = "window"
}
ohos_executable("snapshot_virtual_screen") {
install_enable = false
sources = [ "src/snapshot_virtual_screen.cpp" ]
configs = [
":snapshot_config",
"//foundation/window/window_manager/resources/config/build:coverage_flags",
]
deps = [
":libsnapshot_util",
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
]
part_name = "window_manager"
subsystem_name = "window"
}
ohos_shared_library("libsnapshot_util") {
sources = [ "src/snapshot_utils.cpp" ]

View File

@ -19,11 +19,11 @@ group("demo") {
deps = [
":demo_mirror_screen_listener",
":demo_screenshot_listener",
":demo_snapshot_virtual_screen",
]
}
ohos_executable("demo_mirror_screen_listener") {
install_enable = true
sources = [ "demo_mirror_screen_listener.cpp" ]
include_dirs =
@ -41,7 +41,6 @@ ohos_executable("demo_mirror_screen_listener") {
}
ohos_executable("demo_screenshot_listener") {
install_enable = true
sources = [ "demo_screenshot_listener.cpp" ]
include_dirs =
@ -61,3 +60,23 @@ ohos_executable("demo_screenshot_listener") {
part_name = "window_manager"
subsystem_name = "window"
}
ohos_executable("demo_snapshot_virtual_screen") {
sources = [ "demo_snapshot_virtual_screen.cpp" ]
include_dirs = [
"//foundation/window/window_manager/interfaces/innerkits/dm",
"//foundation/window/window_manager/snapshot/include",
"//foundation/window/window_manager/utils/include",
]
deps = [
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
"//foundation/window/window_manager/dm:libdm",
"//foundation/window/window_manager/snapshot:libsnapshot_util",
"//foundation/window/window_manager/utils:libwmutil",
]
part_name = "window_manager"
subsystem_name = "window"
}

View File

@ -13,12 +13,12 @@
* limitations under the License.
*/
#include <string>
#include <unistd.h>
#include <ctime>
#include <iostream>
#include <string>
#include "snapshot_utils.h"
#include "screen_manager.h"
#include "snapshot_utils.h"
#include "surface_reader.h"
#include "surface_reader_handler_impl.h"