| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("views.gyp") ], | 10 [ rebase_path("views.gyp") ], |
| 11 "scope", | 11 "scope", |
| 12 [ "views.gyp" ]) | 12 [ "views.gyp" ]) |
| 13 | 13 |
| 14 config("flags") { | 14 config("flags") { |
| 15 defines = [ "TOOLKIT_VIEWS=1" ] | 15 defines = [ "TOOLKIT_VIEWS=1" ] |
| 16 } | 16 } |
| 17 | 17 |
| 18 component("views") { | 18 static_library("views") { |
| 19 # TODO(crbug.com/559766) this should be a component but |
| 20 # there are static initializers that get accidentally linked |
| 21 # into chrome from that need to be addressed first. |
| 19 all_dependent_configs = [ ":flags" ] | 22 all_dependent_configs = [ ":flags" ] |
| 20 sources = gypi_values.views_sources | 23 sources = gypi_values.views_sources |
| 21 | 24 |
| 22 configs += [ | 25 configs += [ |
| 23 "//build/config:precompiled_headers", | 26 "//build/config:precompiled_headers", |
| 24 | 27 |
| 25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 28 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 26 "//build/config/compiler:no_size_t_to_int_warning", | 29 "//build/config/compiler:no_size_t_to_int_warning", |
| 27 ] | 30 ] |
| 28 | 31 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 "//ui/base:test_support", | 305 "//ui/base:test_support", |
| 303 "//ui/compositor", | 306 "//ui/compositor", |
| 304 "//ui/events:test_support", | 307 "//ui/events:test_support", |
| 305 "//ui/gl:test_support", | 308 "//ui/gl:test_support", |
| 306 "//ui/resources", | 309 "//ui/resources", |
| 307 "//ui/resources:ui_test_pak", | 310 "//ui/resources:ui_test_pak", |
| 308 "//ui/strings", | 311 "//ui/strings", |
| 309 ] | 312 ] |
| 310 } | 313 } |
| 311 } | 314 } |
| OLD | NEW |