Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 { | 1 { |
| 2 'variables': { | 2 'variables': { |
| 3 # TODO: remove this helper when we have loops in GYP | |
| 4 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py',], | |
| 5 'chromium_code': 1, | 3 'chromium_code': 1, |
| 6 'grit_cmd': ['python', '../../../tools/grit/grit.py'], | 4 'grit_base_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app', |
| 7 'grit_info_cmd': ['python', '../../../tools/grit/grit_info.py', | |
| 8 '<@(grit_defines)'], | |
| 9 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app', | |
| 10 'localizable_resources': [ | |
| 11 'app_locale_settings.grd', | |
| 12 'app_strings.grd', | |
| 13 ], | |
| 14 }, | 5 }, |
| 15 'targets': [ | 6 'targets': [ |
| 16 { | 7 { |
| 17 'target_name': 'ui_strings', | 8 'target_name': 'ui_strings', |
| 18 'type': 'none', | 9 'type': 'none', |
| 19 'msvs_guid': 'BC3C49A3-D061-4E78-84EE-742DA064DC46', | 10 'msvs_guid': 'BC3C49A3-D061-4E78-84EE-742DA064DC46', |
| 20 'rules': [ | 11 'actions': [ |
| 21 { | 12 { |
| 22 'rule_name': 'grit', | 13 'action_name': 'app_strings', |
| 23 'extension': 'grd', | 14 'variables': { |
| 24 'inputs': [ | 15 'grit_grd_file': 'app_strings.grd', |
| 25 '<!@(<(grit_info_cmd) --inputs <(localizable_resources))', | 16 'grit_out_dir': '<(grit_base_out_dir)/app_strings', |
| 26 ], | 17 }, |
| 27 'outputs': [ | 18 # Grit action boiler plate. |
| 28 '<(grit_out_dir)/<(RULE_INPUT_ROOT)/grit/<(RULE_INPUT_ROOT).h', | 19 'includes': [ '../../../build/grit_action.gypi' ], |
|
tony
2011/03/25 18:07:04
<(DEPTH)?
| |
| 29 # TODO: remove this helper when we have loops in GYP | |
| 30 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)/<(RUL E_INPUT_ROOT)_ZZLOCALE.pak\' <(locales))', | |
| 31 ], | |
| 32 'action': [ | |
| 33 '<@(grit_cmd)', | |
| 34 '-i', '<(RULE_INPUT_PATH)', 'build', | |
| 35 '-o', '<(grit_out_dir)/<(RULE_INPUT_ROOT)', | |
| 36 '<@(grit_defines)'], | |
| 37 'message': 'Generating resources from <(RULE_INPUT_PATH)', | |
| 38 }, | 20 }, |
| 39 ], | 21 { |
| 40 'sources': [ | 22 'action_name': 'app_locale_settings', |
| 41 '<@(localizable_resources)', | 23 'variables': { |
| 24 'grit_grd_file': 'app_locale_settings.grd', | |
| 25 'grit_out_dir': '<(grit_base_out_dir)/app_locale_settings', | |
| 26 }, | |
| 27 # Grit action boiler plate. | |
| 28 'includes': [ '../../../build/grit_action.gypi' ], | |
| 29 }, | |
| 42 ], | 30 ], |
| 43 'direct_dependent_settings': { | 31 'direct_dependent_settings': { |
| 44 'include_dirs': [ | 32 'include_dirs': [ |
| 45 '<(grit_out_dir)/app_locale_settings', | 33 '<(grit_base_out_dir)/app_locale_settings', |
| 46 '<(grit_out_dir)/app_strings', | 34 '<(grit_base_out_dir)/app_strings', |
| 47 ], | 35 ], |
| 48 }, | 36 }, |
| 49 'conditions': [ | 37 'conditions': [ |
| 50 ['OS=="win"', { | 38 ['OS=="win"', { |
| 51 'dependencies': ['../../../build/win/system.gyp:cygwin'], | 39 'dependencies': ['../../../build/win/system.gyp:cygwin'], |
| 52 }], | 40 }], |
| 53 ], | 41 ], |
| 54 }, | 42 }, |
| 55 ], | 43 ], |
| 56 'conditions': [ | 44 'conditions': [ |
| 57 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 45 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
| 58 'targets': [{ | 46 'targets': [{ |
| 59 'target_name': 'ui_unittest_strings', | 47 'target_name': 'ui_unittest_strings', |
| 60 'type': 'none', | 48 'type': 'none', |
| 61 'variables': { | 49 'variables': { |
| 62 'repack_path': '<(DEPTH)/tools/data_pack/repack.py', | 50 'repack_path': '<(DEPTH)/tools/data_pack/repack.py', |
| 63 }, | 51 }, |
| 64 'actions': [ | 52 'actions': [ |
| 65 { | 53 { |
| 66 'action_name': 'repack_ui_unittest_strings', | 54 'action_name': 'repack_ui_unittest_strings', |
| 67 'variables': { | 55 'variables': { |
| 68 'pak_inputs': [ | 56 'pak_inputs': [ |
| 69 '<(grit_out_dir)/app_strings/app_strings_en-US.pak', | 57 '<(grit_base_out_dir)/app_strings/app_strings_en-US.pak', |
| 70 '<(grit_out_dir)/app_locale_settings/app_locale_settings_en-US.p ak', | 58 '<(grit_base_out_dir)/app_locale_settings/app_locale_settings_en -US.pak', |
| 71 ], | 59 ], |
| 72 }, | 60 }, |
| 73 'inputs': [ | 61 'inputs': [ |
| 74 '<(repack_path)', | 62 '<(repack_path)', |
| 75 '<@(pak_inputs)', | 63 '<@(pak_inputs)', |
| 76 ], | 64 ], |
| 77 'outputs': [ | 65 'outputs': [ |
| 78 '<(PRODUCT_DIR)/app_unittests_strings/en-US.pak', | 66 '<(PRODUCT_DIR)/app_unittests_strings/en-US.pak', |
| 79 ], | 67 ], |
| 80 'action': ['python', '<(repack_path)', '<@(_outputs)', | 68 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 81 '<@(pak_inputs)'], | 69 '<@(pak_inputs)'], |
| 82 }, | 70 }, |
| 83 ], | 71 ], |
| 84 'copies': [ | 72 'copies': [ |
| 85 { | 73 { |
| 86 'destination': '<(PRODUCT_DIR)/app_unittests_strings', | 74 'destination': '<(PRODUCT_DIR)/app_unittests_strings', |
| 87 'files': [ | 75 'files': [ |
| 88 '<(grit_out_dir)/app_resources/app_resources.pak', | 76 '<(grit_base_out_dir)/app_resources/app_resources.pak', |
| 89 ], | 77 ], |
| 90 }, | 78 }, |
| 91 ], | 79 ], |
| 92 }], | 80 }], |
| 93 }], | 81 }], |
| 94 ], | 82 ], |
| 95 } | 83 } |
| OLD | NEW |