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

Side by Side Diff: chrome/browser/ui/cocoa/notifications/BUILD.gn

Issue 2748903003: [Mac] Use Crashpad in the AlertNotificationService.xpc. (Closed)
Patch Set: Comments Created 3 years, 9 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/util/branding.gni") 5 import("//build/util/branding.gni")
6 import("//build/config/mac/rules.gni") 6 import("//build/config/mac/rules.gni")
7 7
8 mac_app_bundle("alert_notification_xpc_service") { 8 mac_app_bundle("alert_notification_xpc_service") {
9 output_name = "AlertNotificationService" 9 output_name = "AlertNotificationService"
10 package_type = "xpc" 10 package_type = "xpc"
11 11
12 info_plist = "xpc-Info.plist" 12 info_plist = "xpc-Info.plist"
13 extra_substitutions = [ "CHROME_BUNDLE_ID=$chrome_mac_bundle_id" ] 13 extra_substitutions = [ "CHROME_BUNDLE_ID=$chrome_mac_bundle_id" ]
14 14
15 sources = [ 15 sources = [
16 "alert_notification_service.h", 16 "alert_notification_service.h",
17 "alert_notification_service.mm", 17 "alert_notification_service.mm",
18 "notification_service_delegate.h", 18 "notification_service_delegate.h",
19 "notification_service_delegate.mm", 19 "notification_service_delegate.mm",
20 "xpc_service_main.mm", 20 "xpc_service_main.mm",
21 "xpc_transaction_handler.h", 21 "xpc_transaction_handler.h",
22 "xpc_transaction_handler.mm", 22 "xpc_transaction_handler.mm",
23 ] 23 ]
24 24
25 deps = [ 25 deps = [
26 ":common", 26 ":common",
27 "//base:base", 27 "//base:base",
28 "//third_party/crashpad/crashpad/client",
28 ] 29 ]
29 30
30 libs = [ 31 libs = [
31 "AppKit.framework", 32 "AppKit.framework",
32 "Foundation.framework", 33 "Foundation.framework",
33 ] 34 ]
34 35
35 ldflags = [] 36 ldflags = []
36 if (is_component_build) { 37 if (is_component_build) {
37 ldflags += [ 38 ldflags += [
38 # The XPC service is in Chromium.app/Contents/Versions/X/Chromium \ 39 # The XPC service is in Chromium.app/Contents/Versions/X/Chromium \
39 # Framework.framework/XPCServices/AlertNotificationService.xpc/\ 40 # Framework.framework/XPCServices/AlertNotificationService.xpc/\
40 # Contents/MacOS/ so set rpath up to the base. 41 # Contents/MacOS/ so set rpath up to the base.
41 "-rpath", 42 "-rpath",
42 "@loader_path/../../../../../../../../../", 43 "@loader_path/../../../../../../../../../",
43 ] 44 ]
44 } 45 }
45 } 46 }
46 47
47 static_library("common") { 48 static_library("common") {
48 sources = [ 49 sources = [
49 "notification_builder_mac.h", 50 "notification_builder_mac.h",
50 "notification_builder_mac.mm", 51 "notification_builder_mac.mm",
51 "notification_constants_mac.h", 52 "notification_constants_mac.h",
52 "notification_constants_mac.mm", 53 "notification_constants_mac.mm",
53 "notification_delivery.h", 54 "notification_delivery.h",
54 "notification_response_builder_mac.h", 55 "notification_response_builder_mac.h",
55 "notification_response_builder_mac.mm", 56 "notification_response_builder_mac.mm",
57 "xpc_mach_port.h",
58 "xpc_mach_port.mm",
56 ] 59 ]
57 60
58 deps = [ 61 deps = [
59 "//base:base", 62 "//base:base",
60 ] 63 ]
61 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698