OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 | 8 |
9 # Define the common dependencies that contain all the actual | 9 # Define the common dependencies that contain all the actual |
10 # Chromium functionality. This list gets pulled in below by | 10 # Chromium functionality. This list gets pulled in below by |
(...skipping 4678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4689 ['OS=="mac"', { | 4689 ['OS=="mac"', { |
4690 # The main browser executable's name is <(mac_product_name). | 4690 # The main browser executable's name is <(mac_product_name). |
4691 # Certain things will get confused if two modules in the | 4691 # Certain things will get confused if two modules in the |
4692 # executable share the same name, so append " Framework" to the | 4692 # executable share the same name, so append " Framework" to the |
4693 # product_name used for the framework. This will result in | 4693 # product_name used for the framework. This will result in |
4694 # a name like "Chromium Framework.framework". | 4694 # a name like "Chromium Framework.framework". |
4695 'product_name': '<(mac_product_name) Framework', | 4695 'product_name': '<(mac_product_name) Framework', |
4696 'mac_bundle': 1, | 4696 'mac_bundle': 1, |
4697 'xcode_settings': { | 4697 'xcode_settings': { |
4698 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Frameworks', | 4698 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Frameworks', |
| 4699 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', |
| 4700 'INFOPLIST_FILE': 'app/framework-Info.plist', |
4699 }, | 4701 }, |
4700 'sources': [ | 4702 'sources': [ |
4701 'app/chrome_dll_main.cc', | 4703 'app/chrome_dll_main.cc', |
4702 'app/chrome_dll_resource.h', | 4704 'app/chrome_dll_resource.h', |
4703 'app/chrome_exe_main.mm', | 4705 'app/chrome_exe_main.mm', |
4704 'app/keystone_glue.h', | 4706 'app/keystone_glue.h', |
4705 'app/keystone_glue.m', | 4707 'app/keystone_glue.m', |
4706 ], | 4708 ], |
| 4709 # TODO(mark): Come up with a fancier way to do this. It should |
| 4710 # only be necessary to list framework-Info.plist once, not the |
| 4711 # three times it is listed here. |
| 4712 'mac_bundle_resources': [ |
| 4713 'app/framework-Info.plist', |
| 4714 ], |
| 4715 'mac_bundle_resources!': [ |
| 4716 'app/framework-Info.plist', |
| 4717 ], |
4707 'dependencies': [ | 4718 'dependencies': [ |
4708 '../build/util/support/support.gyp:*', | 4719 '../build/util/support/support.gyp:*', |
4709 ], | 4720 ], |
4710 | |
4711 # For now, don't put any resources into the framework. Exclude | 4721 # For now, don't put any resources into the framework. Exclude |
4712 # them all and push them into the bundle resources of the sole | 4722 # them all and push them into the bundle resources of the sole |
4713 # app bundle, the only dependent of this target. | 4723 # app bundle, the only dependent of this target. |
4714 # TODO(mark): Fix. | 4724 # TODO(mark): Fix. |
4715 'mac_bundle_resources/': [ | 4725 'mac_bundle_resources/': [ |
4716 ['exclude', '.*'], | 4726 ['exclude', '.*'], |
4717 ], | 4727 ], |
4718 'direct_dependent_settings': { | 4728 'direct_dependent_settings': { |
4719 'mac_bundle_resources': [ | 4729 'mac_bundle_resources': [ |
4720 '../third_party/WebKit/WebCore/Resources/aliasCursor.png', | 4730 '../third_party/WebKit/WebCore/Resources/aliasCursor.png', |
(...skipping 20 matching lines...) Expand all Loading... |
4741 '../third_party/WebKit/WebCore/Resources/southResizeCursor.png
', | 4751 '../third_party/WebKit/WebCore/Resources/southResizeCursor.png
', |
4742 '../third_party/WebKit/WebCore/Resources/southWestResizeCursor
.png', | 4752 '../third_party/WebKit/WebCore/Resources/southWestResizeCursor
.png', |
4743 '../third_party/WebKit/WebCore/Resources/verticalTextCursor.pn
g', | 4753 '../third_party/WebKit/WebCore/Resources/verticalTextCursor.pn
g', |
4744 '../third_party/WebKit/WebCore/Resources/waitCursor.png', | 4754 '../third_party/WebKit/WebCore/Resources/waitCursor.png', |
4745 '../third_party/WebKit/WebCore/Resources/westResizeCursor.png'
, | 4755 '../third_party/WebKit/WebCore/Resources/westResizeCursor.png'
, |
4746 '../third_party/WebKit/WebCore/Resources/zoomInCursor.png', | 4756 '../third_party/WebKit/WebCore/Resources/zoomInCursor.png', |
4747 '../third_party/WebKit/WebCore/Resources/zoomOutCursor.png', | 4757 '../third_party/WebKit/WebCore/Resources/zoomOutCursor.png', |
4748 'renderer/renderer.sb', | 4758 'renderer/renderer.sb', |
4749 ], | 4759 ], |
4750 }, | 4760 }, |
| 4761 'postbuilds': [ |
| 4762 { |
| 4763 # Modify the Info.plist as needed. The script explains why |
| 4764 # this is needed. This is also done in the chrome target. |
| 4765 # The framework does not need the breakpad, keystone, or |
| 4766 # subversion keys as those are only needed on the main |
| 4767 # or helper app. |
| 4768 'postbuild_name': 'Tweak Info.plist', |
| 4769 'action': ['<(DEPTH)/build/mac/tweak_app_infoplist', |
| 4770 '-b0', |
| 4771 '-k0', |
| 4772 '-s0', |
| 4773 '<(branding)'], |
| 4774 }, |
| 4775 ], |
4751 | 4776 |
4752 'conditions': [ | 4777 'conditions': [ |
4753 ['mac_breakpad==1', { | 4778 ['mac_breakpad==1', { |
4754 'variables': { | 4779 'variables': { |
4755 # A real .dSYM is needed for dump_syms to operate on. | 4780 # A real .dSYM is needed for dump_syms to operate on. |
4756 'mac_real_dsym': 1, | 4781 'mac_real_dsym': 1, |
4757 }, | 4782 }, |
4758 'sources': [ | 4783 'sources': [ |
4759 'app/breakpad_mac.mm', | 4784 'app/breakpad_mac.mm', |
4760 'app/breakpad_mac.h', | 4785 'app/breakpad_mac.h', |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4792 # (browser app) target. All it does is jump to chrome_dll's | 4817 # (browser app) target. All it does is jump to chrome_dll's |
4793 # ChromeMain. This is appropriate for helper processes too, | 4818 # ChromeMain. This is appropriate for helper processes too, |
4794 # because the logic to discriminate between process types at run | 4819 # because the logic to discriminate between process types at run |
4795 # time is actually directed by the --type command line argument | 4820 # time is actually directed by the --type command line argument |
4796 # processed by ChromeMain. Sharing chrome_exe_main.mm with the | 4821 # processed by ChromeMain. Sharing chrome_exe_main.mm with the |
4797 # browser app will suffice for now. | 4822 # browser app will suffice for now. |
4798 'app/chrome_exe_main.mm', | 4823 'app/chrome_exe_main.mm', |
4799 'app/helper-Info.plist', | 4824 'app/helper-Info.plist', |
4800 ], | 4825 ], |
4801 # TODO(mark): Come up with a fancier way to do this. It should only | 4826 # TODO(mark): Come up with a fancier way to do this. It should only |
4802 # be necessary to list app-Info.plist once, not the three times it is | 4827 # be necessary to list helper-Info.plist once, not the three times it |
4803 # listed here. | 4828 # is listed here. |
4804 'mac_bundle_resources!': [ | 4829 'mac_bundle_resources!': [ |
4805 'app/helper-Info.plist', | 4830 'app/helper-Info.plist', |
4806 ], | 4831 ], |
4807 # TODO(mark): For now, don't put any resources into this app. Its | 4832 # TODO(mark): For now, don't put any resources into this app. Its |
4808 # resources directory will be a symbolic link to the browser app's | 4833 # resources directory will be a symbolic link to the browser app's |
4809 # resources directory. | 4834 # resources directory. |
4810 'mac_bundle_resources/': [ | 4835 'mac_bundle_resources/': [ |
4811 ['exclude', '.*'], | 4836 ['exclude', '.*'], |
4812 ], | 4837 ], |
4813 'xcode_settings': { | 4838 'xcode_settings': { |
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5874 # Use outputs of this action as inputs for the main target build. | 5899 # Use outputs of this action as inputs for the main target build. |
5875 # Seems as a misnomer but makes this happy on Linux (scons). | 5900 # Seems as a misnomer but makes this happy on Linux (scons). |
5876 'process_outputs_as_sources': 1, | 5901 'process_outputs_as_sources': 1, |
5877 }, | 5902 }, |
5878 ], # 'actions' | 5903 ], # 'actions' |
5879 }, | 5904 }, |
5880 ] | 5905 ] |
5881 }], | 5906 }], |
5882 ], # 'conditions' | 5907 ], # 'conditions' |
5883 } | 5908 } |
OLD | NEW |