Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: samples/samples_gen.py

Issue 328021: Adding lib path to glew to invocation of converter.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import posixpath 6 import posixpath
7 import sys 7 import sys
8 8
9 output_filename = 'samples_gen.gyp' 9 output_filename = 'samples_gen.gyp'
10 try: 10 try:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 # TODO(gspencer): This is a HACK! We shouldn't need to put the 105 # TODO(gspencer): This is a HACK! We shouldn't need to put the
106 # absolute path here, but currently on Linux (scons), it is unable 106 # absolute path here, but currently on Linux (scons), it is unable
107 # to copy generated items out of the source tree (because the 107 # to copy generated items out of the source tree (because the
108 # repository mojo fails to find it and puts in the wrong path). 108 # repository mojo fails to find it and puts in the wrong path).
109 output_file.write(" '%s',\n" % posixpath.abspath(output)) 109 output_file.write(" '%s',\n" % posixpath.abspath(output))
110 else: 110 else:
111 output_file.write(" '../samples/%s',\n" % output) 111 output_file.write(" '../samples/%s',\n" % output)
112 output_file.write(" ],\n") 112 output_file.write(" ],\n")
113 output_file.write(" 'action': [\n") 113 output_file.write(" 'action': [\n")
114 if sys.platform[:5] == 'linux': 114 if sys.platform[:5] == 'linux':
115 output_file.write(" 'LD_LIBRARY_PATH=<(PRODUCT_DIR):<(PRODUCT_DIR )/lib',\n") 115 output_file.write(" 'LD_LIBRARY_PATH=<(PRODUCT_DIR):"
116 ":<(PRODUCT_DIR)/lib"
117 ":../../<(glewdir)/lib"
118 ":../../<<(PRODUCT_DIR)/lib"
119 "',\n")
116 output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") 120 output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n")
117 output_file.write(" '--no-condition',\n") 121 output_file.write(" '--no-condition',\n")
118 output_file.write(" '--up-axis=%s',\n" % asset['up']) 122 output_file.write(" '--up-axis=%s',\n" % asset['up'])
119 output_file.write(" '<(_inputs)',\n") 123 output_file.write(" '<(_inputs)',\n")
120 output_file.write(" '<(_outputs)',\n") 124 output_file.write(" '<(_outputs)',\n")
121 output_file.write(" ],\n") 125 output_file.write(" ],\n")
122 output_file.write(" },\n") 126 output_file.write(" },\n")
123 127
124 output_file.write(" ],\n") 128 output_file.write(" ],\n")
125 129
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 output_file.write(" ],\n") 170 output_file.write(" ],\n")
167 output_file.write(" },\n") 171 output_file.write(" },\n")
168 172
169 output_file.write(" ],\n") 173 output_file.write(" ],\n")
170 output_file.write(" },\n") 174 output_file.write(" },\n")
171 output_file.write(" ],\n") 175 output_file.write(" ],\n")
172 output_file.write("}\n") 176 output_file.write("}\n")
173 177
174 print output_filename 178 print output_filename
175 sys.exit(0) 179 sys.exit(0)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698