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]: |