| Index: ui/ozone/BUILD.gn
|
| diff --git a/ui/ozone/BUILD.gn b/ui/ozone/BUILD.gn
|
| index 5ceb65b037ed53f62e9c7aabb82256c7246873eb..0d6b889e4c1a3d2b4c4dac896694388787bef428 100644
|
| --- a/ui/ozone/BUILD.gn
|
| +++ b/ui/ozone/BUILD.gn
|
| @@ -47,6 +47,7 @@ platform_list_cc_file = "$target_gen_dir/platform_list.cc"
|
| platform_list_h_file = "$target_gen_dir/platform_list.h"
|
| platform_list_txt_file = "$target_gen_dir/platform_list.txt"
|
| constructor_list_cc_file = "$target_gen_dir/constructor_list.cc"
|
| +constructor_client_list_cc_file = "$target_gen_dir/constructor_client_list.cc"
|
|
|
| # GYP version: ui/ozone/ozone.gyp:ozone_base
|
| component("ozone_base") {
|
| @@ -59,6 +60,8 @@ component("ozone_base") {
|
| "public/gpu_platform_support_host.h",
|
| "public/overlay_candidates_ozone.cc",
|
| "public/overlay_candidates_ozone.h",
|
| + "public/surface_client_factory_ozone.cc",
|
| + "public/surface_client_factory_ozone.h",
|
| "public/surface_factory_ozone.cc",
|
| "public/surface_factory_ozone.h",
|
| "public/surface_ozone_canvas.h",
|
| @@ -97,12 +100,15 @@ component("ozone") {
|
| "platform_selection.h",
|
| "public/input_controller.cc",
|
| "public/input_controller.h",
|
| + "public/ozone_client.cc",
|
| + "public/ozone_client.h",
|
| "public/ozone_gpu_test_helper.cc",
|
| "public/ozone_gpu_test_helper.h",
|
| "public/ozone_platform.cc",
|
| "public/ozone_platform.h",
|
| "public/ozone_switches.cc",
|
| "public/ozone_switches.h",
|
| + constructor_client_list_cc_file,
|
| constructor_list_cc_file,
|
| platform_list_cc_file,
|
| platform_list_h_file,
|
| @@ -113,6 +119,7 @@ component("ozone") {
|
| deps =
|
| [
|
| ":generate_constructor_list",
|
| + ":generate_constructor_client_list",
|
| ":generate_ozone_platform_list",
|
| ":ozone_base",
|
| "//base",
|
| @@ -173,6 +180,30 @@ action("generate_constructor_list") {
|
| ]
|
| }
|
|
|
| +action("generate_constructor_client_list") {
|
| + script = "generate_constructor_list.py"
|
| +
|
| + inputs = [
|
| + platform_list_txt_file,
|
| + ]
|
| + outputs = [
|
| + constructor_client_list_cc_file,
|
| + ]
|
| +
|
| + args = [
|
| + "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
|
| + "--output_cc=" +
|
| + rebase_path(constructor_client_list_cc_file, root_build_dir),
|
| + "--namespace=ui",
|
| + "--typename=OzoneClient",
|
| + "--include=\"ui/ozone/public/ozone_client.h\"",
|
| + ]
|
| +
|
| + deps = [
|
| + ":generate_ozone_platform_list",
|
| + ]
|
| +}
|
| +
|
| test("ozone_unittests") {
|
| sources = [
|
| "run_all_unittests.cc",
|
|
|