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

Unified Diff: samples/samples_gen.py

Issue 353017: Change build to only have one place to list... (Closed) Base URL: svn://svn.chromium.org/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/o3djs/js_list.manifest ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/samples_gen.py
===================================================================
--- samples/samples_gen.py (revision 30795)
+++ samples/samples_gen.py (working copy)
@@ -5,6 +5,7 @@
import posixpath
import sys
+import os.path
output_filename = 'samples_gen.gyp'
try:
@@ -143,8 +144,13 @@
# Add in all the MANIFEST files to be copied,
# Skipping the ones in the assets above (if any).
-manifest = open("MANIFEST", "r")
-for item in manifest.read().splitlines():
+items = eval(open("MANIFEST", "r").read())
+if os.path.exists("../../o3d-internal/jscomp/JSCompiler_deploy.jar"):
+ # add in the o3djs files.
+ js_files = eval(open("o3djs/js_list.manifest", "r").read())
+ js_files = ["o3djs/" + f for f in js_files]
+ items = items + js_files
+for item in items:
item_dir = posixpath.dirname(item)
if item_dir in copies:
if not item in copies[item_dir]:
« no previous file with comments | « samples/o3djs/js_list.manifest ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698