Chromium Code Reviews| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 "platform_selection.h", | 115 "platform_selection.h", |
| 116 "public/client_native_pixmap_factory.cc", | 116 "public/client_native_pixmap_factory.cc", |
| 117 "public/ozone_gpu_test_helper.cc", | 117 "public/ozone_gpu_test_helper.cc", |
| 118 "public/ozone_platform.cc", | 118 "public/ozone_platform.cc", |
| 119 constructor_list_cc_file, | 119 constructor_list_cc_file, |
| 120 platform_list_cc_file, | 120 platform_list_cc_file, |
| 121 platform_list_h_file, | 121 platform_list_h_file, |
| 122 ] | 122 ] |
| 123 | 123 |
| 124 public = [ | 124 public = [ |
| 125 "public/client_native_pixmap_factory.h", | |
| 126 "public/ozone_gpu_test_helper.h", | 125 "public/ozone_gpu_test_helper.h", |
| 127 "public/ozone_platform.h", | 126 "public/ozone_platform.h", |
| 128 ] | 127 ] |
| 129 | 128 |
| 130 defines = [ "OZONE_IMPLEMENTATION" ] | 129 defines = [ "OZONE_IMPLEMENTATION" ] |
| 131 | 130 |
| 132 public_deps = [ | 131 public_deps = [ |
| 133 ":ozone_base", | 132 ":ozone_base", |
| 134 "//base", | 133 "//base", |
| 135 "//ipc", | 134 "//ipc", |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 147 ":generate_ozone_platform_list", | 146 ":generate_ozone_platform_list", |
| 148 "//ui/ozone/public/interfaces", | 147 "//ui/ozone/public/interfaces", |
| 149 ] | 148 ] |
| 150 | 149 |
| 151 deps += ozone_platform_deps | 150 deps += ozone_platform_deps |
| 152 | 151 |
| 153 # Platforms are always linked into //ui/ozone and can include our headers. | 152 # Platforms are always linked into //ui/ozone and can include our headers. |
| 154 allow_circular_includes_from = ozone_platform_deps | 153 allow_circular_includes_from = ozone_platform_deps |
| 155 | 154 |
| 156 # This is used for platform tests. | 155 # This is used for platform tests. |
| 157 visibility += [ "//ui/ozone/platform/*" ] | 156 visibility += [ |
|
spang
2017/02/27 18:49:05
This is definitely not OK.
:platform is for platf
Julien Isorce
2017/03/10 16:55:50
Done.
| |
| 157 "//content/renderer:renderer", | |
| 158 "//gpu/ipc/common:ipc_common_sources", | |
| 159 "//services/ui:lib", | |
| 160 "//ui/ozone/gl:ozone_gl_unittests", | |
| 161 "//ui/ozone/platform/*", | |
| 162 ] | |
| 158 } | 163 } |
| 159 | 164 |
| 160 component("ozone") { | 165 component("ozone") { |
| 161 visibility = [] | 166 visibility = [] |
| 162 visibility = [ "*" ] | 167 visibility = [ "*" ] |
| 163 public_deps = [ | 168 public_deps = [ |
| 164 ":platform", | 169 ":platform", |
| 165 ] | 170 ] |
| 166 } | 171 } |
| 167 | 172 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 193 outputs = [ | 198 outputs = [ |
| 194 constructor_list_cc_file, | 199 constructor_list_cc_file, |
| 195 ] | 200 ] |
| 196 | 201 |
| 197 args = [ | 202 args = [ |
| 198 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), | 203 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), |
| 199 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), | 204 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), |
| 200 "--namespace=ui", | 205 "--namespace=ui", |
| 201 "--typename=OzonePlatform", | 206 "--typename=OzonePlatform", |
| 202 "--typename=ClientNativePixmapFactory", | 207 "--typename=ClientNativePixmapFactory", |
| 208 "--include=\"ui/gfx/client_native_pixmap_factory.h\"", | |
| 203 "--include=\"ui/ozone/public/ozone_platform.h\"", | 209 "--include=\"ui/ozone/public/ozone_platform.h\"", |
| 204 "--include=\"ui/ozone/public/client_native_pixmap_factory.h\"", | |
| 205 ] | 210 ] |
| 206 | 211 |
| 207 deps = [ | 212 deps = [ |
| 208 ":generate_ozone_platform_list", | 213 ":generate_ozone_platform_list", |
| 209 ] | 214 ] |
| 210 } | 215 } |
| 211 | 216 |
| 212 test("ozone_unittests") { | 217 test("ozone_unittests") { |
| 213 sources = [ | 218 sources = [ |
| 214 "run_all_unittests.cc", | 219 "run_all_unittests.cc", |
| 215 ] | 220 ] |
| 216 | 221 |
| 217 deps = [ | 222 deps = [ |
| 218 "//base/test:test_support", | 223 "//base/test:test_support", |
| 219 "//testing/gtest", | 224 "//testing/gtest", |
| 220 "//ui/gfx/geometry", | 225 "//ui/gfx/geometry", |
| 221 ] | 226 ] |
| 222 | 227 |
| 223 # Add tests of platform internals. | 228 # Add tests of platform internals. |
| 224 deps += ozone_platform_test_deps | 229 deps += ozone_platform_test_deps |
| 225 | 230 |
| 226 # Platform tests link ozone statically. Make sure we're not getting a | 231 # Platform tests link ozone statically. Make sure we're not getting a |
| 227 # 2nd copy of any code via the component. | 232 # 2nd copy of any code via the component. |
| 228 assert_no_deps = [ "//ui/ozone" ] | 233 assert_no_deps = [ "//ui/ozone" ] |
| 229 } | 234 } |
| OLD | NEW |