| 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  | 
|   11 visibility = [ ":*" ] |   11 visibility = [ ":*" ] | 
|   12  |   12  | 
 |   13 declare_args() { | 
 |   14   # TODO(tonikitoo): In order to effectively build the ozone/wayland backend by | 
 |   15   # the chromeos/ozone/ buildbot, opt-out to run wayland unittests since they fa
     il. | 
 |   16   # https://bugs.chromium.org/p/chromium/issues/detail?id=657014 | 
 |   17   ozone_platform_wayland_unittests = false | 
 |   18 } | 
 |   19  | 
|   13 # The list of platforms that will be built. |   20 # The list of platforms that will be built. | 
|   14 ozone_platforms = [] |   21 ozone_platforms = [] | 
|   15  |   22  | 
|   16 # Extra dependencies to pull into ui/ozone for built platforms. |   23 # Extra dependencies to pull into ui/ozone for built platforms. | 
|   17 ozone_platform_deps = [] |   24 ozone_platform_deps = [] | 
|   18  |   25  | 
|   19 # Extra dependencies to pull into ozone_unittests for built platforms. |   26 # Extra dependencies to pull into ozone_unittests for built platforms. | 
|   20 ozone_platform_test_deps = [] |   27 ozone_platform_test_deps = [] | 
|   21  |   28  | 
|   22 if (ozone_platform_headless) { |   29 if (ozone_platform_headless) { | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|   36 } |   43 } | 
|   37  |   44  | 
|   38 if (ozone_platform_cast) { |   45 if (ozone_platform_cast) { | 
|   39   ozone_platforms += [ "cast" ] |   46   ozone_platforms += [ "cast" ] | 
|   40   ozone_platform_deps += [ "platform/cast" ] |   47   ozone_platform_deps += [ "platform/cast" ] | 
|   41 } |   48 } | 
|   42  |   49  | 
|   43 if (ozone_platform_wayland) { |   50 if (ozone_platform_wayland) { | 
|   44   ozone_platforms += [ "wayland" ] |   51   ozone_platforms += [ "wayland" ] | 
|   45   ozone_platform_deps += [ "platform/wayland" ] |   52   ozone_platform_deps += [ "platform/wayland" ] | 
|   46   ozone_platform_test_deps += [ "platform/wayland:wayland_unittests" ] |   53   if (ozone_platform_wayland_unittests) { | 
 |   54     ozone_platform_test_deps += [ "platform/wayland:wayland_unittests" ] | 
 |   55   } | 
|   47 } |   56 } | 
|   48  |   57  | 
|   49 if (ozone_platform_x11) { |   58 if (ozone_platform_x11) { | 
|   50   ozone_platforms += [ "x11" ] |   59   ozone_platforms += [ "x11" ] | 
|   51   ozone_platform_deps += [ "platform/x11" ] |   60   ozone_platform_deps += [ "platform/x11" ] | 
|   52 } |   61 } | 
|   53  |   62  | 
|   54 platform_list_cc_file = "$target_gen_dir/platform_list.cc" |   63 platform_list_cc_file = "$target_gen_dir/platform_list.cc" | 
|   55 platform_list_h_file = "$target_gen_dir/platform_list.h" |   64 platform_list_h_file = "$target_gen_dir/platform_list.h" | 
|   56 platform_list_txt_file = "$target_gen_dir/platform_list.txt" |   65 platform_list_txt_file = "$target_gen_dir/platform_list.txt" | 
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  227     "//ui/gfx/geometry", |  236     "//ui/gfx/geometry", | 
|  228   ] |  237   ] | 
|  229  |  238  | 
|  230   # Add tests of platform internals. |  239   # Add tests of platform internals. | 
|  231   deps += ozone_platform_test_deps |  240   deps += ozone_platform_test_deps | 
|  232  |  241  | 
|  233   # Platform tests link ozone statically. Make sure we're not getting a |  242   # Platform tests link ozone statically. Make sure we're not getting a | 
|  234   # 2nd copy of any code via the component. |  243   # 2nd copy of any code via the component. | 
|  235   assert_no_deps = [ "//ui/ozone" ] |  244   assert_no_deps = [ "//ui/ozone" ] | 
|  236 } |  245 } | 
| OLD | NEW |