Chromium Code Reviews| 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromecast_branding%': 'Chromium', | 7 'chromecast_branding%': 'public', |
| 8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast_strings', | 8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast_strings', |
| 9 }, | 9 }, |
| 10 'targets': [ | 10 'targets': [ |
| 11 { | 11 { |
| 12 'target_name': 'chromecast_settings', | 12 'target_name': 'chromecast_settings', |
| 13 'type': 'none', | 13 'type': 'none', |
| 14 'actions': [ | 14 'actions': [ |
| 15 { | 15 { |
| 16 'action_name': 'chromecast_settings', | 16 'action_name': 'chromecast_settings', |
| 17 'variables': { | 17 'variables': { |
| 18 'grit_grd_file': 'app/resources/chromecast_settings.grd', | 18 'grit_grd_file': 'app/resources/chromecast_settings.grd', |
| 19 'grit_resource_ids': 'app/resources/resource_ids', | 19 'grit_resource_ids': 'app/resources/resource_ids', |
| 20 }, | 20 }, |
| 21 'includes': [ '../build/grit_action.gypi' ], | 21 'includes': [ '../build/grit_action.gypi' ], |
| 22 }, | 22 }, |
| 23 ], | 23 ], |
| 24 'includes': [ '../build/grit_target.gypi' ], | 24 'includes': [ '../build/grit_target.gypi' ], |
| 25 }, | 25 }, |
| 26 { | 26 { |
| 27 'target_name': 'chromecast_locales_pak', | 27 'target_name': 'chromecast_locales_pak', |
| 28 'type': 'none', | 28 'type': 'none', |
| 29 'dependencies': [ | 29 'dependencies': [ |
| 30 'chromecast_settings', | 30 'chromecast_settings', |
| 31 ], | 31 ], |
| 32 'conditions': [ | 32 'conditions': [ |
| 33 ['chromecast_branding=="Chrome"', { | 33 ['chromecast_branding=="google" or chromecast_branding=="internal"', { |
| 34 'variables': { | |
| 35 'chromecast_branding_name': 'Chrome', | |
| 36 }, | |
| 34 'dependencies': [ | 37 'dependencies': [ |
| 35 'internal/chromecast_locales.gyp:chromecast_app_strings', | 38 'internal/chromecast_locales.gyp:chromecast_app_strings', |
| 36 ], | 39 ], |
| 40 }, { | |
| 41 'variables': { | |
| 42 'chromecast_branding_name': 'Chromium', | |
| 43 }, | |
| 37 }], | 44 }], |
| 38 ], | 45 ], |
| 39 'actions': [ | 46 'actions': [ |
| 40 { | 47 { |
| 41 'action_name': 'repack_locales', | 48 'action_name': 'repack_locales', |
| 42 'message': 'Packing locale-specific resources', | 49 'message': 'Packing locale-specific resources', |
| 43 'variables': { | 50 'variables': { |
| 44 'repack_python_cmd': '<(DEPTH)/chromecast/tools/build/chromecast_rep ack_locales.py', | 51 'repack_python_cmd': '<(DEPTH)/chromecast/tools/build/chromecast_rep ack_locales.py', |
| 45 'repack_output_dir': '<(PRODUCT_DIR)/chromecast_locales', | 52 'repack_output_dir': '<(PRODUCT_DIR)/chromecast_locales', |
| 46 'repack_locales_cmd': [ | 53 'repack_locales_cmd': [ |
| 47 'python', | 54 'python', |
| 48 '<(repack_python_cmd)' | 55 '<(repack_python_cmd)' |
| 49 ], | 56 ], |
| 50 }, | 57 }, |
| 51 'inputs': [ | 58 'inputs': [ |
| 52 '<(repack_python_cmd)', | 59 '<(repack_python_cmd)', |
| 53 '<!@pymod_do_main(chromecast_repack_locales -i -b <(chromecast_brand ing) -g <(grit_out_dir) -x <(repack_output_dir) <(locales))' | 60 '<!@pymod_do_main(chromecast_repack_locales -i -b <(chromecast_brand ing_name) -g <(grit_out_dir) -x <(repack_output_dir) <(locales))' |
|
byungchul
2015/07/28 23:43:34
Can we just use chromecast_branding here?
yucliu1
2015/07/29 00:19:21
Yes. This needs to change chromecast_repack_locale
| |
| 54 ], | 61 ], |
| 55 'outputs': [ | 62 'outputs': [ |
| 56 '<!@pymod_do_main(chromecast_repack_locales -o -b <(chromecast_brand ing) -g <(grit_out_dir) -x <(repack_output_dir) <(locales))' | 63 '<!@pymod_do_main(chromecast_repack_locales -o -b <(chromecast_brand ing_name) -g <(grit_out_dir) -x <(repack_output_dir) <(locales))' |
| 57 ], | 64 ], |
| 58 'action': [ | 65 'action': [ |
| 59 '<@(repack_locales_cmd)', | 66 '<@(repack_locales_cmd)', |
| 60 '-b', '<(chromecast_branding)', | 67 '-b', '<(chromecast_branding_name)', |
| 61 '-g', '<(grit_out_dir)', | 68 '-g', '<(grit_out_dir)', |
| 62 '-x', '<(repack_output_dir)/.', | 69 '-x', '<(repack_output_dir)/.', |
| 63 '<@(locales)', | 70 '<@(locales)', |
| 64 ], | 71 ], |
| 65 }, | 72 }, |
| 66 ], | 73 ], |
| 67 }, | 74 }, |
| 68 ], | 75 ], |
| 69 } | 76 } |
| OLD | NEW |