| 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 | 6 |
| 7 component("views_examples_lib") { | 7 component("views_examples_lib") { |
| 8 testonly = true | 8 testonly = true |
| 9 | 9 |
| 10 sources = [ | 10 sources = [ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 "textfield_example.h", | 54 "textfield_example.h", |
| 55 "throbber_example.cc", | 55 "throbber_example.cc", |
| 56 "throbber_example.h", | 56 "throbber_example.h", |
| 57 "tree_view_example.cc", | 57 "tree_view_example.cc", |
| 58 "tree_view_example.h", | 58 "tree_view_example.h", |
| 59 "views_examples_export.h", | 59 "views_examples_export.h", |
| 60 "widget_example.cc", | 60 "widget_example.cc", |
| 61 "widget_example.h", | 61 "widget_example.h", |
| 62 ] | 62 ] |
| 63 | 63 |
| 64 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 65 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 66 |
| 64 defines = [ "VIEWS_EXAMPLES_IMPLEMENTATION" ] | 67 defines = [ "VIEWS_EXAMPLES_IMPLEMENTATION" ] |
| 65 | 68 |
| 66 deps = [ | 69 deps = [ |
| 67 "//base", | 70 "//base", |
| 68 "//skia", | 71 "//skia", |
| 69 "//third_party/icu", | 72 "//third_party/icu", |
| 70 "//ui/base", | 73 "//ui/base", |
| 71 "//ui/events", | 74 "//ui/events", |
| 72 "//ui/gfx", | 75 "//ui/gfx", |
| 73 "//ui/gfx/geometry", | 76 "//ui/gfx/geometry", |
| 74 "//ui/resources", | 77 "//ui/resources", |
| 75 "//ui/resources:ui_test_pak", | 78 "//ui/resources:ui_test_pak", |
| 76 "//ui/views", | 79 "//ui/views", |
| 77 ] | 80 ] |
| 78 | 81 |
| 79 if (is_win) { | 82 if (is_win) { |
| 80 deps += [ "//third_party/wtl" ] | 83 deps += [ "//third_party/wtl" ] |
| 81 | |
| 82 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 83 cflags = [ "/wd4267" ] | |
| 84 } | 84 } |
| 85 | 85 |
| 86 if (use_aura) { | 86 if (use_aura) { |
| 87 deps += [ "//ui/aura" ] | 87 deps += [ "//ui/aura" ] |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 | 90 |
| 91 if (!is_win || link_chrome_on_windows) { | 91 if (!is_win || link_chrome_on_windows) { |
| 92 executable("views_examples_exe") { | 92 executable("views_examples_exe") { |
| 93 testonly = true | 93 testonly = true |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 "//base", | 158 "//base", |
| 159 "//content", | 159 "//content", |
| 160 "//ui/views_content_client", | 160 "//ui/views_content_client", |
| 161 ] | 161 ] |
| 162 | 162 |
| 163 if (is_win) { | 163 if (is_win) { |
| 164 configs += [ "//build/config/win:windowed" ] | 164 configs += [ "//build/config/win:windowed" ] |
| 165 configs -= [ "//build/config/win:console" ] | 165 configs -= [ "//build/config/win:console" ] |
| 166 } | 166 } |
| 167 } | 167 } |
| OLD | NEW |