diff options
author | sgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 05:41:00 +0000 |
---|---|---|
committer | sgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 05:41:00 +0000 |
commit | 769c475d2ee42dfd4c84a5401da543eed91fb61a (patch) | |
tree | 0adaa2078dabf8b3fd5deab8873daf7d794367a1 /chrome/chrome.gyp | |
parent | caf19ffaa8d04d09ff3949d3683dc37cc3b41152 (diff) | |
download | chromium_src-769c475d2ee42dfd4c84a5401da543eed91fb61a.zip chromium_src-769c475d2ee42dfd4c84a5401da543eed91fb61a.tar.gz chromium_src-769c475d2ee42dfd4c84a5401da543eed91fb61a.tar.bz2 |
Convert to gyp generation of chrome_resources and chrome_strings.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/119061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17467 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 74 |
1 files changed, 36 insertions, 38 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 2398f2c..78a346d 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -62,7 +62,6 @@ 'target_name': 'chrome_resources', 'type': 'none', 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', - 'msvs_existing_vcproj': 'app/chrome_resources.vcproj', 'rules': [ { 'rule_name': 'grit', @@ -85,11 +84,11 @@ '../tools/grit/grit.py', ], 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/<(RULE_INPUT_ROOT).h', - '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT).pak', + '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', + '<(grit_out_dir)/<(RULE_INPUT_ROOT).pak', ], 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', - 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome', + 'build', '-o', '<(grit_out_dir)', '-D', '<(chrome_build)', '-E', '<(branded_env)', ], @@ -105,7 +104,7 @@ ], 'direct_dependent_settings': { 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome', + '<(grit_out_dir)', ], }, 'conditions': [ @@ -122,7 +121,6 @@ 'target_name': 'chrome_strings', 'type': 'none', 'msvs_guid': 'D9DDAF60-663F-49CC-90DC-3D08CC3D1B28', - 'msvs_existing_vcproj': 'app/chrome_strings.vcproj', 'rules': [ { 'rule_name': 'grit', @@ -143,14 +141,14 @@ '../tools/grit/grit.py', ], 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/<(RULE_INPUT_ROOT).h', - '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_da.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_en-US.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_he.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_zh-TW.pak', + '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', + '<(grit_out_dir)/<(RULE_INPUT_ROOT)_da.pak', + '<(grit_out_dir)/<(RULE_INPUT_ROOT)_en-US.pak', + '<(grit_out_dir)/<(RULE_INPUT_ROOT)_he.pak', + '<(grit_out_dir)/<(RULE_INPUT_ROOT)_zh-TW.pak', ], 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', - 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome', + 'build', '-o', '<(grit_out_dir)', '-D', '<(chrome_build)'], 'message': 'Generating resources from <(RULE_INPUT_PATH)', }, @@ -164,7 +162,7 @@ ], 'direct_dependent_settings': { 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome', + '<(grit_out_dir)', ], }, 'conditions': [ @@ -213,7 +211,7 @@ ], 'direct_dependent_settings': { 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome', + '<(grit_out_dir)', ], }, 'conditions': [ @@ -1556,7 +1554,7 @@ 'tools/build/win/precompiled_wtl.cc', # This file is generated by GRIT. - '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/theme_resources_map.cc', + '<(grit_out_dir)/grit/theme_resources_map.cc', ], 'conditions': [ ['javascript_engine=="v8"', { @@ -2418,10 +2416,10 @@ 'action_name': 'repack_chrome', 'variables': { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/debugger_resources.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.pak', + '<(grit_out_dir)/browser_resources.pak', + '<(grit_out_dir)/debugger_resources.pak', + '<(grit_out_dir)/common_resources.pak', + '<(grit_out_dir)/renderer_resources.pak', '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', ], @@ -2441,7 +2439,7 @@ 'variables': { 'pak_inputs': [ '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.pak', + '<(grit_out_dir)/theme_resources.pak', ], }, 'inputs': [ @@ -2467,18 +2465,18 @@ 'action_name': 'repack_locale_da', 'variables': { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_da.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_da.pak', + '<(grit_out_dir)/generated_resources_da.pak', + '<(grit_out_dir)/locale_settings_da.pak', '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak', ], 'conditions': [ ['branding=="Chrome"', { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings_da.pak', + '<(grit_out_dir)/google_chrome_strings_da.pak', ] }, { # else: branding!="Chrome" 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_da.pak', + '<(grit_out_dir)/chromium_strings_da.pak', ] }], ], @@ -2511,18 +2509,18 @@ 'action_name': 'repack_locale_en_us', 'variables': { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_en-US.pak', + '<(grit_out_dir)/generated_resources_en-US.pak', + '<(grit_out_dir)/locale_settings_en-US.pak', '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', ], 'conditions': [ ['branding=="Chrome"', { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings_en-US.pak', + '<(grit_out_dir)/google_chrome_strings_en-US.pak', ] }, { # else: branding!="Chrome" 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_en-US.pak', + '<(grit_out_dir)/chromium_strings_en-US.pak', ] }], ], @@ -2551,18 +2549,18 @@ 'action_name': 'repack_locale_he', 'variables': { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_he.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_he.pak', + '<(grit_out_dir)/generated_resources_he.pak', + '<(grit_out_dir)/locale_settings_he.pak', '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_he.pak', ], 'conditions': [ ['branding=="Chrome"', { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings_he.pak', + '<(grit_out_dir)/google_chrome_strings_he.pak', ] }, { # else: branding!="Chrome" 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_he.pak', + '<(grit_out_dir)/chromium_strings_he.pak', ] }], ], @@ -2590,18 +2588,18 @@ 'action_name': 'repack_locale_zh_tw', 'variables': { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_zh-TW.pak', - '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_zh-TW.pak', + '<(grit_out_dir)/generated_resources_zh-TW.pak', + '<(grit_out_dir)/locale_settings_zh-TW.pak', '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-TW.pak', ], 'conditions': [ ['branding=="Chrome"', { 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings_zh-TW.pak', + '<(grit_out_dir)/google_chrome_strings_zh-TW.pak', ] }, { # else: branding!="Chrome" 'pak_inputs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_zh-TW.pak', + '<(grit_out_dir)/chromium_strings_zh-TW.pak', ] }], ], @@ -3662,7 +3660,7 @@ 'VERSION': '../chrome/VERSION', 'template_input_path': 'app/chrome_dll_version.rc.version', 'template_output_path': - '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_dll_version.rc', + '<(grit_out_dir)/chrome_dll_version.rc', }, 'conditions': [ [ 'branding == "Chrome"', { @@ -3686,7 +3684,7 @@ # Use a non-existant output so this action always runs and # generates version information, e.g. to capture revision # changes, which aren't captured by file dependencies. - '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_dll_version.bogus', + '<(grit_out_dir)/chrome_dll_version.bogus', # And this is the real output, so that the build system knows # what action generates it. |