| OLD | NEW |
| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/compiler/pgo/pgo.gni") | 8 import("//build/config/compiler/pgo/pgo.gni") |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//build/config/locales.gni") | 10 import("//build/config/locales.gni") |
| (...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 if (enable_dsyms) { | 1172 if (enable_dsyms) { |
| 1173 # This list must be updated with the two targets' deps list below, and | 1173 # This list must be updated with the two targets' deps list below, and |
| 1174 # the list of _dsyms in :chrome_dsym_archive. | 1174 # the list of _dsyms in :chrome_dsym_archive. |
| 1175 _chrome_symbols_sources = [ | 1175 _chrome_symbols_sources = [ |
| 1176 _framework_binary_path, | 1176 _framework_binary_path, |
| 1177 "$root_out_dir/$chrome_helper_name.app/Contents/MacOS/$chrome_helper_name"
, | 1177 "$root_out_dir/$chrome_helper_name.app/Contents/MacOS/$chrome_helper_name"
, |
| 1178 "$root_out_dir/$chrome_product_full_name.app/Contents/MacOS/$chrome_produc
t_full_name", | 1178 "$root_out_dir/$chrome_product_full_name.app/Contents/MacOS/$chrome_produc
t_full_name", |
| 1179 "$root_out_dir/crashpad_handler", | 1179 "$root_out_dir/crashpad_handler", |
| 1180 ] | 1180 ] |
| 1181 | 1181 |
| 1182 if (enable_xpc_notifications) { |
| 1183 _chrome_symbols_sources += [ "$root_out_dir/AlertNotificationService.xpc/C
ontents/MacOS/AlertNotificationService" ] |
| 1184 } |
| 1185 |
| 1182 # It is possible to run dump_syms on unstripped products without dSYMs, | 1186 # It is possible to run dump_syms on unstripped products without dSYMs, |
| 1183 # but doing so isn't logical and won't happen in practice. | 1187 # but doing so isn't logical and won't happen in practice. |
| 1184 action_foreach("chrome_dump_syms") { | 1188 action_foreach("chrome_dump_syms") { |
| 1185 script = "//build/redirect_stdout.py" | 1189 script = "//build/redirect_stdout.py" |
| 1186 | 1190 |
| 1187 sources = _chrome_symbols_sources | 1191 sources = _chrome_symbols_sources |
| 1188 | 1192 |
| 1189 outputs = [ | 1193 outputs = [ |
| 1190 "$root_out_dir/{{source_file_part}}-$chrome_version_full.breakpad", | 1194 "$root_out_dir/{{source_file_part}}-$chrome_version_full.breakpad", |
| 1191 ] | 1195 ] |
| 1192 | 1196 |
| 1193 # Use an absolute path to dump_syms in case a user has it in their path. | 1197 # Use an absolute path to dump_syms in case a user has it in their path. |
| 1194 args = rebase_path(outputs, root_out_dir) + [ | 1198 args = rebase_path(outputs, root_out_dir) + [ |
| 1195 rebase_path("$root_out_dir/dump_syms"), | 1199 rebase_path("$root_out_dir/dump_syms"), |
| 1196 "-g", | 1200 "-g", |
| 1197 rebase_path( | 1201 rebase_path( |
| 1198 "$root_out_dir/{{source_name_part}}.dSYM/Contents/Resources/D
WARF/{{source_name_part}}", | 1202 "$root_out_dir/{{source_name_part}}.dSYM/Contents/Resources/D
WARF/{{source_name_part}}", |
| 1199 root_out_dir), | 1203 root_out_dir), |
| 1200 "{{source}}", | 1204 "{{source}}", |
| 1201 ] | 1205 ] |
| 1202 | 1206 |
| 1203 deps = [ | 1207 deps = [ |
| 1204 ":chrome_app", | 1208 ":chrome_app", |
| 1205 ":chrome_framework", | 1209 ":chrome_framework", |
| 1206 ":chrome_helper_app", | 1210 ":chrome_helper_app", |
| 1207 "//breakpad:dump_syms", | 1211 "//breakpad:dump_syms", |
| 1208 "//third_party/crashpad/crashpad/handler:crashpad_handler", | 1212 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 1209 ] | 1213 ] |
| 1214 |
| 1215 if (enable_xpc_notifications) { |
| 1216 deps += [ "//chrome/browser/ui/cocoa/notifications:alert_notification_xp
c_service" ] |
| 1217 } |
| 1210 } | 1218 } |
| 1211 | 1219 |
| 1212 action("chrome_dsym_archive") { | 1220 action("chrome_dsym_archive") { |
| 1213 script = "//chrome/tools/build/mac/archive_symbols.py" | 1221 script = "//chrome/tools/build/mac/archive_symbols.py" |
| 1214 | 1222 |
| 1215 # These are the dSYMs that will be archived. The sources list must be | 1223 # These are the dSYMs that will be archived. The sources list must be |
| 1216 # the target outputs that correspond to the dSYMs (since a dSYM is a | 1224 # the target outputs that correspond to the dSYMs (since a dSYM is a |
| 1217 # directory it cannot be listed as a source file). The targets that | 1225 # directory it cannot be listed as a source file). The targets that |
| 1218 # generate both the dSYM and binary image are listed in deps. | 1226 # generate both the dSYM and binary image are listed in deps. |
| 1219 _dsyms = [ | 1227 _dsyms = [ |
| 1220 "$root_out_dir/$chrome_framework_name.dSYM", | 1228 "$root_out_dir/$chrome_framework_name.dSYM", |
| 1221 "$root_out_dir/$chrome_helper_name.dSYM", | 1229 "$root_out_dir/$chrome_helper_name.dSYM", |
| 1222 "$root_out_dir/$chrome_product_full_name.dSYM", | 1230 "$root_out_dir/$chrome_product_full_name.dSYM", |
| 1223 "$root_out_dir/crashpad_handler.dSYM", | 1231 "$root_out_dir/crashpad_handler.dSYM", |
| 1224 ] | 1232 ] |
| 1225 | 1233 |
| 1234 if (enable_xpc_notifications) { |
| 1235 _dsyms += [ "$root_out_dir/AlertNotificationService.dSYM" ] |
| 1236 } |
| 1237 |
| 1226 sources = _chrome_symbols_sources | 1238 sources = _chrome_symbols_sources |
| 1227 | 1239 |
| 1228 _output = "$root_out_dir/$chrome_product_full_name.dSYM.tar.bz2" | 1240 _output = "$root_out_dir/$chrome_product_full_name.dSYM.tar.bz2" |
| 1229 | 1241 |
| 1230 outputs = [ | 1242 outputs = [ |
| 1231 _output, | 1243 _output, |
| 1232 ] | 1244 ] |
| 1233 | 1245 |
| 1234 args = [ rebase_path(_output, root_out_dir) ] + | 1246 args = [ rebase_path(_output, root_out_dir) ] + |
| 1235 rebase_path(_dsyms, root_out_dir) | 1247 rebase_path(_dsyms, root_out_dir) |
| 1236 | 1248 |
| 1237 deps = [ | 1249 deps = [ |
| 1238 ":chrome_app", | 1250 ":chrome_app", |
| 1239 ":chrome_framework", | 1251 ":chrome_framework", |
| 1240 ":chrome_helper_app", | 1252 ":chrome_helper_app", |
| 1241 "//third_party/crashpad/crashpad/handler:crashpad_handler", | 1253 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 1242 ] | 1254 ] |
| 1255 |
| 1256 if (enable_xpc_notifications) { |
| 1257 deps += [ "//chrome/browser/ui/cocoa/notifications:alert_notification_xp
c_service" ] |
| 1258 } |
| 1243 } | 1259 } |
| 1244 } else { | 1260 } else { |
| 1245 group("chrome_dump_syms") { | 1261 group("chrome_dump_syms") { |
| 1246 } | 1262 } |
| 1247 group("chrome_dsym_archive") { | 1263 group("chrome_dsym_archive") { |
| 1248 } | 1264 } |
| 1249 } | 1265 } |
| 1250 } | 1266 } |
| 1251 | 1267 |
| 1252 group("browser_dependencies") { | 1268 group("browser_dependencies") { |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1674 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
| 1659 "//chrome/tools/build/linux/chrome-wrapper", | 1675 "//chrome/tools/build/linux/chrome-wrapper", |
| 1660 "//third_party/xdg-utils/scripts/xdg-mime", | 1676 "//third_party/xdg-utils/scripts/xdg-mime", |
| 1661 "//third_party/xdg-utils/scripts/xdg-settings", | 1677 "//third_party/xdg-utils/scripts/xdg-settings", |
| 1662 ] | 1678 ] |
| 1663 outputs = [ | 1679 outputs = [ |
| 1664 "$root_out_dir/{{source_file_part}}", | 1680 "$root_out_dir/{{source_file_part}}", |
| 1665 ] | 1681 ] |
| 1666 } | 1682 } |
| 1667 } | 1683 } |
| OLD | NEW |