OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 | 6 |
7 def GetConfigurationForBuild(defines): | 7 def GetConfigurationForBuild(defines): |
8 '''Returns a configuration dictionary for the given build that contains | 8 '''Returns a configuration dictionary for the given build that contains |
9 build-specific settings and information. | 9 build-specific settings and information. |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 'win_reg_recommended_key_name': | 45 'win_reg_recommended_key_name': |
46 'Software\\Policies\\Google\\Chrome\\Recommended', | 46 'Software\\Policies\\Google\\Chrome\\Recommended', |
47 'win_mandatory_category_path': ['google', 'googlechrome'], | 47 'win_mandatory_category_path': ['google', 'googlechrome'], |
48 'win_recommended_category_path': ['google', 'googlechrome_recommended'], | 48 'win_recommended_category_path': ['google', 'googlechrome_recommended'], |
49 'admx_namespace': 'Google.Policies.Chrome', | 49 'admx_namespace': 'Google.Policies.Chrome', |
50 'admx_prefix': 'chrome', | 50 'admx_prefix': 'chrome', |
51 'linux_policy_path': '/etc/opt/chrome/policies/', | 51 'linux_policy_path': '/etc/opt/chrome/policies/', |
52 } | 52 } |
53 else: | 53 else: |
54 raise Exception('Unknown build') | 54 raise Exception('Unknown build') |
| 55 if 'version' in defines: |
| 56 config['version'] = defines['version'] |
55 config['win_group_policy_class'] = 'Both' | 57 config['win_group_policy_class'] = 'Both' |
56 config['win_supported_os'] = 'SUPPORTED_WINXPSP2' | 58 config['win_supported_os'] = 'SUPPORTED_WINXPSP2' |
57 if 'mac_bundle_id' in defines: | 59 if 'mac_bundle_id' in defines: |
58 config['mac_bundle_id'] = defines['mac_bundle_id'] | 60 config['mac_bundle_id'] = defines['mac_bundle_id'] |
59 return config | 61 return config |
OLD | NEW |