Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: ui/ozone/BUILD.gn

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce OzoneClient Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//ui/ozone/ozone.gni") 5 import("//ui/ozone/ozone.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 # The list of platforms that will be built. 8 # The list of platforms that will be built.
9 ozone_platforms = [] 9 ozone_platforms = []
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 if (ozone_platform_gbm) { 41 if (ozone_platform_gbm) {
42 ozone_platforms += [ "gbm" ] 42 ozone_platforms += [ "gbm" ]
43 ozone_platform_deps += [ "platform/drm:gbm" ] 43 ozone_platform_deps += [ "platform/drm:gbm" ]
44 } 44 }
45 45
46 platform_list_cc_file = "$target_gen_dir/platform_list.cc" 46 platform_list_cc_file = "$target_gen_dir/platform_list.cc"
47 platform_list_h_file = "$target_gen_dir/platform_list.h" 47 platform_list_h_file = "$target_gen_dir/platform_list.h"
48 platform_list_txt_file = "$target_gen_dir/platform_list.txt" 48 platform_list_txt_file = "$target_gen_dir/platform_list.txt"
49 constructor_list_cc_file = "$target_gen_dir/constructor_list.cc" 49 constructor_list_cc_file = "$target_gen_dir/constructor_list.cc"
50 constructor_client_list_cc_file = "$target_gen_dir/constructor_client_list.cc"
50 51
51 # GYP version: ui/ozone/ozone.gyp:ozone_base 52 # GYP version: ui/ozone/ozone.gyp:ozone_base
52 component("ozone_base") { 53 component("ozone_base") {
53 sources = [ 54 sources = [
54 "public/cursor_factory_ozone.cc", 55 "public/cursor_factory_ozone.cc",
55 "public/cursor_factory_ozone.h", 56 "public/cursor_factory_ozone.h",
56 "public/gpu_platform_support.cc", 57 "public/gpu_platform_support.cc",
57 "public/gpu_platform_support.h", 58 "public/gpu_platform_support.h",
58 "public/gpu_platform_support_host.cc", 59 "public/gpu_platform_support_host.cc",
59 "public/gpu_platform_support_host.h", 60 "public/gpu_platform_support_host.h",
60 "public/overlay_candidates_ozone.cc", 61 "public/overlay_candidates_ozone.cc",
61 "public/overlay_candidates_ozone.h", 62 "public/overlay_candidates_ozone.h",
63 "public/surface_client_factory_ozone.cc",
64 "public/surface_client_factory_ozone.h",
62 "public/surface_factory_ozone.cc", 65 "public/surface_factory_ozone.cc",
63 "public/surface_factory_ozone.h", 66 "public/surface_factory_ozone.h",
64 "public/surface_ozone_canvas.h", 67 "public/surface_ozone_canvas.h",
65 "public/surface_ozone_egl.cc", 68 "public/surface_ozone_egl.cc",
66 "public/surface_ozone_egl.h", 69 "public/surface_ozone_egl.h",
67 "public/system_input_injector.h", 70 "public/system_input_injector.h",
68 ] 71 ]
69 72
70 defines = [ "OZONE_BASE_IMPLEMENTATION" ] 73 defines = [ "OZONE_BASE_IMPLEMENTATION" ]
71 74
(...skipping 18 matching lines...) Expand all
90 "common/gpu/ozone_gpu_message_generator.h", 93 "common/gpu/ozone_gpu_message_generator.h",
91 "common/gpu/ozone_gpu_message_params.cc", 94 "common/gpu/ozone_gpu_message_params.cc",
92 "common/gpu/ozone_gpu_message_params.h", 95 "common/gpu/ozone_gpu_message_params.h",
93 "common/gpu/ozone_gpu_messages.h", 96 "common/gpu/ozone_gpu_messages.h",
94 "common/native_display_delegate_ozone.cc", 97 "common/native_display_delegate_ozone.cc",
95 "common/native_display_delegate_ozone.h", 98 "common/native_display_delegate_ozone.h",
96 "platform_selection.cc", 99 "platform_selection.cc",
97 "platform_selection.h", 100 "platform_selection.h",
98 "public/input_controller.cc", 101 "public/input_controller.cc",
99 "public/input_controller.h", 102 "public/input_controller.h",
103 "public/ozone_client.cc",
104 "public/ozone_client.h",
100 "public/ozone_gpu_test_helper.cc", 105 "public/ozone_gpu_test_helper.cc",
101 "public/ozone_gpu_test_helper.h", 106 "public/ozone_gpu_test_helper.h",
102 "public/ozone_platform.cc", 107 "public/ozone_platform.cc",
103 "public/ozone_platform.h", 108 "public/ozone_platform.h",
104 "public/ozone_switches.cc", 109 "public/ozone_switches.cc",
105 "public/ozone_switches.h", 110 "public/ozone_switches.h",
111 constructor_client_list_cc_file,
106 constructor_list_cc_file, 112 constructor_list_cc_file,
107 platform_list_cc_file, 113 platform_list_cc_file,
108 platform_list_h_file, 114 platform_list_h_file,
109 ] 115 ]
110 116
111 defines = [ "OZONE_IMPLEMENTATION" ] 117 defines = [ "OZONE_IMPLEMENTATION" ]
112 118
113 deps = 119 deps =
114 [ 120 [
115 ":generate_constructor_list", 121 ":generate_constructor_list",
122 ":generate_constructor_client_list",
116 ":generate_ozone_platform_list", 123 ":generate_ozone_platform_list",
117 ":ozone_base", 124 ":ozone_base",
118 "//base", 125 "//base",
119 "//ipc", 126 "//ipc",
120 "//skia", 127 "//skia",
121 "//ui/display/types", 128 "//ui/display/types",
122 "//ui/display/util", 129 "//ui/display/util",
123 "//ui/events", 130 "//ui/events",
124 "//ui/events/ozone:events_ozone", 131 "//ui/events/ozone:events_ozone",
125 "//ui/gfx", 132 "//ui/gfx",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 "--namespace=ui", 173 "--namespace=ui",
167 "--typename=OzonePlatform", 174 "--typename=OzonePlatform",
168 "--include=\"ui/ozone/public/ozone_platform.h\"", 175 "--include=\"ui/ozone/public/ozone_platform.h\"",
169 ] 176 ]
170 177
171 deps = [ 178 deps = [
172 ":generate_ozone_platform_list", 179 ":generate_ozone_platform_list",
173 ] 180 ]
174 } 181 }
175 182
183 action("generate_constructor_client_list") {
184 script = "generate_constructor_list.py"
185
186 inputs = [
187 platform_list_txt_file,
188 ]
189 outputs = [
190 constructor_client_list_cc_file,
191 ]
192
193 args = [
194 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
195 "--output_cc=" +
196 rebase_path(constructor_client_list_cc_file, root_build_dir),
197 "--namespace=ui",
198 "--typename=OzoneClient",
199 "--include=\"ui/ozone/public/ozone_client.h\"",
200 ]
201
202 deps = [
203 ":generate_ozone_platform_list",
204 ]
205 }
206
176 test("ozone_unittests") { 207 test("ozone_unittests") {
177 sources = [ 208 sources = [
178 "run_all_unittests.cc", 209 "run_all_unittests.cc",
179 ] 210 ]
180 211
181 deps = [ 212 deps = [
182 "//base/test:test_support", 213 "//base/test:test_support",
183 "//testing/gtest", 214 "//testing/gtest",
184 "//ui/gfx/geometry", 215 "//ui/gfx/geometry",
185 ] + ozone_platform_test_deps 216 ] + ozone_platform_test_deps
186 } 217 }
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | ui/ozone/ozone.gyp » ('j') | ui/ozone/ozone.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698