 Chromium Code Reviews
 Chromium Code Reviews Issue 2460853002:
  Add Ozone configuration to facilitate management of external platforms  (Closed)
    
  
    Issue 2460853002:
  Add Ozone configuration to facilitate management of external platforms  (Closed) 
  | 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("//testing/test.gni") | 8 import("//testing/test.gni") | 
| 8 | 9 | 
| 9 assert(use_ozone) | 10 assert(use_ozone) | 
| 10 | 11 | 
| 11 visibility = [ ":*" ] | 12 visibility = [ ":*" ] | 
| 12 | 13 | 
| 13 # The list of platforms that will be built. | 14 # The list of platforms that will be built. | 
| 14 ozone_platforms = [] | 15 ozone_platforms = ozone_external_platforms | 
| 
rjkroege
2016/10/31 20:41:46
Can you test this with a simple-chrome ChromeOS bu
 
fwang
2016/10/31 20:56:05
OK, I have not tested caca on ChromeOS because sof
 | |
| 15 | 16 | 
| 16 # Extra dependencies to pull into ui/ozone for built platforms. | 17 # Extra dependencies to pull into ui/ozone for built platforms. | 
| 17 ozone_platform_deps = [] | 18 ozone_platform_deps = ozone_external_platform_deps | 
| 18 | 19 | 
| 19 # Extra dependencies to pull into ozone_unittests for built platforms. | 20 # Extra dependencies to pull into ozone_unittests for built platforms. | 
| 20 ozone_platform_test_deps = [] | 21 ozone_platform_test_deps = ozone_external_platform_test_deps | 
| 21 | 22 | 
| 22 if (ozone_platform_headless) { | 23 if (ozone_platform_headless) { | 
| 23 ozone_platforms += [ "headless" ] | 24 ozone_platforms += [ "headless" ] | 
| 24 ozone_platform_deps += [ "platform/headless" ] | 25 ozone_platform_deps += [ "platform/headless" ] | 
| 25 } | 26 } | 
| 26 | 27 | 
| 27 if (ozone_platform_gbm) { | 28 if (ozone_platform_gbm) { | 
| 28 ozone_platforms += [ "gbm" ] | 29 ozone_platforms += [ "gbm" ] | 
| 29 ozone_platform_deps += [ "platform/drm:gbm" ] | 30 ozone_platform_deps += [ "platform/drm:gbm" ] | 
| 30 ozone_platform_test_deps += [ "platform/drm:gbm_unittests" ] | 31 ozone_platform_test_deps += [ "platform/drm:gbm_unittests" ] | 
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 222 "//ui/gfx/geometry", | 223 "//ui/gfx/geometry", | 
| 223 ] | 224 ] | 
| 224 | 225 | 
| 225 # Add tests of platform internals. | 226 # Add tests of platform internals. | 
| 226 deps += ozone_platform_test_deps | 227 deps += ozone_platform_test_deps | 
| 227 | 228 | 
| 228 # Platform tests link ozone statically. Make sure we're not getting a | 229 # Platform tests link ozone statically. Make sure we're not getting a | 
| 229 # 2nd copy of any code via the component. | 230 # 2nd copy of any code via the component. | 
| 230 assert_no_deps = [ "//ui/ozone" ] | 231 assert_no_deps = [ "//ui/ozone" ] | 
| 231 } | 232 } | 
| OLD | NEW |