| OLD | NEW |
| 1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 |
| 2 # Copyright 2009, Google Inc. | 2 # Copyright 2009, Google Inc. |
| 3 # All rights reserved. | 3 # All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 MakeCommandName('dot')) | 242 MakeCommandName('dot')) |
| 243 if os.path.exists(dot_path): | 243 if os.path.exists(dot_path): |
| 244 Execute([ | 244 Execute([ |
| 245 dot_path, | 245 dot_path, |
| 246 '-Tcmapx', '-o' + MakePath(html_output_dir, 'class_hierarchy.map'), | 246 '-Tcmapx', '-o' + MakePath(html_output_dir, 'class_hierarchy.map'), |
| 247 '-Tpng', '-o' + MakePath(html_output_dir, 'class_hierarchy.png'), | 247 '-Tpng', '-o' + MakePath(html_output_dir, 'class_hierarchy.png'), |
| 248 MakePath(html_output_dir, 'class_hierarchy.dot')]) | 248 MakePath(html_output_dir, 'class_hierarchy.dot')]) |
| 249 | 249 |
| 250 | 250 |
| 251 def BuildO3DJSDocs(js_files, ezt_output_dir, html_output_dir, exports_file): | 251 def BuildO3DJSDocs(js_files, ezt_output_dir, html_output_dir, exports_file): |
| 252 # The backslashes below on 'jsdocs/' and '../' must stay. |
| 252 RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_1_0_', 'o3djs', | 253 RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_1_0_', 'o3djs', |
| 253 'jsdocs', '..', exports_file) | 254 'jsdocs/', '../', exports_file) |
| 254 | 255 |
| 255 | 256 |
| 256 def BuildO3DExternsFile(js_files_dir, extra_externs_file, externs_file): | 257 def BuildO3DExternsFile(js_files_dir, extra_externs_file, externs_file): |
| 257 outfile = open(externs_file, 'w') | 258 outfile = open(externs_file, 'w') |
| 258 filenames = (glob.glob(os.path.join(js_files_dir, '*.js')) + | 259 filenames = (glob.glob(os.path.join(js_files_dir, '*.js')) + |
| 259 [extra_externs_file]) | 260 [extra_externs_file]) |
| 260 for filename in filenames: | 261 for filename in filenames: |
| 261 print "-----", filename | 262 print "-----", filename |
| 262 infile = open(filename, 'r') | 263 infile = open(filename, 'r') |
| 263 lines = infile.readlines() | 264 lines = infile.readlines() |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 o3djs_docs_html_outpath, o3djs_exports_path) | 391 o3djs_docs_html_outpath, o3djs_exports_path) |
| 391 CopyStaticFiles(o3d_docs_ezt_outpath, o3d_docs_html_outpath) | 392 CopyStaticFiles(o3d_docs_ezt_outpath, o3d_docs_html_outpath) |
| 392 BuildCompiledO3DJS(o3djs_files + [o3djs_exports_path], | 393 BuildCompiledO3DJS(o3djs_files + [o3djs_exports_path], |
| 393 externs_path, | 394 externs_path, |
| 394 o3d_externs_path, | 395 o3d_externs_path, |
| 395 compiled_o3djs_outpath) | 396 compiled_o3djs_outpath) |
| 396 | 397 |
| 397 | 398 |
| 398 if __name__ == '__main__': | 399 if __name__ == '__main__': |
| 399 main(sys.argv[1:]) | 400 main(sys.argv[1:]) |
| OLD | NEW |