Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: ui/views/examples/BUILD.gn

Issue 929793006: Update existing uses of /wd4267 to use the GN config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x64
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/BUILD.gn ('k') | url/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('k') | url/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698