Commit e8c7f632 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix installer_util_strings project with incredibuild.

It was failing to generate $(OutDir)\obj\global_intermediate\installer_util_strings\installer_util_strings.*

TEST=none
BUG=none
Review URL: http://codereview.chromium.org/196046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25694 0039d316-1c4b-4281-b951-d872f2087c98
parent f1714811
...@@ -175,38 +175,32 @@ ...@@ -175,38 +175,32 @@
}, },
{ {
'target_name': 'installer_util_strings', 'target_name': 'installer_util_strings',
'type': 'dummy_executable',
'msvs_guid': '0026A376-C4F1-4575-A1BA-578C69F07013', 'msvs_guid': '0026A376-C4F1-4575-A1BA-578C69F07013',
'actions': [ # See hack in chrome.gyp:chrome_strings
'type': 'dummy_executable',
'rules': [
{ {
# TODO(sgk): Clean this up so that we pass in the 'rule_name': 'installer_util_strings',
# file names to the script instead of having it hard-code 'extension': 'grd',
# matching path names internally.
'action_name': 'installer_util_strings',
'inputs': [ 'inputs': [
'util/prebuild/create_string_rc.py', # Hardcoded for now.
'../app/generated_resources.grd', '../app/generated_resources.grd',
], ],
'outputs': [ 'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strings.rc', '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/<(RULE_INPUT_ROOT).h',
'<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strings.h',
], ],
'action': [ 'action': ['../../third_party/python_24/python.exe',
# The create_string_rc.py script requires the checked-in 'util/prebuild/create_string_rc.py',
# python.exe that has google modules installed, and '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings'],
# a PYTHONPATH pointing to grit so it can import FP. 'message': 'Generating resources from <(RULE_INPUT_PATH)',
# TODO: clean this up
'set PYTHONPATH=../../tools/grit/grit/extern', '&&',
'../../third_party/python_24/python.exe',
'util/prebuild/create_string_rc.py',
'<(SHARED_INTERMEDIATE_DIR)/installer_util_strings'
],
'msvs_cygwin_shell': 0,
}, },
], ],
'sources': [
'../app/generated_resources.grd',
],
'direct_dependent_settings': { 'direct_dependent_settings': {
'include_dirs': [ 'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/installer_util_strings', '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings',
], ],
}, },
}, },
......
:: A wrapper file for running create_string_rc.py from visual studio.
setlocal
set OUTFILE=%~1
set PYTHON=%~dp0..\..\..\..\third_party\python_24\python.exe
:: Add grit to the python path so we can import FP.py.
set PYTHONPATH=%~dp0..\..\..\..\tools\grit\grit\extern
%PYTHON% create_string_rc.py %OUTFILE%
...@@ -29,8 +29,11 @@ import os ...@@ -29,8 +29,11 @@ import os
import sys import sys
from xml.dom import minidom from xml.dom import minidom
# We are expected to use ../../../../third_party/python_24/python.exe
from google import path_utils from google import path_utils
# Quick hack to fix the path.
sys.path.append(os.path.abspath('../../tools/grit/grit/extern'))
import FP import FP
# The IDs of strings we want to import from generated_resources.grd and include # The IDs of strings we want to import from generated_resources.grd and include
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment