Skip to content
Snippets Groups Projects
Commit 57cacdcb authored by kbr@google.com's avatar kbr@google.com
Browse files

Fixed bug in samples conversion introduced by WebGL-related changes and

caught by Linux try bots. Need to specify a different output than the
non-WebGL target for the same asset, because otherwise multithreaded builds
choose one or the other target to execute.

BUG=none
TEST=reran build

Review URL: http://codereview.chromium.org/1723019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45837 0039d316-1c4b-4281-b951-d872f2087c98
parent 97956353
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,12 @@ def write_action(asset, webgl_mode): ...@@ -97,7 +97,12 @@ def write_action(asset, webgl_mode):
if webgl_mode: if webgl_mode:
name = name + "_webgl" name = name + "_webgl"
output = asset['path'].replace('convert_', '') output = asset['path'].replace('convert_', '')
output = posixpath.splitext(output)[0] + ".o3dtgz" output_base = posixpath.splitext(output)[0]
output_tgz = output_base + ".o3dtgz"
output_json = output_base + "/scene.json"
output = output_tgz
if webgl_mode:
output = output_json
output_dir = posixpath.dirname(output) output_dir = posixpath.dirname(output)
output_file.write(" {\n") output_file.write(" {\n")
output_file.write(" 'action_name': '%s',\n" % name) output_file.write(" 'action_name': '%s',\n" % name)
...@@ -125,7 +130,10 @@ def write_action(asset, webgl_mode): ...@@ -125,7 +130,10 @@ def write_action(asset, webgl_mode):
output_file.write(" '--convert-dds-to-png',\n") output_file.write(" '--convert-dds-to-png',\n")
output_file.write(" '--convert-cg-to-glsl',\n") output_file.write(" '--convert-cg-to-glsl',\n")
output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path'])
output_file.write(" '<(_outputs)',\n") if webgl_mode:
output_file.write(" '%s',\n" % output_tgz)
else:
output_file.write(" '<(_outputs)',\n")
output_file.write(" ],\n") output_file.write(" ],\n")
output_file.write(" },\n") output_file.write(" },\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment