| 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//ui/ozone/ozone.gni") | 6 import("//ui/ozone/ozone.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 assert(use_ozone) | 9 assert(use_ozone) |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 platform_list_h_file = "$target_gen_dir/platform_list.h" | 55 platform_list_h_file = "$target_gen_dir/platform_list.h" |
| 56 platform_list_txt_file = "$target_gen_dir/platform_list.txt" | 56 platform_list_txt_file = "$target_gen_dir/platform_list.txt" |
| 57 constructor_list_cc_file = "$target_gen_dir/constructor_list.cc" | 57 constructor_list_cc_file = "$target_gen_dir/constructor_list.cc" |
| 58 | 58 |
| 59 config("vgem_map") { | 59 config("vgem_map") { |
| 60 if (use_vgem_map) { | 60 if (use_vgem_map) { |
| 61 defines = [ "USE_VGEM_MAP" ] | 61 defines = [ "USE_VGEM_MAP" ] |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 # GYP version: ui/ozone/ozone.gyp:ozone_base | |
| 66 component("ozone_base") { | 65 component("ozone_base") { |
| 67 sources = [ | 66 sources = [ |
| 68 "public/cursor_factory_ozone.cc", | 67 "public/cursor_factory_ozone.cc", |
| 69 "public/cursor_factory_ozone.h", | 68 "public/cursor_factory_ozone.h", |
| 70 "public/gl_ozone.h", | 69 "public/gl_ozone.h", |
| 71 "public/gpu_platform_support_host.cc", | 70 "public/gpu_platform_support_host.cc", |
| 72 "public/gpu_platform_support_host.h", | 71 "public/gpu_platform_support_host.h", |
| 73 "public/input_controller.cc", | 72 "public/input_controller.cc", |
| 74 "public/input_controller.h", | 73 "public/input_controller.h", |
| 75 "public/native_pixmap.h", | 74 "public/native_pixmap.h", |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 165 } |
| 167 | 166 |
| 168 component("ozone") { | 167 component("ozone") { |
| 169 visibility = [] | 168 visibility = [] |
| 170 visibility = [ "*" ] | 169 visibility = [ "*" ] |
| 171 public_deps = [ | 170 public_deps = [ |
| 172 ":platform", | 171 ":platform", |
| 173 ] | 172 ] |
| 174 } | 173 } |
| 175 | 174 |
| 176 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list | |
| 177 action("generate_ozone_platform_list") { | 175 action("generate_ozone_platform_list") { |
| 178 script = "generate_ozone_platform_list.py" | 176 script = "generate_ozone_platform_list.py" |
| 179 outputs = [ | 177 outputs = [ |
| 180 platform_list_cc_file, | 178 platform_list_cc_file, |
| 181 platform_list_h_file, | 179 platform_list_h_file, |
| 182 platform_list_txt_file, | 180 platform_list_txt_file, |
| 183 ] | 181 ] |
| 184 | 182 |
| 185 args = | 183 args = |
| 186 [ | 184 [ |
| 187 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir), | 185 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir), |
| 188 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir), | 186 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir), |
| 189 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir), | 187 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir), |
| 190 "--default=$ozone_platform", | 188 "--default=$ozone_platform", |
| 191 ] + ozone_platforms | 189 ] + ozone_platforms |
| 192 | 190 |
| 193 visibility += [ "//media:*" ] | 191 visibility += [ "//media:*" ] |
| 194 } | 192 } |
| 195 | 193 |
| 196 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list | |
| 197 action("generate_constructor_list") { | 194 action("generate_constructor_list") { |
| 198 script = "generate_constructor_list.py" | 195 script = "generate_constructor_list.py" |
| 199 | 196 |
| 200 inputs = [ | 197 inputs = [ |
| 201 platform_list_txt_file, | 198 platform_list_txt_file, |
| 202 ] | 199 ] |
| 203 outputs = [ | 200 outputs = [ |
| 204 constructor_list_cc_file, | 201 constructor_list_cc_file, |
| 205 ] | 202 ] |
| 206 | 203 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 230 "//ui/gfx/geometry", | 227 "//ui/gfx/geometry", |
| 231 ] | 228 ] |
| 232 | 229 |
| 233 # Add tests of platform internals. | 230 # Add tests of platform internals. |
| 234 deps += ozone_platform_test_deps | 231 deps += ozone_platform_test_deps |
| 235 | 232 |
| 236 # Platform tests link ozone statically. Make sure we're not getting a | 233 # Platform tests link ozone statically. Make sure we're not getting a |
| 237 # 2nd copy of any code via the component. | 234 # 2nd copy of any code via the component. |
| 238 assert_no_deps = [ "//ui/ozone" ] | 235 assert_no_deps = [ "//ui/ozone" ] |
| 239 } | 236 } |
| OLD | NEW |