Chromium Code Reviews| Index: editor/tools/compile_analyzer.py |
| =================================================================== |
| --- editor/tools/compile_analyzer.py (revision 19782) |
| +++ editor/tools/compile_analyzer.py (working copy) |
| @@ -69,6 +69,21 @@ |
| # Add new line |
| print >> output |
| +def FindRoot(): |
| + full_path = os.path.realpath(__file__) |
| + dart_root = os.path.dirname(os.path.dirname(os.path.dirname(full_path))) |
| + return dart_root |
| + |
| +def CopyBinaries(options): |
|
ahe
2013/03/12 14:13:11
Why do you need to copy the "binaries"?
ricow1
2013/03/12 15:28:55
That is a good point - I originally did not want t
|
| + dart_root = FindRoot() |
| + sdk_bin = os.path.join(dart_root, 'sdk', 'bin') |
| + bin_directory = os.path.join(options.output_dir, 'bin') |
| + os.makedirs(bin_directory) |
| + unix_bin = os.path.join(sdk_bin, 'analyzer') |
| + windows_bin = os.path.join(sdk_bin, 'analyzer.bat') |
| + shutil.copy(unix_bin, bin_directory) |
| + shutil.copy(windows_bin, bin_directory) |
| + |
| def main(): |
| (options, args) = GetOptions() |
| # Clean out everything whenever we do a build, guarantees that we don't have |
| @@ -80,7 +95,7 @@ |
| CreateClassPathFile(options) |
| CompileAnalyzer(options, args) |
| CreateJarFile(options) |
| + CopyBinaries(options) |
| - |
| if __name__=='__main__': |
| main() |