| 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/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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 sources = [ | 419 sources = [ |
| 419 "app/chrome_exe_main_mac.c", | 420 "app/chrome_exe_main_mac.c", |
| 420 ] | 421 ] |
| 421 | 422 |
| 422 deps = [ | 423 deps = [ |
| 423 ":chrome_app_strings_bundle_data", | 424 ":chrome_app_strings_bundle_data", |
| 424 ":chrome_resources", | 425 ":chrome_resources", |
| 425 ":chrome_versioned_bundle_data", | 426 ":chrome_versioned_bundle_data", |
| 426 "//chrome/common:version_header", | 427 "//chrome/common:version_header", |
| 427 ] | 428 ] |
| 429 |
| 430 extra_configs = [ "//build/config/mac:dsym" ] |
| 431 |
| 432 if (enable_stripping) { |
| 433 ldflags = |
| 434 [ "-Wcrl,strip,-s," + rebase_path("app/app.saves", root_build_dir) ] |
| 435 } |
| 428 } | 436 } |
| 429 | 437 |
| 430 compiled_action("chrome_app_strings") { | 438 compiled_action("chrome_app_strings") { |
| 431 tool = "//chrome/tools/mac_helpers:infoplist_strings_tool" | 439 tool = "//chrome/tools/mac_helpers:infoplist_strings_tool" |
| 432 | 440 |
| 433 inputs = [ | 441 inputs = [ |
| 434 chrome_version_file, | 442 chrome_version_file, |
| 435 ] | 443 ] |
| 436 | 444 |
| 437 outputs = [] | 445 outputs = [] |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 deps = [ | 568 deps = [ |
| 561 "//chrome/common:version_header", | 569 "//chrome/common:version_header", |
| 562 ] | 570 ] |
| 563 | 571 |
| 564 ldflags = [ | 572 ldflags = [ |
| 565 # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Co
nents/MacOS/ | 573 # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Co
nents/MacOS/ |
| 566 # so set rpath up to the base. | 574 # so set rpath up to the base. |
| 567 "-rpath", | 575 "-rpath", |
| 568 "@loader_path/../../../../../../..", | 576 "@loader_path/../../../../../../..", |
| 569 ] | 577 ] |
| 578 |
| 579 extra_configs = [ "//build/config/mac:dsym" ] |
| 580 |
| 581 if (enable_stripping) { |
| 582 ldflags += |
| 583 [ "-Wcrl,strip,-s," + rebase_path("app/app.saves", root_build_dir) ] |
| 584 } |
| 570 } | 585 } |
| 571 | 586 |
| 572 bundle_data("chrome_framework_locales") { | 587 bundle_data("chrome_framework_locales") { |
| 573 sources = [] | 588 sources = [] |
| 574 public_deps = [ | 589 public_deps = [ |
| 575 ":repack_locales_pack", | 590 ":repack_locales_pack", |
| 576 ] | 591 ] |
| 577 | 592 |
| 578 foreach(locale, locales_as_mac_outputs) { | 593 foreach(locale, locales_as_mac_outputs) { |
| 579 sources += [ "$root_gen_dir/repack/locales/$locale.pak" ] | 594 sources += [ "$root_gen_dir/repack/locales/$locale.pak" ] |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 } | 801 } |
| 787 | 802 |
| 788 if (enable_package_mash_services) { | 803 if (enable_package_mash_services) { |
| 789 deps += [ "//chrome/app/mash" ] | 804 deps += [ "//chrome/app/mash" ] |
| 790 } | 805 } |
| 791 } | 806 } |
| 792 | 807 |
| 793 mac_framework_bundle("chrome_framework") { | 808 mac_framework_bundle("chrome_framework") { |
| 794 output_name = chrome_framework_name | 809 output_name = chrome_framework_name |
| 795 | 810 |
| 796 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 811 configs += [ |
| 812 "//build/config/compiler:wexit_time_destructors", |
| 813 "//build/config/mac:dsym", |
| 814 "//build/config/mac:strip_all", |
| 815 ] |
| 797 | 816 |
| 798 info_plist_target = ":chrome_framework_plist" | 817 info_plist_target = ":chrome_framework_plist" |
| 799 extra_substitutions = [ | 818 extra_substitutions = [ |
| 800 "CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id", | 819 "CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id", |
| 801 "CHROMIUM_SHORT_NAME=$chrome_product_short_name", | 820 "CHROMIUM_SHORT_NAME=$chrome_product_short_name", |
| 802 ] | 821 ] |
| 803 | 822 |
| 804 public_deps = [ | 823 public_deps = [ |
| 805 ":chrome_dll", | 824 ":chrome_dll", |
| 806 ] | 825 ] |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1551 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
| 1533 "//chrome/tools/build/linux/chrome-wrapper", | 1552 "//chrome/tools/build/linux/chrome-wrapper", |
| 1534 "//third_party/xdg-utils/scripts/xdg-mime", | 1553 "//third_party/xdg-utils/scripts/xdg-mime", |
| 1535 "//third_party/xdg-utils/scripts/xdg-settings", | 1554 "//third_party/xdg-utils/scripts/xdg-settings", |
| 1536 ] | 1555 ] |
| 1537 outputs = [ | 1556 outputs = [ |
| 1538 "$root_out_dir/{{source_file_part}}", | 1557 "$root_out_dir/{{source_file_part}}", |
| 1539 ] | 1558 ] |
| 1540 } | 1559 } |
| 1541 } | 1560 } |
| OLD | NEW |