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 | 7 |
8 gypi_values = exec_script( | 8 gypi_values = exec_script( |
9 "//build/gypi_to_gn.py", | 9 "//build/gypi_to_gn.py", |
10 [ rebase_path("views.gyp") ], | 10 [ rebase_path("views.gyp") ], |
(...skipping 27 matching lines...) Expand all Loading... |
38 "//ui/events:events_base", | 38 "//ui/events:events_base", |
39 "//ui/events/platform", | 39 "//ui/events/platform", |
40 "//ui/gfx", | 40 "//ui/gfx", |
41 "//ui/gfx/geometry", | 41 "//ui/gfx/geometry", |
42 ] | 42 ] |
43 | 43 |
44 if (use_x11 && !is_chromeos) { | 44 if (use_x11 && !is_chromeos) { |
45 deps += [ "//ui/display/util" ] | 45 deps += [ "//ui/display/util" ] |
46 } | 46 } |
47 | 47 |
48 if (is_win) { | |
49 sources += gypi_values.views_win_sources | |
50 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t
runcations. | |
51 libs = [ "/imm32.lib", "oleacc.lib" ] | |
52 ldflags = [ "/DELAYLOAD:user32.dll" ] | |
53 deps += [ | |
54 "//third_party/iaccessible2", | |
55 "//third_party/wtl", | |
56 ] | |
57 } | |
58 | |
59 if (use_ozone) { | 48 if (use_ozone) { |
60 deps += [ "//ui/ozone" ] | 49 deps += [ "//ui/ozone" ] |
61 } | 50 } |
62 if (use_x11) { | 51 if (use_x11) { |
63 configs += [ | 52 configs += [ |
64 "//build/config/linux:x11", | 53 "//build/config/linux:x11", |
65 "//build/config/linux:xrandr", | 54 "//build/config/linux:xrandr", |
66 ] | 55 ] |
67 deps += [ | 56 deps += [ |
68 "//ui/events/platform/x11", | 57 "//ui/events/platform/x11", |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } | 171 } |
183 if (use_x11) { | 172 if (use_x11) { |
184 deps += [ | 173 deps += [ |
185 "//ui/events/platform/x11", | 174 "//ui/events/platform/x11", |
186 "//ui/gfx/x", | 175 "//ui/gfx/x", |
187 ] | 176 ] |
188 } | 177 } |
189 } | 178 } |
190 | 179 |
191 } # if (false) | 180 } # if (false) |
OLD | NEW |