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

Side by Side Diff: chrome/BUILD.gn

Issue 2774453002: Remove enbale_xpc_notifications compile flag (Closed)
Patch Set: rebase Created 3 years, 8 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 | « BUILD.gn ('k') | chrome/browser/notifications/notification_platform_bridge_mac.mm » ('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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/compiler/pgo/pgo.gni") 7 import("//build/config/compiler/pgo/pgo.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 481
482 if (is_chrome_branded && is_official_build) { 482 if (is_chrome_branded && is_official_build) {
483 deps += [ 483 deps += [
484 ":chrome_dsym_archive", 484 ":chrome_dsym_archive",
485 ":chrome_dump_syms", 485 ":chrome_dump_syms",
486 ] 486 ]
487 } 487 }
488 } 488 }
489 489
490 if (enable_xpc_notifications) { 490 bundle_data("chrome_framework_services") {
491 bundle_data("chrome_framework_services") { 491 sources = [
492 sources = [ 492 "$root_out_dir/AlertNotificationService.xpc",
493 "$root_out_dir/AlertNotificationService.xpc", 493 ]
494 ]
495 494
496 outputs = [ 495 outputs = [
497 "{{bundle_root_dir}}/XPCServices/{{source_file_part}}", 496 "{{bundle_root_dir}}/XPCServices/{{source_file_part}}",
498 ] 497 ]
499 498
500 public_deps = [ 499 public_deps = [
501 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service" , 500 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
502 ] 501 ]
503 }
504 } 502 }
505 503
506 tweak_info_plist("chrome_app_plist") { 504 tweak_info_plist("chrome_app_plist") {
507 info_plist = "app/app-Info.plist" 505 info_plist = "app/app-Info.plist"
508 _keystone_arg = "0" 506 _keystone_arg = "0"
509 if (is_chrome_branded) { 507 if (is_chrome_branded) {
510 _keystone_arg = "1" 508 _keystone_arg = "1"
511 } 509 }
512 args = [ 510 args = [
513 "--breakpad=0", 511 "--breakpad=0",
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 } 1094 }
1097 1095
1098 mac_framework_bundle("chrome_framework") { 1096 mac_framework_bundle("chrome_framework") {
1099 output_name = chrome_framework_name 1097 output_name = chrome_framework_name
1100 1098
1101 if (defined(chrome_framework_version)) { 1099 if (defined(chrome_framework_version)) {
1102 framework_version = chrome_framework_version 1100 framework_version = chrome_framework_version
1103 framework_contents = [ 1101 framework_contents = [
1104 "Helpers", 1102 "Helpers",
1105 "Resources", 1103 "Resources",
1104 "XPCServices",
1106 ] 1105 ]
1107 1106
1108 if (is_chrome_branded) { 1107 if (is_chrome_branded) {
1109 framework_contents += [ 1108 framework_contents += [
1110 "Default Apps", 1109 "Default Apps",
1111 "Frameworks", # For KeystoneRegistration.framework. 1110 "Frameworks", # For KeystoneRegistration.framework.
1112 ] 1111 ]
1113 } 1112 }
1114 if (enable_nacl) { 1113 if (enable_nacl) {
1115 framework_contents += [ "Internet Plug-Ins" ] 1114 framework_contents += [ "Internet Plug-Ins" ]
1116 } 1115 }
1117 if (_should_bundle_widevine) { 1116 if (_should_bundle_widevine) {
1118 framework_contents += [ "Libraries" ] 1117 framework_contents += [ "Libraries" ]
1119 } 1118 }
1120 if (enable_xpc_notifications) {
1121 framework_contents += [ "XPCServices" ]
1122 }
1123 } 1119 }
1124 1120
1125 configs += [ "//build/config/compiler:wexit_time_destructors" ] 1121 configs += [ "//build/config/compiler:wexit_time_destructors" ]
1126 1122
1127 info_plist_target = ":chrome_framework_plist" 1123 info_plist_target = ":chrome_framework_plist"
1128 extra_substitutions = [ 1124 extra_substitutions = [
1129 "CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id", 1125 "CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id",
1130 "CHROMIUM_SHORT_NAME=$chrome_product_short_name", 1126 "CHROMIUM_SHORT_NAME=$chrome_product_short_name",
1131 ] 1127 ]
1132 1128
1133 public_deps = [ 1129 public_deps = [
1134 ":chrome_dll", 1130 ":chrome_dll",
1135 ] 1131 ]
1136 1132
1137 deps = [ 1133 deps = [
1138 ":chrome_framework_helpers", 1134 ":chrome_framework_helpers",
1139 ":chrome_framework_plugins", 1135 ":chrome_framework_plugins",
1140 ":chrome_framework_resources", 1136 ":chrome_framework_resources",
1137 ":chrome_framework_services",
1141 ":packed_resources", 1138 ":packed_resources",
1142 ":widevine_cdm_library", 1139 ":widevine_cdm_library",
1143 "//build/config/sanitizers:deps", 1140 "//build/config/sanitizers:deps",
1144 "//chrome/app/nibs:chrome_xibs", 1141 "//chrome/app/nibs:chrome_xibs",
1145 ] 1142 ]
1146 1143
1147 if (is_chrome_branded) { 1144 if (is_chrome_branded) {
1148 deps += [ ":default_apps" ] 1145 deps += [ ":default_apps" ]
1149 } 1146 }
1150 1147
1151 if (enable_xpc_notifications) {
1152 deps += [ ":chrome_framework_services" ]
1153 }
1154
1155 ldflags = [ 1148 ldflags = [
1156 "-Wl,-install_name,@executable_path/../Versions/$chrome_version_full/$chro me_framework_name.framework/$chrome_framework_name", 1149 "-Wl,-install_name,@executable_path/../Versions/$chrome_version_full/$chro me_framework_name.framework/$chrome_framework_name",
1157 "-compatibility_version", 1150 "-compatibility_version",
1158 chrome_dylib_version, 1151 chrome_dylib_version,
1159 "-current_version", 1152 "-current_version",
1160 chrome_dylib_version, 1153 chrome_dylib_version,
1161 "-Wl,-order_file," + rebase_path("app/framework.order", root_build_dir), 1154 "-Wl,-order_file," + rebase_path("app/framework.order", root_build_dir),
1162 ] 1155 ]
1163 1156
1164 if (is_component_build) { 1157 if (is_component_build) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 ":chrome_framework", 1213 ":chrome_framework",
1221 ] 1214 ]
1222 } 1215 }
1223 } 1216 }
1224 1217
1225 if (enable_dsyms) { 1218 if (enable_dsyms) {
1226 # This list must be updated with the two targets' deps list below, and 1219 # This list must be updated with the two targets' deps list below, and
1227 # the list of _dsyms in :chrome_dsym_archive. 1220 # the list of _dsyms in :chrome_dsym_archive.
1228 _chrome_symbols_sources = [ 1221 _chrome_symbols_sources = [
1229 _framework_binary_path, 1222 _framework_binary_path,
1223 "$root_out_dir/AlertNotificationService.xpc/Contents/MacOS/AlertNotificati onService",
1230 "$root_out_dir/$chrome_helper_name.app/Contents/MacOS/$chrome_helper_name" , 1224 "$root_out_dir/$chrome_helper_name.app/Contents/MacOS/$chrome_helper_name" ,
1231 "$root_out_dir/$chrome_product_full_name.app/Contents/MacOS/$chrome_produc t_full_name", 1225 "$root_out_dir/$chrome_product_full_name.app/Contents/MacOS/$chrome_produc t_full_name",
1232 "$root_out_dir/crashpad_handler", 1226 "$root_out_dir/crashpad_handler",
1233 ] 1227 ]
1234 1228
1235 if (enable_xpc_notifications) {
1236 _chrome_symbols_sources += [ "$root_out_dir/AlertNotificationService.xpc/C ontents/MacOS/AlertNotificationService" ]
1237 }
1238
1239 # It is possible to run dump_syms on unstripped products without dSYMs, 1229 # It is possible to run dump_syms on unstripped products without dSYMs,
1240 # but doing so isn't logical and won't happen in practice. 1230 # but doing so isn't logical and won't happen in practice.
1241 action_foreach("chrome_dump_syms") { 1231 action_foreach("chrome_dump_syms") {
1242 script = "//build/redirect_stdout.py" 1232 script = "//build/redirect_stdout.py"
1243 1233
1244 sources = _chrome_symbols_sources 1234 sources = _chrome_symbols_sources
1245 1235
1246 outputs = [ 1236 outputs = [
1247 "$root_out_dir/{{source_file_part}}-$chrome_version_full.breakpad", 1237 "$root_out_dir/{{source_file_part}}-$chrome_version_full.breakpad",
1248 ] 1238 ]
1249 1239
1250 # Use an absolute path to dump_syms in case a user has it in their path. 1240 # Use an absolute path to dump_syms in case a user has it in their path.
1251 args = rebase_path(outputs, root_out_dir) + [ 1241 args = rebase_path(outputs, root_out_dir) + [
1252 rebase_path("$root_out_dir/dump_syms"), 1242 rebase_path("$root_out_dir/dump_syms"),
1253 "-g", 1243 "-g",
1254 rebase_path( 1244 rebase_path(
1255 "$root_out_dir/{{source_name_part}}.dSYM/Contents/Resources/D WARF/{{source_name_part}}", 1245 "$root_out_dir/{{source_name_part}}.dSYM/Contents/Resources/D WARF/{{source_name_part}}",
1256 root_out_dir), 1246 root_out_dir),
1257 "{{source}}", 1247 "{{source}}",
1258 ] 1248 ]
1259 1249
1260 deps = [ 1250 deps = [
1261 ":chrome_app", 1251 ":chrome_app",
1262 ":chrome_framework", 1252 ":chrome_framework",
1263 ":chrome_helper_app", 1253 ":chrome_helper_app",
1264 "//breakpad:dump_syms", 1254 "//breakpad:dump_syms",
1255 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service" ,
1265 "//third_party/crashpad/crashpad/handler:crashpad_handler", 1256 "//third_party/crashpad/crashpad/handler:crashpad_handler",
1266 ] 1257 ]
1267
1268 if (enable_xpc_notifications) {
1269 deps += [ "//chrome/browser/ui/cocoa/notifications:alert_notification_xp c_service" ]
1270 }
1271 } 1258 }
1272 1259
1273 action("chrome_dsym_archive") { 1260 action("chrome_dsym_archive") {
1274 script = "//chrome/tools/build/mac/archive_symbols.py" 1261 script = "//chrome/tools/build/mac/archive_symbols.py"
1275 1262
1276 # These are the dSYMs that will be archived. The sources list must be 1263 # These are the dSYMs that will be archived. The sources list must be
1277 # the target outputs that correspond to the dSYMs (since a dSYM is a 1264 # the target outputs that correspond to the dSYMs (since a dSYM is a
1278 # directory it cannot be listed as a source file). The targets that 1265 # directory it cannot be listed as a source file). The targets that
1279 # generate both the dSYM and binary image are listed in deps. 1266 # generate both the dSYM and binary image are listed in deps.
1280 _dsyms = [ 1267 _dsyms = [
1268 "$root_out_dir/AlertNotificationService.dSYM",
1281 "$root_out_dir/$chrome_framework_name.dSYM", 1269 "$root_out_dir/$chrome_framework_name.dSYM",
1282 "$root_out_dir/$chrome_helper_name.dSYM", 1270 "$root_out_dir/$chrome_helper_name.dSYM",
1283 "$root_out_dir/$chrome_product_full_name.dSYM", 1271 "$root_out_dir/$chrome_product_full_name.dSYM",
1284 "$root_out_dir/crashpad_handler.dSYM", 1272 "$root_out_dir/crashpad_handler.dSYM",
1285 ] 1273 ]
1286 1274
1287 if (enable_xpc_notifications) {
1288 _dsyms += [ "$root_out_dir/AlertNotificationService.dSYM" ]
1289 }
1290
1291 sources = _chrome_symbols_sources 1275 sources = _chrome_symbols_sources
1292 1276
1293 _output = "$root_out_dir/$chrome_product_full_name.dSYM.tar.bz2" 1277 _output = "$root_out_dir/$chrome_product_full_name.dSYM.tar.bz2"
1294 1278
1295 outputs = [ 1279 outputs = [
1296 _output, 1280 _output,
1297 ] 1281 ]
1298 1282
1299 args = [ rebase_path(_output, root_out_dir) ] + 1283 args = [ rebase_path(_output, root_out_dir) ] +
1300 rebase_path(_dsyms, root_out_dir) 1284 rebase_path(_dsyms, root_out_dir)
1301 1285
1302 deps = [ 1286 deps = [
1303 ":chrome_app", 1287 ":chrome_app",
1304 ":chrome_framework", 1288 ":chrome_framework",
1305 ":chrome_helper_app", 1289 ":chrome_helper_app",
1290 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service" ,
1306 "//third_party/crashpad/crashpad/handler:crashpad_handler", 1291 "//third_party/crashpad/crashpad/handler:crashpad_handler",
1307 ] 1292 ]
1308
1309 if (enable_xpc_notifications) {
1310 deps += [ "//chrome/browser/ui/cocoa/notifications:alert_notification_xp c_service" ]
1311 }
1312 } 1293 }
1313 } else { 1294 } else {
1314 group("chrome_dump_syms") { 1295 group("chrome_dump_syms") {
1315 } 1296 }
1316 group("chrome_dsym_archive") { 1297 group("chrome_dsym_archive") {
1317 } 1298 }
1318 } 1299 }
1319 } 1300 }
1320 1301
1321 group("browser_dependencies") { 1302 group("browser_dependencies") {
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1709 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1729 "//chrome/tools/build/linux/chrome-wrapper", 1710 "//chrome/tools/build/linux/chrome-wrapper",
1730 "//third_party/xdg-utils/scripts/xdg-mime", 1711 "//third_party/xdg-utils/scripts/xdg-mime",
1731 "//third_party/xdg-utils/scripts/xdg-settings", 1712 "//third_party/xdg-utils/scripts/xdg-settings",
1732 ] 1713 ]
1733 outputs = [ 1714 outputs = [
1734 "$root_out_dir/{{source_file_part}}", 1715 "$root_out_dir/{{source_file_part}}",
1735 ] 1716 ]
1736 } 1717 }
1737 } 1718 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | chrome/browser/notifications/notification_platform_bridge_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698