| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 sources = [ | 449 sources = [ |
| 449 "app/chrome_exe_main_mac.c", | 450 "app/chrome_exe_main_mac.c", |
| 450 ] | 451 ] |
| 451 | 452 |
| 452 deps = [ | 453 deps = [ |
| 453 ":chrome_app_strings_bundle_data", | 454 ":chrome_app_strings_bundle_data", |
| 454 ":chrome_resources", | 455 ":chrome_resources", |
| 455 ":chrome_versioned_bundle_data", | 456 ":chrome_versioned_bundle_data", |
| 456 "//chrome/common:version_header", | 457 "//chrome/common:version_header", |
| 457 ] | 458 ] |
| 459 |
| 460 # Remove the default strip configuration (which strips all symbols) so that |
| 461 # a saves file can be specified. |
| 462 if (enable_stripping) { |
| 463 remove_configs = [ "//build/config/mac:strip_all" ] |
| 464 |
| 465 ldflags = |
| 466 [ "-Wcrl,strip,-s," + rebase_path("app/app.saves", root_build_dir) ] |
| 467 } |
| 458 } | 468 } |
| 459 | 469 |
| 460 compiled_action("chrome_app_strings") { | 470 compiled_action("chrome_app_strings") { |
| 461 tool = "//chrome/tools/mac_helpers:infoplist_strings_tool" | 471 tool = "//chrome/tools/mac_helpers:infoplist_strings_tool" |
| 462 | 472 |
| 463 inputs = [ | 473 inputs = [ |
| 464 chrome_version_file, | 474 chrome_version_file, |
| 465 ] | 475 ] |
| 466 | 476 |
| 467 outputs = [] | 477 outputs = [] |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 deps = [ | 600 deps = [ |
| 591 "//chrome/common:version_header", | 601 "//chrome/common:version_header", |
| 592 ] | 602 ] |
| 593 | 603 |
| 594 ldflags = [ | 604 ldflags = [ |
| 595 # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Co
nents/MacOS/ | 605 # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Co
nents/MacOS/ |
| 596 # so set rpath up to the base. | 606 # so set rpath up to the base. |
| 597 "-rpath", | 607 "-rpath", |
| 598 "@loader_path/../../../../../../..", | 608 "@loader_path/../../../../../../..", |
| 599 ] | 609 ] |
| 610 |
| 611 # Remove the default strip configuration (which strips all symbols) so that |
| 612 # a saves file can be specified. |
| 613 if (enable_stripping) { |
| 614 remove_configs = [ "//build/config/mac:strip_all" ] |
| 615 |
| 616 ldflags += |
| 617 [ "-Wcrl,strip,-s," + rebase_path("app/app.saves", root_build_dir) ] |
| 618 } |
| 600 } | 619 } |
| 601 | 620 |
| 602 bundle_data("chrome_framework_locales") { | 621 bundle_data("chrome_framework_locales") { |
| 603 sources = [] | 622 sources = [] |
| 604 public_deps = [ | 623 public_deps = [ |
| 605 ":repack_locales_pack", | 624 ":repack_locales_pack", |
| 606 ] | 625 ] |
| 607 | 626 |
| 608 foreach(locale, locales_as_mac_outputs) { | 627 foreach(locale, locales_as_mac_outputs) { |
| 609 sources += [ "$root_gen_dir/repack/locales/$locale.pak" ] | 628 sources += [ "$root_gen_dir/repack/locales/$locale.pak" ] |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1586 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
| 1568 "//chrome/tools/build/linux/chrome-wrapper", | 1587 "//chrome/tools/build/linux/chrome-wrapper", |
| 1569 "//third_party/xdg-utils/scripts/xdg-mime", | 1588 "//third_party/xdg-utils/scripts/xdg-mime", |
| 1570 "//third_party/xdg-utils/scripts/xdg-settings", | 1589 "//third_party/xdg-utils/scripts/xdg-settings", |
| 1571 ] | 1590 ] |
| 1572 outputs = [ | 1591 outputs = [ |
| 1573 "$root_out_dir/{{source_file_part}}", | 1592 "$root_out_dir/{{source_file_part}}", |
| 1574 ] | 1593 ] |
| 1575 } | 1594 } |
| 1576 } | 1595 } |
| OLD | NEW |