 Chromium Code Reviews
 Chromium Code Reviews Issue 1961473003:
  [Mac/GN] Set up the component build.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1961473003:
  [Mac/GN] Set up the component build.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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/config/features.gni") | 5 import("//build/config/features.gni") | 
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") | 
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") | 
| 8 import("//build/config/win/console_app.gni") | 8 import("//build/config/win/console_app.gni") | 
| 9 import("//build/config/win/manifest.gni") | 9 import("//build/config/win/manifest.gni") | 
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") | 
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 614 ":content_shell_framework_resources", | 614 ":content_shell_framework_resources", | 
| 615 ":content_shell_framework_xibs", | 615 ":content_shell_framework_xibs", | 
| 616 ":content_shell_lib", | 616 ":content_shell_lib", | 
| 617 "//third_party/icu:icudata", | 617 "//third_party/icu:icudata", | 
| 618 ] | 618 ] | 
| 619 | 619 | 
| 620 if (enable_plugins) { | 620 if (enable_plugins) { | 
| 621 deps += [ ":content_shell_framework_plugins" ] | 621 deps += [ ":content_shell_framework_plugins" ] | 
| 622 } | 622 } | 
| 623 | 623 | 
| 624 ldflags = [ | 624 ldflags = [ "-Wl,-install_name,@executable_path/../Frameworks/$output_name.f ramework/$output_name" ] | 
| 625 "-install_name", | |
| 626 "@executable_path/../Frameworks/$output_name.framework/$output_name", | |
| 627 ] | |
| 628 | 625 | 
| 629 info_plist_target = ":content_shell_framework_plist" | 626 info_plist_target = ":content_shell_framework_plist" | 
| 630 } | 627 } | 
| 631 | 628 | 
| 632 tweak_info_plist("content_shell_helper_plist") { | 629 tweak_info_plist("content_shell_helper_plist") { | 
| 633 testonly = true | 630 testonly = true | 
| 634 info_plist = "app/helper-Info.plist" | 631 info_plist = "app/helper-Info.plist" | 
| 635 args = [ | 632 args = [ | 
| 636 "--breakpad=0", | 633 "--breakpad=0", | 
| 637 "--keystone=0", | 634 "--keystone=0", | 
| 638 "--scm=0", | 635 "--scm=0", | 
| 639 "--version", | 636 "--version", | 
| 640 content_shell_version, | 637 content_shell_version, | 
| 641 ] | 638 ] | 
| 642 } | 639 } | 
| 643 | 640 | 
| 644 mac_app_bundle("content_shell_helper_app") { | 641 mac_app_bundle("content_shell_helper_app") { | 
| 645 testonly = true | 642 testonly = true | 
| 646 output_name = content_shell_helper_name | 643 output_name = content_shell_helper_name | 
| 647 sources = [ | 644 sources = [ | 
| 648 "app/shell_main.cc", | 645 "app/shell_main.cc", | 
| 649 ] | 646 ] | 
| 650 deps = [ | 647 deps = [ | 
| 651 ":content_shell_framework+link", | 648 ":content_shell_framework+link", | 
| 652 ] | 649 ] | 
| 650 ldflags = [ | |
| 
Nico
2016/05/10 20:24:06
want to add the comment here too?
 
Robert Sesek
2016/05/10 21:32:43
Done.
 | |
| 651 "-rpath", | |
| 652 "@loader_path/../../../../../..", | |
| 653 ] | |
| 653 info_plist_target = ":content_shell_helper_plist" | 654 info_plist_target = ":content_shell_helper_plist" | 
| 654 } | 655 } | 
| 655 | 656 | 
| 656 # The install_name_tool can only operate in-place, rather than producing a | 657 # The install_name_tool can only operate in-place, rather than producing a | 
| 657 # unique output. Use the xcrun wrapper script to write a fake stamp output | 658 # unique output. Use the xcrun wrapper script to write a fake stamp output | 
| 658 # file. After :content_shell_helper_app has been built and bundled, this | 659 # file. After :content_shell_helper_app has been built and bundled, this | 
| 659 # will run, modifying the executable in the bundle and writing out the | 660 # will run, modifying the executable in the bundle and writing out the | 
| 660 # --stamp specified. This will change the mtime on the executable, but | 661 # --stamp specified. This will change the mtime on the executable, but | 
| 661 # because the stamp will also be updated, the | 662 # because the stamp will also be updated, the | 
| 662 # :content_shell_framework_bundle_data will re-copy the output. This only | 663 # :content_shell_framework_bundle_data will re-copy the output. This only | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 717 "{{bundle_resources_dir}}/{{source_file_part}}", | 718 "{{bundle_resources_dir}}/{{source_file_part}}", | 
| 718 ] | 719 ] | 
| 719 } | 720 } | 
| 720 } | 721 } | 
| 721 | 722 | 
| 722 mojom("mojo_bindings") { | 723 mojom("mojo_bindings") { | 
| 723 sources = [ | 724 sources = [ | 
| 724 "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom", | 725 "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom", | 
| 725 ] | 726 ] | 
| 726 } | 727 } | 
| OLD | NEW |