OLD | NEW |
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") |
| 6 import("//build/config/mac/rules.gni") |
| 7 |
| 8 mac_app_bundle("alert_notification_xpc_service") { |
| 9 output_name = "AlertNotificationService" |
| 10 bundle_extension = "xpc" |
| 11 |
| 12 info_plist = "xpc-Info.plist" |
| 13 extra_substitutions = |
| 14 [ "PRODUCT_BUNDLE_IDENTIFIER=$chrome_mac_bundle_id.$output_name" ] |
| 15 |
| 16 sources = [ |
| 17 "alert_notification_service.h", |
| 18 "alert_notification_service.mm", |
| 19 "notification_delivery.h", |
| 20 "notification_service_delegate.h", |
| 21 "notification_service_delegate.mm", |
| 22 "xpc_service_main.mm", |
| 23 ] |
| 24 |
| 25 deps = [ |
| 26 ":common", |
| 27 ] |
| 28 |
| 29 libs = [ |
| 30 "AppKit.framework", |
| 31 "Foundation.framework", |
| 32 ] |
| 33 } |
| 34 |
5 static_library("common") { | 35 static_library("common") { |
6 sources = [ | 36 sources = [ |
7 "notification_builder_mac.h", | 37 "notification_builder_mac.h", |
8 "notification_builder_mac.mm", | 38 "notification_builder_mac.mm", |
9 "notification_constants_mac.h", | 39 "notification_constants_mac.h", |
10 "notification_constants_mac.mm", | 40 "notification_constants_mac.mm", |
11 "notification_response_builder_mac.h", | 41 "notification_response_builder_mac.h", |
12 "notification_response_builder_mac.mm", | 42 "notification_response_builder_mac.mm", |
13 ] | 43 ] |
14 | 44 |
15 deps = [ | 45 deps = [ |
16 "//base", | 46 "//base", |
17 "//chrome:strings", | 47 "//chrome:strings", |
18 "//ui/base:base", | 48 "//ui/base:base", |
19 ] | 49 ] |
20 } | 50 } |
OLD | NEW |