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

Side by Side Diff: chrome/chrome.gyp

Issue 171040: add the InfoPlist.strings generation based on GRD strings.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/tweak_mac_lproj_folders ('k') | chrome/common/chrome_paths_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3137 'files': ['../third_party/googlemac/Releases/Keystone/Keystone Registration.framework'], 3137 'files': ['../third_party/googlemac/Releases/Keystone/Keystone Registration.framework'],
3138 }, 3138 },
3139 ], 3139 ],
3140 }], # mac_keystone 3140 }], # mac_keystone
3141 ], 3141 ],
3142 'product_name': '<(mac_product_name)', 3142 'product_name': '<(mac_product_name)',
3143 'xcode_settings': { 3143 'xcode_settings': {
3144 # chrome/app/app-Info.plist has: 3144 # chrome/app/app-Info.plist has:
3145 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID 3145 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID
3146 # CFBundleName of CHROMIUM_SHORT_NAME 3146 # CFBundleName of CHROMIUM_SHORT_NAME
3147 # CFBundleSignature of CHROMIUM_CREATOR
3147 # Xcode then replaces these values with the branded values we set 3148 # Xcode then replaces these values with the branded values we set
3148 # as settings on the target. 3149 # as settings on the target.
3149 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', 3150 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
3150 'CHROMIUM_CREATOR': '<(mac_creator)', 3151 'CHROMIUM_CREATOR': '<(mac_creator)',
3151 'CHROMIUM_SHORT_NAME': '<(branding)', 3152 'CHROMIUM_SHORT_NAME': '<(branding)',
3152 }, 3153 },
3153 'mac_bundle_resources': [ 3154 'mac_bundle_resources': [
3154 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', 3155 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app',
3155 ], 3156 ],
3156 'dependencies': [ 3157 'dependencies': [
3157 'helper_app', 3158 'helper_app',
3159 'infoplist_strings_tool',
3158 # Bring in pdfsqueeze and run it on all pdfs 3160 # Bring in pdfsqueeze and run it on all pdfs
3159 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', 3161 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze',
3160 ], 3162 ],
3161 'rules': [ 3163 'rules': [
3162 { 3164 {
3163 'rule_name': 'pdfsqueeze', 3165 'rule_name': 'pdfsqueeze',
3164 'extension': 'pdf', 3166 'extension': 'pdf',
3165 'inputs': [ 3167 'inputs': [
3166 '<(PRODUCT_DIR)/pdfsqueeze', 3168 '<(PRODUCT_DIR)/pdfsqueeze',
3167 ], 3169 ],
3168 'outputs': [ 3170 'outputs': [
3169 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', 3171 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf',
3170 ], 3172 ],
3171 'action': ['<(PRODUCT_DIR)/pdfsqueeze', '<(RULE_INPUT_PATH)', '<@( _outputs)'], 3173 'action': ['<(PRODUCT_DIR)/pdfsqueeze', '<(RULE_INPUT_PATH)', '<@( _outputs)'],
3172 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)', 3174 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
3173 }, 3175 },
3174 ], 3176 ],
3177 'actions': [
3178 {
3179 # Generate the InfoPlist.strings file
3180 'action_name': 'Generating InfoPlist.strings files',
3181 'variables': {
3182 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool',
3183 'version_file_path': 'VERSION',
3184 # Unique dir to write to so the [lang].lproj/InfoPlist.strings
3185 # for the main app and the helper app don't name collide.
3186 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings',
3187 },
3188 'conditions': [
3189 [ 'branding == "Chrome"', {
3190 'variables': {
3191 'branding_name': 'google_chrome_strings',
3192 },
3193 }, { # else branding!="Chrome"
3194 'variables': {
3195 'branding_name': 'chromium_strings',
3196 },
3197 }],
3198 ],
3199 'inputs': [
3200 '<(tool_path)',
3201 '<(version_file_path)',
3202 # TODO: remove this helper when we have loops in GYP
3203 '>!@(tools/build/apply_locales.py \'<(grit_out_dir)/<(branding_n ame)_ZZLOCALE.pak\' <(locales))',
3204 ],
3205 'outputs': [
3206 # TODO: remove this helper when we have loops in GYP
3207 '>!@(tools/build/apply_locales.py \'<(output_path)/ZZLOCALE.lpro j/InfoPlist.strings\' <(locales))',
3208 ],
3209 'action': [
3210 '<(tool_path)',
3211 '-b', '<(branding_name)',
3212 '-v', '<(version_file_path)',
3213 '-g', '<(grit_out_dir)',
3214 '-o', '<(output_path)',
3215 '-t', 'main',
3216 '<@(locales)',
3217 ],
3218 'message': 'Generating the language InfoPlist.strings files',
3219 'process_outputs_as_mac_bundle_resources': 1,
3220 },
3221 ],
3175 'copies': [ 3222 'copies': [
3176 { 3223 {
3177 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Fr ameworks', 3224 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Fr ameworks',
3178 'files': ['<(PRODUCT_DIR)/<(mac_product_name) Framework.framework' ], 3225 'files': ['<(PRODUCT_DIR)/<(mac_product_name) Framework.framework' ],
3179 }, 3226 },
3180 { 3227 {
3181 # Copy web inspector resources to the Contents/Resources folder. 3228 # Copy web inspector resources to the Contents/Resources folder.
3182 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Re sources', 3229 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Re sources',
3183 'files': ['<(PRODUCT_DIR)/resources/inspector/'], 3230 'files': ['<(PRODUCT_DIR)/resources/inspector/'],
3184 }, 3231 },
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
4685 ['OS=="mac"', 4732 ['OS=="mac"',
4686 { 'targets': [ 4733 { 'targets': [
4687 { 4734 {
4688 'target_name': 'helper_app', 4735 'target_name': 'helper_app',
4689 'type': 'executable', 4736 'type': 'executable',
4690 'product_name': '<(mac_product_name) Helper', 4737 'product_name': '<(mac_product_name) Helper',
4691 'mac_bundle': 1, 4738 'mac_bundle': 1,
4692 'dependencies': [ 4739 'dependencies': [
4693 'chrome_dll', 4740 'chrome_dll',
4694 'interpose_dependency_shim', 4741 'interpose_dependency_shim',
4742 'infoplist_strings_tool',
4695 ], 4743 ],
4696 'sources': [ 4744 'sources': [
4697 # chrome_exe_main.mm's main() is the entry point for the "chrome" 4745 # chrome_exe_main.mm's main() is the entry point for the "chrome"
4698 # (browser app) target. All it does is jump to chrome_dll's 4746 # (browser app) target. All it does is jump to chrome_dll's
4699 # ChromeMain. This is appropriate for helper processes too, 4747 # ChromeMain. This is appropriate for helper processes too,
4700 # because the logic to discriminate between process types at run 4748 # because the logic to discriminate between process types at run
4701 # time is actually directed by the --type command line argument 4749 # time is actually directed by the --type command line argument
4702 # processed by ChromeMain. Sharing chrome_exe_main.mm with the 4750 # processed by ChromeMain. Sharing chrome_exe_main.mm with the
4703 # browser app will suffice for now. 4751 # browser app will suffice for now.
4704 'app/chrome_exe_main.mm', 4752 'app/chrome_exe_main.mm',
(...skipping 17 matching lines...) Expand all
4722 'INFOPLIST_FILE': 'app/helper-Info.plist', 4770 'INFOPLIST_FILE': 'app/helper-Info.plist',
4723 }, 4771 },
4724 'copies': [ 4772 'copies': [
4725 { 4773 {
4726 'destination': '<(PRODUCT_DIR)/<(mac_product_name) Helper.app/Cont ents/MacOS', 4774 'destination': '<(PRODUCT_DIR)/<(mac_product_name) Helper.app/Cont ents/MacOS',
4727 'files': [ 4775 'files': [
4728 '<(PRODUCT_DIR)/plugin_carbon_interpose.dylib', 4776 '<(PRODUCT_DIR)/plugin_carbon_interpose.dylib',
4729 ], 4777 ],
4730 }, 4778 },
4731 ], 4779 ],
4780 'actions': [
4781 {
4782 # TODO: remove this action and the script it runs after 09/01/09
4783 'action_name': 'Remove old resources symlink',
4784 'inputs': [],
4785 'outputs': [],
4786 'action': [ 'app/nuke_mac_resources_link' ],
4787 },
4788 {
4789 # Generate the InfoPlist.strings file
4790 'action_name': 'Generating InfoPlist.strings files',
4791 'variables': {
4792 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool',
4793 'version_file_path': 'VERSION',
4794 # Unique dir to write to so the [lang].lproj/InfoPlist.strings
4795 # for the main app and the helper app don't name collide.
4796 'output_path': '<(INTERMEDIATE_DIR)/helper_infoplist_strings',
4797 },
4798 'conditions': [
4799 [ 'branding == "Chrome"', {
4800 'variables': {
4801 'branding_name': 'google_chrome_strings',
4802 },
4803 }, { # else branding!="Chrome"
4804 'variables': {
4805 'branding_name': 'chromium_strings',
4806 },
4807 }],
4808 ],
4809 'inputs': [
4810 '<(tool_path)',
4811 '<(version_file_path)',
4812 # TODO: remove this helper when we have loops in GYP
4813 '>!@(tools/build/apply_locales.py \'<(grit_out_dir)/<(branding_n ame)_ZZLOCALE.pak\' <(locales))',
4814 ],
4815 'outputs': [
4816 # TODO: remove this helper when we have loops in GYP
4817 '>!@(tools/build/apply_locales.py \'<(output_path)/ZZLOCALE.lpro j/InfoPlist.strings\' <(locales))',
4818 ],
4819 'action': [
4820 '<(tool_path)',
4821 '-b', '<(branding_name)',
4822 '-v', '<(version_file_path)',
4823 '-g', '<(grit_out_dir)',
4824 '-o', '<(output_path)',
4825 '-t', 'helper',
4826 '<@(locales)',
4827 ],
4828 'message': 'Generating the language InfoPlist.strings files',
4829 'process_outputs_as_mac_bundle_resources': 1,
4830 },
4831 ],
4732 'postbuilds': [ 4832 'postbuilds': [
4733 { 4833 {
4734 'postbuild_name': 'Make Symbolic Links', 4834 'postbuild_name': 'Make Symbolic Links',
4735 'action': ['app/make_mac_app_symlinks'], 4835 'action': ['app/make_mac_app_symlinks'],
4736 }, 4836 },
4737 { 4837 {
4738 # Modify the Info.plist as needed. The script explains why this 4838 # Modify the Info.plist as needed. The script explains why this
4739 # is needed. This is also done in the chrome target. In 4839 # is needed. This is also done in the chrome target. In
4740 # this case, -k0 is always used because Keystone never runs 4840 # this case, -k0 is always used because Keystone never runs
4741 # within the helper app. -s0 is used to avoid placing Subversion 4841 # within the helper app. -s0 is used to avoid placing Subversion
4742 # data in the helper app's Info.plist. It will be present in 4842 # data in the helper app's Info.plist. It will be present in
4743 # the main app's Info.plist, which is sufficient. 4843 # the main app's Info.plist, which is sufficient.
4744 'postbuild_name': 'Tweak Info.plist', 4844 'postbuild_name': 'Tweak Info.plist',
4745 'action': ['<(DEPTH)/build/mac/tweak_app_infoplist', 4845 'action': ['<(DEPTH)/build/mac/tweak_app_infoplist',
4746 '-b<(mac_breakpad)', 4846 '-b<(mac_breakpad)',
4747 '-k0', 4847 '-k0',
4748 '-s0', 4848 '-s0',
4749 '<(branding)'], 4849 '<(branding)'],
4750 }, 4850 },
4851 {
4852 'postbuild_name': 'Tweak Mac lproj folders',
4853 'action': ['app/tweak_mac_lproj_folders'],
4854 },
4751 ], 4855 ],
4752 'conditions': [ 4856 'conditions': [
4753 ['mac_breakpad==1', { 4857 ['mac_breakpad==1', {
4754 'variables': { 4858 'variables': {
4755 # A real .dSYM is needed for dump_syms to operate on. 4859 # A real .dSYM is needed for dump_syms to operate on.
4756 'mac_real_dsym': 1, 4860 'mac_real_dsym': 1,
4757 }, 4861 },
4758 }], 4862 }],
4759 ], 4863 ],
4760 }, 4864 },
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
4824 ], 4928 ],
4825 'link_settings': { 4929 'link_settings': {
4826 'libraries': [ 4930 'libraries': [
4827 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 4931 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
4828 ], 4932 ],
4829 }, 4933 },
4830 'xcode_settings': { 4934 'xcode_settings': {
4831 'DYLIB_INSTALL_NAME_BASE': '@executable_path', 4935 'DYLIB_INSTALL_NAME_BASE': '@executable_path',
4832 }, 4936 },
4833 }, 4937 },
4834 ] 4938 {
4939 'target_name': 'infoplist_strings_tool',
4940 'type': 'executable',
4941 'dependencies': [
4942 'chrome_strings',
4943 '../base/base.gyp:base',
4944 ],
4945 'include_dirs': [
4946 '<(grit_out_dir)',
4947 ],
4948 'sources': [
4949 'tools/mac_helpers/infoplist_strings_util.mm',
4950 ],
4951 },
4952 ], # targets
4835 }, { # else: OS != "mac" 4953 }, { # else: OS != "mac"
4836 'targets': [ 4954 'targets': [
4837 { 4955 {
4838 'target_name': 'convert_dict', 4956 'target_name': 'convert_dict',
4839 'type': 'executable', 4957 'type': 'executable',
4840 'msvs_guid': '42ECD5EC-722F-41DE-B6B8-83764C8016DF', 4958 'msvs_guid': '42ECD5EC-722F-41DE-B6B8-83764C8016DF',
4841 'dependencies': [ 4959 'dependencies': [
4842 '../base/base.gyp:base', 4960 '../base/base.gyp:base',
4843 'convert_dict_lib', 4961 'convert_dict_lib',
4844 '../third_party/hunspell/hunspell.gyp:hunspell', 4962 '../third_party/hunspell/hunspell.gyp:hunspell',
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
5132 'app/keystone_glue.h', 5250 'app/keystone_glue.h',
5133 'app/keystone_glue.m', 5251 'app/keystone_glue.m',
5134 ], 5252 ],
5135 # TODO(mark): We really want this for all non-static library targe ts, 5253 # TODO(mark): We really want this for all non-static library targe ts,
5136 # but when we tried to pull it up to the common.gypi level, it bro ke 5254 # but when we tried to pull it up to the common.gypi level, it bro ke
5137 # other things like the ui, startup, and page_cycler tests. *shrug * 5255 # other things like the ui, startup, and page_cycler tests. *shrug *
5138 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 5256 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
5139 }], 5257 }],
5140 ], 5258 ],
5141 }, 5259 },
5142 ] 5260 ],
5143 }], 5261 }],
5144 ['OS=="win"', 5262 ['OS=="win"',
5145 { 'targets': [ 5263 { 'targets': [
5146 { 5264 {
5147 # TODO(sgk): remove this when we change the buildbots to 5265 # TODO(sgk): remove this when we change the buildbots to
5148 # use the generated build\all.sln file to build the world. 5266 # use the generated build\all.sln file to build the world.
5149 'target_name': 'pull_in_all', 5267 'target_name': 'pull_in_all',
5150 'type': 'none', 5268 'type': 'none',
5151 'dependencies': [ 5269 'dependencies': [
5152 'installer/mini_installer.gyp:*', 5270 'installer/mini_installer.gyp:*',
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
5705 # Use outputs of this action as inputs for the main target build. 5823 # Use outputs of this action as inputs for the main target build.
5706 # Seems as a misnomer but makes this happy on Linux (scons). 5824 # Seems as a misnomer but makes this happy on Linux (scons).
5707 'process_outputs_as_sources': 1, 5825 'process_outputs_as_sources': 1,
5708 }, 5826 },
5709 ], # 'actions' 5827 ], # 'actions'
5710 }, 5828 },
5711 ] 5829 ]
5712 }], 5830 }],
5713 ], # 'conditions' 5831 ], # 'conditions'
5714 } 5832 }
OLDNEW
« no previous file with comments | « chrome/app/tweak_mac_lproj_folders ('k') | chrome/common/chrome_paths_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698