1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
source_set("graphics") {
sources = [
"cast_vsync_settings.cc",
"cast_vsync_settings.h",
"cast_window_manager.h",
]
deps = [
"//base",
"//ui/gfx",
]
if (use_aura && !is_cast_audio_only) {
sources += [
"cast_focus_client_aura.cc",
"cast_focus_client_aura.h",
"cast_window_manager_aura.cc",
"cast_window_manager_aura.h",
]
deps += [
"//ui/base/ime",
"//ui/views",
"//ui/wm",
]
} else {
sources += [
"cast_window_manager_default.cc",
"cast_window_manager_default.h",
]
}
if (use_aura) {
sources += [
"cast_screen.cc",
"cast_screen.h",
]
deps += [
":libcast_graphics_1.0",
"//chromecast/public",
"//ui/aura",
"//ui/display",
"//ui/gfx/geometry",
]
}
}
shared_library("libcast_graphics_1.0") {
sources = [
"cast_egl_platform_default.cc",
"graphics_properties_default.cc",
"osd_plane_default.cc",
]
public_deps = [
"//chromecast/public",
]
deps = [
"//base",
"//chromecast/base:chromecast_switches",
"//chromecast/base:init_shlib",
]
}
if (use_aura && !is_cast_audio_only) {
test("cast_graphics_unittests") {
sources = [
"cast_focus_client_aura_test.cc",
"cast_views_test.cc",
"cast_window_manager_aura_test.cc",
"run_all_unittests.cc",
]
deps = [
":graphics",
"//base/test:test_support",
"//testing/gtest",
"//ui/aura",
"//ui/aura:test_support",
"//ui/base:test_support",
"//ui/events:test_support",
"//ui/gfx",
"//ui/gl:test_support",
"//ui/views",
]
}
}
|