diff options
author | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-29 09:52:25 +0000 |
---|---|---|
committer | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-29 09:52:25 +0000 |
commit | 0b0609e9fb67d7897cd1ffc32077704576dd3c54 (patch) | |
tree | 6a19ebd3cd039884ed5dac8e67b1dfa4fa91c553 /chrome/chrome_exe.gypi | |
parent | 718effe55072dd78062ff6ef9d7caa8c9faeda81 (diff) | |
download | chromium_src-0b0609e9fb67d7897cd1ffc32077704576dd3c54.zip chromium_src-0b0609e9fb67d7897cd1ffc32077704576dd3c54.tar.gz chromium_src-0b0609e9fb67d7897cd1ffc32077704576dd3c54.tar.bz2 |
Revert 57812 - Add the new Mac manifest to the application bundle
Add the policy templates generated from chrome/app/policy_templates.json to the Mac application bundle. (The template generator for Mac is implemented in CL 3116027)
BUG=49316
TEST=add Chromium to the managed applications' list in the OSX Workgroup Manager, and see if it shows the manageable preferences
TBR=thomasvl@chromium.org
Review URL: http://codereview.chromium.org/3267003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_exe.gypi')
-rw-r--r-- | chrome/chrome_exe.gypi | 91 |
1 files changed, 25 insertions, 66 deletions
diff --git a/chrome/chrome_exe.gypi b/chrome/chrome_exe.gypi index 9532a4b..d4c774e 100644 --- a/chrome/chrome_exe.gypi +++ b/chrome/chrome_exe.gypi @@ -279,10 +279,6 @@ 'dependencies': [ 'helper_app', 'infoplist_strings_tool', - 'chrome_manifest_bundle', - ], - 'mac_bundle_resources': [ - '<(PRODUCT_DIR)/<(mac_bundle_id).manifest', ], 'actions': [ { @@ -327,6 +323,31 @@ 'message': 'Generating the language InfoPlist.strings files', 'process_outputs_as_mac_bundle_resources': 1, }, + { + # Massage the manifest and add it as a resource + 'action_name': 'Generate MCX manifest file', + 'variables': { + 'tool_path': 'tools/build/mac/copy_mcx_manifest.sh', + 'input_path': 'app/policy/mac/app-Manifest.plist', + 'output_path': '<(INTERMEDIATE_DIR)/<(mac_bundle_id).manifest', + }, + 'inputs': [ + '<(tool_path)', + '<(input_path)', + ], + 'outputs': [ + '<(output_path)', + ], + 'action': [ + '<(tool_path)', + '<(mac_product_name)', + '<(mac_bundle_id)', + '<(input_path)', + '<(output_path)', + ], + 'message': 'Generating the MCX policy manifest file', + 'process_outputs_as_mac_bundle_resources': 1, + }, ], 'copies': [ { @@ -490,67 +511,5 @@ }, ], }], - ['OS=="mac"', { - 'targets': [ - { - # This is the bundle of the manifest file of Chrome. - # It contains the manifest file and its string tables. - 'target_name': 'chrome_manifest_bundle', - 'type': 'loadable_module', - 'mac_bundle': 1, - 'product_extension': 'manifest', - 'product_name': '<(mac_bundle_id)', - 'dependencies': [ - # Provides app-Manifest.plist and its string tables: - 'policy_templates', - ], - 'actions': [ - { - 'action_name': 'Copy MCX manifest file to manifest bundle', - 'inputs': [ - '<(grit_out_dir)/app/policy/mac/app-Manifest.plist', - ], - 'outputs': [ - '<(INTERMEDIATE_DIR)/app_manifest/<(mac_bundle_id).manifest', - ], - 'action': [ - 'cp', - '<@(_inputs)', - '<@(_outputs)', - ], - 'message': - 'Copying the MCX policy manifest file to the manifest bundle', - 'process_outputs_as_mac_bundle_resources': 1, - }, - { - 'action_name': - 'Copy Localizable.strings files to manifest bundle', - 'variables': { - 'input_path': '<(grit_out_dir)/app/policy/mac/strings', - # Directory to collect the Localizable.strings files before - # they are copied to the bundle. - 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', - }, - 'inputs': [ - # TODO: remove this helper when we have loops in GYP - '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Localizable.strings\' <(locales))', - ], - 'outputs': [ - # TODO: remove this helper when we have loops in GYP - '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Localizable.strings\' <(locales))', - ], - 'action': [ - 'cp', '-R', - '<(input_path)/', - '<(output_path)', - ], - 'message': - 'Copy the Localizable.strings files to the manifest bundle', - 'process_outputs_as_mac_bundle_resources': 1, - }, - ], - }, - ] - }] ], } |