| OLD | NEW |
| 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 | 6 |
| 7 # The list of platforms that will be built. | 7 # The list of platforms that will be built. |
| 8 ozone_platforms = [] | 8 ozone_platforms = [] |
| 9 | 9 |
| 10 # Extra dependencies to pull into ui/ozone for built platforms. | 10 # Extra dependencies to pull into ui/ozone for built platforms. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 "//skia", | 69 "//skia", |
| 70 "//ui/gfx/geometry", | 70 "//ui/gfx/geometry", |
| 71 ] | 71 ] |
| 72 } | 72 } |
| 73 | 73 |
| 74 component("ozone") { | 74 component("ozone") { |
| 75 sources = [ | 75 sources = [ |
| 76 platform_list_cc_file, | 76 platform_list_cc_file, |
| 77 platform_list_h_file, | 77 platform_list_h_file, |
| 78 constructor_list_cc_file, | 78 constructor_list_cc_file, |
| 79 | |
| 80 "common/display_mode_proxy.cc", | 79 "common/display_mode_proxy.cc", |
| 81 "common/display_mode_proxy.h", | 80 "common/display_mode_proxy.h", |
| 82 "common/display_snapshot_proxy.cc", | 81 "common/display_snapshot_proxy.cc", |
| 83 "common/display_snapshot_proxy.h", | 82 "common/display_snapshot_proxy.h", |
| 84 "common/display_util.cc", | 83 "common/display_util.cc", |
| 85 "common/display_util.h", | 84 "common/display_util.h", |
| 86 "common/gpu/ozone_gpu_message_generator.cc", | 85 "common/gpu/ozone_gpu_message_generator.cc", |
| 87 "common/gpu/ozone_gpu_message_generator.h", | 86 "common/gpu/ozone_gpu_message_generator.h", |
| 88 "common/gpu/ozone_gpu_message_params.cc", | 87 "common/gpu/ozone_gpu_message_params.cc", |
| 89 "common/gpu/ozone_gpu_message_params.h", | 88 "common/gpu/ozone_gpu_message_params.h", |
| 90 "common/gpu/ozone_gpu_messages.h", | 89 "common/gpu/ozone_gpu_messages.h", |
| 91 "common/native_display_delegate_ozone.cc", | 90 "common/native_display_delegate_ozone.cc", |
| 92 "common/native_display_delegate_ozone.h", | 91 "common/native_display_delegate_ozone.h", |
| 93 "public/ozone_platform.cc", | 92 "public/ozone_platform.cc", |
| 94 "public/ozone_platform.h", | 93 "public/ozone_platform.h", |
| 95 "public/ozone_switches.cc", | 94 "public/ozone_switches.cc", |
| 96 "public/ozone_switches.h", | 95 "public/ozone_switches.h", |
| 97 "public/ui_thread_gpu.cc", | 96 "public/ui_thread_gpu.cc", |
| 98 "public/ui_thread_gpu.h", | 97 "public/ui_thread_gpu.h", |
| 99 "platform_selection.cc", | 98 "platform_selection.cc", |
| 100 "platform_selection.h", | 99 "platform_selection.h", |
| 101 ] | 100 ] |
| 102 | 101 |
| 103 defines = [ "OZONE_IMPLEMENTATION" ] | 102 defines = [ "OZONE_IMPLEMENTATION" ] |
| 104 | 103 |
| 105 deps = [ | 104 deps = |
| 106 ":generate_constructor_list", | 105 [ |
| 107 ":generate_ozone_platform_list", | 106 ":generate_constructor_list", |
| 108 ":ozone_base", | 107 ":generate_ozone_platform_list", |
| 109 "//base", | 108 ":ozone_base", |
| 110 "//ipc", | 109 "//base", |
| 111 "//skia", | 110 "//ipc", |
| 112 "//ui/display/types", | 111 "//skia", |
| 113 "//ui/display/util", | 112 "//ui/display/types", |
| 114 "//ui/events", | 113 "//ui/display/util", |
| 115 "//ui/events/ozone:events_ozone", | 114 "//ui/events", |
| 116 "//ui/gfx", | 115 "//ui/events/ozone:events_ozone", |
| 117 "//ui/gfx/geometry", | 116 "//ui/gfx", |
| 118 "//ui/gfx/ipc", | 117 "//ui/gfx/geometry", |
| 119 # TODO(GYP) the GYP version has a way to add additional dependencies via | 118 "//ui/gfx/ipc", |
| 120 # build flags. | |
| 121 ] + ozone_platform_deps | |
| 122 | 119 |
| 120 # TODO(GYP) the GYP version has a way to add additional dependencies via |
| 121 # build flags. |
| 122 ] + ozone_platform_deps |
| 123 } | 123 } |
| 124 | 124 |
| 125 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list | 125 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list |
| 126 action("generate_ozone_platform_list") { | 126 action("generate_ozone_platform_list") { |
| 127 script = "generate_ozone_platform_list.py" | 127 script = "generate_ozone_platform_list.py" |
| 128 outputs = [ | 128 outputs = [ |
| 129 platform_list_cc_file, | 129 platform_list_cc_file, |
| 130 platform_list_h_file, | 130 platform_list_h_file, |
| 131 platform_list_txt_file | 131 platform_list_txt_file, |
| 132 ] | 132 ] |
| 133 | 133 |
| 134 args = [ | 134 args = |
| 135 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir), | 135 [ |
| 136 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir), | 136 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir), |
| 137 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir), | 137 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir), |
| 138 "--default=$ozone_platform", | 138 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir), |
| 139 ] + ozone_platforms | 139 "--default=$ozone_platform", |
| 140 ] + ozone_platforms |
| 140 } | 141 } |
| 141 | 142 |
| 142 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list | 143 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list |
| 143 action("generate_constructor_list") { | 144 action("generate_constructor_list") { |
| 144 script = "generate_constructor_list.py" | 145 script = "generate_constructor_list.py" |
| 145 | 146 |
| 146 inputs = [ | 147 inputs = [ |
| 147 platform_list_txt_file, | 148 platform_list_txt_file, |
| 148 ] | 149 ] |
| 149 outputs = [ | 150 outputs = [ constructor_list_cc_file ] |
| 150 constructor_list_cc_file, | |
| 151 ] | |
| 152 | 151 |
| 153 args = [ | 152 args = [ |
| 154 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), | 153 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), |
| 155 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), | 154 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), |
| 156 "--namespace=ui", | 155 "--namespace=ui", |
| 157 "--typename=OzonePlatform", | 156 "--typename=OzonePlatform", |
| 158 "--include=\"ui/ozone/public/ozone_platform.h\"", | 157 "--include=\"ui/ozone/public/ozone_platform.h\"", |
| 159 ] | 158 ] |
| 160 | 159 |
| 161 deps = [ ":generate_ozone_platform_list" ] | 160 deps = [ |
| 161 ":generate_ozone_platform_list", |
| 162 ] |
| 162 } | 163 } |
| 163 | 164 |
| 164 test("ozone_unittests") { | 165 test("ozone_unittests") { |
| 165 sources = [ | 166 sources = [ |
| 166 "run_all_unittests.cc", | 167 "run_all_unittests.cc", |
| 167 ] | 168 ] |
| 168 | 169 |
| 169 deps = [ | 170 deps = [ |
| 170 "//base/test:test_support", | 171 "//base/test:test_support", |
| 171 "//testing/gtest", | 172 "//testing/gtest", |
| 172 ] + ozone_platform_test_deps | 173 ] + ozone_platform_test_deps |
| 173 } | 174 } |
| OLD | NEW |