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

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

Issue 1541163002: GN(android) Don't enable --gc-sections in debug mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn gen Created 4 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 | « mojo/runner/BUILD.gn ('k') | no next file » | 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/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 component("message_center") { 9 component("message_center") {
10 deps = [ 10 deps = [
11 "//base", 11 "//base",
12 "//base:i18n",
13 "//base/third_party/dynamic_annotations",
14 "//components/url_formatter",
15 "//skia",
16 "//ui/accessibility",
17 "//ui/base", 12 "//ui/base",
18 "//ui/events",
19 "//ui/gfx",
20 "//ui/gfx/geometry",
21 "//ui/native_theme",
22 "//ui/resources",
23 "//ui/strings",
24 "//url", 13 "//url",
25 ] 14 ]
26 15
27 configs += [
28 "//build/config:precompiled_headers",
29
30 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
31 "//build/config/compiler:no_size_t_to_int_warning",
32 ]
33
34 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] 16 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ]
35 17
36 if (enable_notifications && !is_android) { 18 if (enable_notifications && !is_android) {
19 deps += [
20 "//base:i18n",
21 "//base/third_party/dynamic_annotations",
22 "//components/url_formatter",
23 "//skia",
24 "//ui/accessibility",
25 "//ui/events",
26 "//ui/gfx",
27 "//ui/gfx/geometry",
28 "//ui/native_theme",
29 "//ui/resources",
30 "//ui/strings",
31 ]
32
33 configs += [
34 "//build/config:precompiled_headers",
35
36 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
37 "//build/config/compiler:no_size_t_to_int_warning",
38 ]
37 sources = [ 39 sources = [
38 "cocoa/notification_controller.h", 40 "cocoa/notification_controller.h",
39 "cocoa/notification_controller.mm", 41 "cocoa/notification_controller.mm",
40 "cocoa/opaque_views.h", 42 "cocoa/opaque_views.h",
41 "cocoa/opaque_views.mm", 43 "cocoa/opaque_views.mm",
42 "cocoa/popup_collection.h", 44 "cocoa/popup_collection.h",
43 "cocoa/popup_collection.mm", 45 "cocoa/popup_collection.mm",
44 "cocoa/popup_controller.h", 46 "cocoa/popup_controller.h",
45 "cocoa/popup_controller.mm", 47 "cocoa/popup_controller.mm",
46 "message_center.cc", 48 "message_center.cc",
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 sources += [ 148 sources += [
147 "notification.cc", 149 "notification.cc",
148 "notification.h", 150 "notification.h",
149 "notifier_settings.cc", 151 "notifier_settings.cc",
150 "notifier_settings.h", 152 "notifier_settings.h",
151 ] 153 ]
152 } 154 }
153 } 155 }
154 } 156 }
155 157
156 static_library("test_support") { 158 source_set("test_support") {
157 testonly = true 159 testonly = true
158 sources = [ 160
159 "fake_message_center.cc", 161 if (enable_notifications && !is_android) {
160 "fake_message_center.h", 162 sources = [
161 "fake_message_center_tray_delegate.cc", 163 "fake_message_center.cc",
162 "fake_message_center_tray_delegate.h", 164 "fake_message_center.h",
163 "fake_notifier_settings_provider.cc", 165 "fake_message_center_tray_delegate.cc",
164 "fake_notifier_settings_provider.h", 166 "fake_message_center_tray_delegate.h",
165 ] 167 "fake_notifier_settings_provider.cc",
168 "fake_notifier_settings_provider.h",
169 ]
170 deps = [
171 "//base",
172 "//base/test:test_support",
173 "//skia",
174 "//ui/gfx",
175 "//ui/gfx/geometry",
176 ]
177 }
166 178
167 public_deps = [ 179 public_deps = [
168 ":message_center", 180 ":message_center",
169 ] 181 ]
170
171 deps = [
172 "//base",
173 "//base/test:test_support",
174 "//skia",
175 "//ui/gfx",
176 "//ui/gfx/geometry",
177 ]
178 } 182 }
179 183
180 test("message_center_unittests") { 184 test("message_center_unittests") {
181 sources = [ 185 sources = [
182 "test/run_all_unittests.cc", 186 "test/run_all_unittests.cc",
183 ] 187 ]
184 188
185 deps = [ 189 deps = [
186 ":message_center", 190 ":message_center",
187 ":test_support", 191 ":test_support",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 deps += [ 231 deps += [
228 # Compositor is needed by message_center_view_unittest.cc and for the 232 # Compositor is needed by message_center_view_unittest.cc and for the
229 # fonts used by bounded_label_unittest.cc. 233 # fonts used by bounded_label_unittest.cc.
230 "//ui/compositor", 234 "//ui/compositor",
231 "//ui/views", 235 "//ui/views",
232 "//ui/views:test_support", 236 "//ui/views:test_support",
233 ] 237 ]
234 } 238 }
235 } # enable_notifications && !is_android 239 } # enable_notifications && !is_android
236 } 240 }
OLDNEW
« no previous file with comments | « mojo/runner/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698