| 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("//ui/ozone/ozone_extra.gni") | 7 import("//ui/ozone/ozone_extra.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 assert(use_ozone) | 10 assert(use_ozone) |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 outputs = [ | 193 outputs = [ |
| 194 constructor_list_cc_file, | 194 constructor_list_cc_file, |
| 195 ] | 195 ] |
| 196 | 196 |
| 197 args = [ | 197 args = [ |
| 198 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), | 198 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), |
| 199 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), | 199 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), |
| 200 "--namespace=ui", | 200 "--namespace=ui", |
| 201 "--typename=OzonePlatform", | 201 "--typename=OzonePlatform", |
| 202 "--typename=ClientNativePixmapFactory", | 202 "--typename=ClientNativePixmapFactory", |
| 203 "--using=gfx::ClientNativePixmapFactory", |
| 203 "--include=\"ui/gfx/client_native_pixmap_factory.h\"", | 204 "--include=\"ui/gfx/client_native_pixmap_factory.h\"", |
| 204 "--include=\"ui/ozone/public/ozone_platform.h\"", | 205 "--include=\"ui/ozone/public/ozone_platform.h\"", |
| 205 ] | 206 ] |
| 206 | 207 |
| 207 deps = [ | 208 deps = [ |
| 208 ":generate_ozone_platform_list", | 209 ":generate_ozone_platform_list", |
| 209 ] | 210 ] |
| 210 } | 211 } |
| 211 | 212 |
| 212 test("ozone_unittests") { | 213 test("ozone_unittests") { |
| 213 sources = [ | 214 sources = [ |
| 214 "run_all_unittests.cc", | 215 "run_all_unittests.cc", |
| 215 ] | 216 ] |
| 216 | 217 |
| 217 deps = [ | 218 deps = [ |
| 218 "//base/test:test_support", | 219 "//base/test:test_support", |
| 219 "//testing/gtest", | 220 "//testing/gtest", |
| 220 "//ui/gfx/geometry", | 221 "//ui/gfx/geometry", |
| 221 ] | 222 ] |
| 222 | 223 |
| 223 # Add tests of platform internals. | 224 # Add tests of platform internals. |
| 224 deps += ozone_platform_test_deps | 225 deps += ozone_platform_test_deps |
| 225 | 226 |
| 226 # Platform tests link ozone statically. Make sure we're not getting a | 227 # Platform tests link ozone statically. Make sure we're not getting a |
| 227 # 2nd copy of any code via the component. | 228 # 2nd copy of any code via the component. |
| 228 assert_no_deps = [ "//ui/ozone" ] | 229 assert_no_deps = [ "//ui/ozone" ] |
| 229 } | 230 } |
| OLD | NEW |