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

Side by Side Diff: chrome/BUILD.gn

Issue 1999513002: [Mac/GN] Implement dSYM generation and stripping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Global configuration Created 4 years, 6 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 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/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")
11 import("//build/config/ui.gni") 11 import("//build/config/ui.gni")
12 import("//build/config/win/console_app.gni") 12 import("//build/config/win/console_app.gni")
13 import("//build/config/win/manifest.gni") 13 import("//build/config/win/manifest.gni")
14 import("//chrome/chrome_repack_locales.gni") 14 import("//chrome/chrome_repack_locales.gni")
15 import("//chrome/common/features.gni") 15 import("//chrome/common/features.gni")
16 import("//chrome/version.gni") 16 import("//chrome/version.gni")
17 import("//ui/base/ui_features.gni") 17 import("//ui/base/ui_features.gni")
18 18
19 if (is_android) { 19 if (is_android) {
20 import("//build/config/android/rules.gni") 20 import("//build/config/android/rules.gni")
21 } else if (is_mac) { 21 } else if (is_mac) {
22 import("//build/compiled_action.gni") 22 import("//build/compiled_action.gni")
23 import("//build/config/mac/rules.gni") 23 import("//build/config/mac/rules.gni")
24 import("//build/config/mac/symbols.gni")
24 import("//build/mac/tweak_info_plist.gni") 25 import("//build/mac/tweak_info_plist.gni")
25 import("//build/util/branding.gni") 26 import("//build/util/branding.gni")
26 import("//build/util/version.gni") 27 import("//build/util/version.gni")
27 import("//build_overrides/v8.gni") 28 import("//build_overrides/v8.gni")
28 } 29 }
29 30
30 if (is_win) { 31 if (is_win) {
31 action("reorder_imports") { 32 action("reorder_imports") {
32 script = "//build/win/reorder-imports.py" 33 script = "//build/win/reorder-imports.py"
33 34
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 sources = [ 420 sources = [
420 "app/chrome_exe_main_mac.c", 421 "app/chrome_exe_main_mac.c",
421 ] 422 ]
422 423
423 deps = [ 424 deps = [
424 ":chrome_app_strings_bundle_data", 425 ":chrome_app_strings_bundle_data",
425 ":chrome_resources", 426 ":chrome_resources",
426 ":chrome_versioned_bundle_data", 427 ":chrome_versioned_bundle_data",
427 "//chrome/common:version_header", 428 "//chrome/common:version_header",
428 ] 429 ]
430
431 if (enable_stripping) {
Dirk Pranke 2016/05/31 19:58:19 maybe add a comment explaining what this is doing
Robert Sesek 2016/06/01 20:21:05 Done.
432 remove_configs = [ "//build/config/mac:strip_all" ]
433
434 ldflags =
435 [ "-Wcrl,strip,-s," + rebase_path("app/app.saves", root_build_dir) ]
436 }
429 } 437 }
430 438
431 compiled_action("chrome_app_strings") { 439 compiled_action("chrome_app_strings") {
432 tool = "//chrome/tools/mac_helpers:infoplist_strings_tool" 440 tool = "//chrome/tools/mac_helpers:infoplist_strings_tool"
433 441
434 inputs = [ 442 inputs = [
435 chrome_version_file, 443 chrome_version_file,
436 ] 444 ]
437 445
438 outputs = [] 446 outputs = []
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 deps = [ 569 deps = [
562 "//chrome/common:version_header", 570 "//chrome/common:version_header",
563 ] 571 ]
564 572
565 ldflags = [ 573 ldflags = [
566 # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Co nents/MacOS/ 574 # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Co nents/MacOS/
567 # so set rpath up to the base. 575 # so set rpath up to the base.
568 "-rpath", 576 "-rpath",
569 "@loader_path/../../../../../../..", 577 "@loader_path/../../../../../../..",
570 ] 578 ]
579
580 if (enable_stripping) {
581 remove_configs = [ "//build/config/mac:strip_all" ]
582
583 ldflags +=
584 [ "-Wcrl,strip,-s," + rebase_path("app/app.saves", root_build_dir) ]
585 }
571 } 586 }
572 587
573 bundle_data("chrome_framework_locales") { 588 bundle_data("chrome_framework_locales") {
574 sources = [] 589 sources = []
575 public_deps = [ 590 public_deps = [
576 ":repack_locales_pack", 591 ":repack_locales_pack",
577 ] 592 ]
578 593
579 foreach(locale, locales_as_mac_outputs) { 594 foreach(locale, locales_as_mac_outputs) {
580 sources += [ "$root_gen_dir/repack/locales/$locale.pak" ] 595 sources += [ "$root_gen_dir/repack/locales/$locale.pak" ]
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1554 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1540 "//chrome/tools/build/linux/chrome-wrapper", 1555 "//chrome/tools/build/linux/chrome-wrapper",
1541 "//third_party/xdg-utils/scripts/xdg-mime", 1556 "//third_party/xdg-utils/scripts/xdg-mime",
1542 "//third_party/xdg-utils/scripts/xdg-settings", 1557 "//third_party/xdg-utils/scripts/xdg-settings",
1543 ] 1558 ]
1544 outputs = [ 1559 outputs = [
1545 "$root_out_dir/{{source_file_part}}", 1560 "$root_out_dir/{{source_file_part}}",
1546 ] 1561 ]
1547 } 1562 }
1548 } 1563 }
OLDNEW
« build/config/BUILDCONFIG.gn ('K') | « build/toolchain/mac/linker_driver.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698