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

Side by Side Diff: ui/base/BUILD.gn

Issue 860873002: Continue deleting code in ui/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 2015 Created 5 years, 11 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 | « services/window_manager/window_manager_app.cc ('k') | ui/base/cursor/DEPS » ('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 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
11 11
12 component("base") { 12 component("base") {
13 output_name = "ui_base" 13 output_name = "ui_base"
14 sources = [ 14 sources = [
15 "android/system_ui_resource_manager.h", 15 "android/system_ui_resource_manager.h",
16 "android/ui_base_jni_registrar.cc", 16 "android/ui_base_jni_registrar.cc",
17 "android/ui_base_jni_registrar.h", 17 "android/ui_base_jni_registrar.h",
18 "android/view_android.cc", 18 "android/view_android.cc",
19 "android/view_android.h", 19 "android/view_android.h",
20 "android/window_android.cc", 20 "android/window_android.cc",
21 "android/window_android.h", 21 "android/window_android.h",
22 "android/window_android_compositor.h", 22 "android/window_android_compositor.h",
23 "android/window_android_observer.h", 23 "android/window_android_observer.h",
24 "cursor/cursor.h",
25 "hit_test.h",
26 "ui_base_export.h", 24 "ui_base_export.h",
27 "ui_base_switches.cc",
28 "ui_base_switches.h",
29 "view_prop.cc",
30 "view_prop.h",
31 "win/accessibility_ids_win.h",
32 "win/accessibility_misc_utils.cc",
33 "win/accessibility_misc_utils.h",
34 "win/atl_module.h",
35 "win/foreground_helper.cc",
36 "win/foreground_helper.h",
37 "win/hidden_window.cc",
38 "win/hidden_window.h",
39 "win/hwnd_subclass.cc",
40 "win/hwnd_subclass.h",
41 "win/internal_constants.cc",
42 "win/internal_constants.h",
43 "win/lock_state.cc",
44 "win/lock_state.h",
45 "win/open_file_name_win.cc",
46 "win/open_file_name_win.h",
47 "win/message_box_win.cc",
48 "win/message_box_win.h",
49 "win/mouse_wheel_util.cc",
50 "win/mouse_wheel_util.h",
51 "win/scoped_ole_initializer.cc",
52 "win/scoped_ole_initializer.h",
53 "win/shell.cc",
54 "win/shell.h",
55 "win/touch_input.cc",
56 "win/touch_input.h",
57 "win/window_event_target.cc",
58 "win/window_event_target.h",
59 ] 25 ]
60 26
61 defines = [ "UI_BASE_IMPLEMENTATION" ] 27 defines = [ "UI_BASE_IMPLEMENTATION" ]
62 28
63 public_deps = [ 29 public_deps = [
64 "//base", 30 "//base",
65 "//skia", 31 "//skia",
66 "//ui/events", 32 "//ui/events",
67 "//ui/events/platform", 33 "//ui/events/platform",
68 "//ui/events:events_base", 34 "//ui/events:events_base",
69 "//ui/gfx", 35 "//ui/gfx",
70 "//ui/gfx/geometry", 36 "//ui/gfx/geometry",
71 ] 37 ]
72 deps = [ 38 deps = [
73 "//base/third_party/dynamic_annotations", 39 "//base/third_party/dynamic_annotations",
74 "//base:base_static", 40 "//base:base_static",
75 "//base:i18n", 41 "//base:i18n",
76 "//net", 42 "//net",
77 "//third_party/icu", 43 "//third_party/icu",
78 "//url", 44 "//url",
79 ] 45 ]
80 46
81 if (use_x11) {
82 sources += [
83 "x/x11_util.cc",
84 "x/x11_util.h",
85 "x/x11_util_internal.h",
86 ]
87 deps += [ "//ui/gfx/x" ]
88 }
89
90 if (is_linux) { 47 if (is_linux) {
91 configs += [ 48 configs += [
92 "//build/config/linux:fontconfig", 49 "//build/config/linux:fontconfig",
93 "//build/config/linux:glib", 50 "//build/config/linux:glib",
94 ] 51 ]
95 } 52 }
96 53
97 libs = [] 54 libs = []
98 if (is_win) { 55 if (is_win) {
99 cflags = [ 56 cflags = [
100 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. 57 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int.
101 "/wd4324", # Structure was padded due to __declspec(align()), which is 58 "/wd4324", # Structure was padded due to __declspec(align()), which is
102 # uninteresting. 59 # uninteresting.
103 ] 60 ]
104 ldflags = [ 61 ldflags = [
105 "/DELAYLOAD:d2d1.dll", 62 "/DELAYLOAD:d2d1.dll",
106 "/DELAYLOAD:d3d10_1.dll", 63 "/DELAYLOAD:d3d10_1.dll",
107 "/DELAYLOAD:dwmapi.dll", 64 "/DELAYLOAD:dwmapi.dll",
108 ] 65 ]
109 libs += [ 66 libs += [
110 "d2d1.lib", 67 "d2d1.lib",
111 "d3d10_1.lib", 68 "d3d10_1.lib",
112 "dwmapi.lib", 69 "dwmapi.lib",
113 "imm32.lib", 70 "imm32.lib",
114 "d2d1.lib", 71 "d2d1.lib",
115 "dwmapi.lib", 72 "dwmapi.lib",
116 "oleacc.lib", 73 "oleacc.lib",
117 ] 74 ]
118 } else {
119 sources -= [
120 "view_prop.cc",
121 "view_prop.h",
122 ]
123 } 75 }
124 76
125 if (is_mac) { 77 if (is_mac) {
126 deps += [ "//third_party/mozilla" ] 78 deps += [ "//third_party/mozilla" ]
127 79
128 libs += [ 80 libs += [
129 "Accelerate.framework", 81 "Accelerate.framework",
130 "AudioUnit.framework", 82 "AudioUnit.framework",
131 "CoreVideo.framework", 83 "CoreVideo.framework",
132 ] 84 ]
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 # In order to do this we will need to keep this target, add a dummy 126 # In order to do this we will need to keep this target, add a dummy
175 # ui_base_unittests target that just points to ui_unittests, change 127 # ui_base_unittests target that just points to ui_unittests, change
176 # buildbot code to reference the new 'ui_base_unittests' target. 128 # buildbot code to reference the new 'ui_base_unittests' target.
177 # After buildbot is updated, we can make the changes in Chromium and 129 # After buildbot is updated, we can make the changes in Chromium and
178 # remove 'ui_unittests' target. crbug.com/331829 130 # remove 'ui_unittests' target. crbug.com/331829
179 test("ui_unittests") { 131 test("ui_unittests") {
180 sources = [ 132 sources = [
181 "test/run_all_unittests.cc", 133 "test/run_all_unittests.cc",
182 ] 134 ]
183 135
184 sources += [ 136 sources += [ "test/data/resource.h" ]
185 "test/data/resource.h",
186 "view_prop_unittest.cc",
187 ]
188 137
189 deps = [ 138 deps = [
190 "//base", 139 "//base",
191 "//base/allocator", 140 "//base/allocator",
192 "//base/test:test_support", 141 "//base/test:test_support",
193 "//net", 142 "//net",
194 "//skia", 143 "//skia",
195 "//testing/gmock", 144 "//testing/gmock",
196 "//testing/gtest", 145 "//testing/gtest",
197 "//third_party/icu", 146 "//third_party/icu",
198 "//ui/base", 147 "//ui/base",
199 "//ui/events:events_base", 148 "//ui/events:events_base",
200 "//ui/events:test_support", 149 "//ui/events:test_support",
201 "//ui/gfx:test_support", 150 "//ui/gfx:test_support",
202 "//url", 151 "//url",
203 ] 152 ]
204 153
205 if (is_win) { 154 if (is_win) {
206 sources += [
207 "win/hwnd_subclass_unittest.cc",
208 "win/open_file_name_win_unittest.cc",
209 ]
210
211 ldflags = [ 155 ldflags = [
212 "/DELAYLOAD:d2d1.dll", 156 "/DELAYLOAD:d2d1.dll",
213 "/DELAYLOAD:d3d10_1.dll", 157 "/DELAYLOAD:d3d10_1.dll",
214 ] 158 ]
215 libs = [ 159 libs = [
216 "d2d1.lib", 160 "d2d1.lib",
217 "d3d10_1.lib", 161 "d3d10_1.lib",
218 "imm32.lib", 162 "imm32.lib",
219 "oleacc.lib", 163 "oleacc.lib",
220 ] 164 ]
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 "//chromeos", 203 "//chromeos",
260 "//ui/aura:test_support", 204 "//ui/aura:test_support",
261 "//ui/events:gesture_detection", 205 "//ui/events:gesture_detection",
262 "//ui/chromeos:ui_chromeos", 206 "//ui/chromeos:ui_chromeos",
263 ] 207 ]
264 } 208 }
265 } 209 }
266 } 210 }
267 } 211 }
268 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). 212 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk).
OLDNEW
« no previous file with comments | « services/window_manager/window_manager_app.cc ('k') | ui/base/cursor/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698