From 2ab24f976efe9f0c167afbf444177b860a2bb82f Mon Sep 17 00:00:00 2001 From: "bradnelson@chromium.org" Date: Fri, 4 Sep 2009 20:08:47 +0000 Subject: Altering grit so that it clobbers all outputs even on windows. Previously headers were handled differently only as an optimization. This thwarts vstudio + gyp. Adding a grit_info python stub so that gyp can get an accurate list of inputs and outputs from a grd file. Currently only using it for the inputs, because there's no good way in gyp to have rules invoke a !@( expansion once per rule instance. This change will over-specify dependencies for these modules, but it will at least not under-specify them anymore. BUG=24836 TEST=None Review URL: http://codereview.chromium.org/197007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25499 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/chrome.gyp | 74 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 23 deletions(-) (limited to 'chrome/chrome.gyp') diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index a5e1440..f12a88c 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -34,6 +34,20 @@ 'ru', 'sk', 'sl', 'sr', 'sv', 'ta', 'te', 'th', 'tr', 'uk', 'vi', 'zh-CN', 'zh-TW', ], + 'chrome_strings_grds': [ + # Localizable resources. + 'app/resources/locale_settings.grd', + 'app/chromium_strings.grd', + 'app/generated_resources.grd', + 'app/google_chrome_strings.grd', + ], + 'chrome_resources_grds': [ + # Data resources. + 'browser/browser_resources.grd', + 'common/common_resources.grd', + 'renderer/renderer_resources.grd', + ], + 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',], 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py',], # TODO: remove this helper when we have loops in GYP 'apply_locales_cmd': ['python', 'tools/build/apply_locales.py',], @@ -167,6 +181,11 @@ 'target_name': 'chrome_resources', 'type': 'none', 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', + 'variables': { + 'chrome_resources_inputs': [ + '!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)_ZZLOCALE.pak\' <(locales))', - ], - 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', - 'build', '-o', '<(grit_out_dir)', - '-D', '<(chrome_build)'], + # TODO(bradnelson): move to something like this + #'