| OLD | NEW | 
|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python | 
| 2 # | 2 # | 
| 3 # Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 3 # Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a | 
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. | 
| 6 # | 6 # | 
| 7 # A script which will be invoked from gyp to create a build of the editor. | 7 # A script which will be invoked from gyp to create a build of the editor. | 
| 8 # | 8 # | 
| 9 # TODO(devoncarew): currently this script is not callable from tools/build.py | 9 # TODO(devoncarew): currently this script is not callable from tools/build.py | 
| 10 # Usage: ./tools/build.py editor | 10 # Usage: ./tools/build.py editor | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 29   'linux': 'linux, gtk', | 29   'linux': 'linux, gtk', | 
| 30   'macos': 'macosx, cocoa' | 30   'macos': 'macosx, cocoa' | 
| 31 } | 31 } | 
| 32 | 32 | 
| 33 ARCH_CONFIG = { | 33 ARCH_CONFIG = { | 
| 34   'ia32': 'x86', | 34   'ia32': 'x86', | 
| 35   'x64': 'x86_64' | 35   'x64': 'x86_64' | 
| 36 } | 36 } | 
| 37 | 37 | 
| 38 def AntPath(): | 38 def AntPath(): | 
| 39   parent = join('third_party', 'apache_ant', 'v1_7_1', 'bin') | 39   parent = join('third_party', 'apache_ant', '1.8.4', 'bin') | 
| 40   if utils.IsWindows(): | 40   if utils.IsWindows(): | 
| 41     return join(parent, 'ant.bat') | 41     return join(parent, 'ant.bat') | 
| 42   else: | 42   else: | 
| 43     return join(parent, 'ant') | 43     return join(parent, 'ant') | 
| 44 | 44 | 
| 45 | 45 | 
| 46 def ProcessEditorArchive(archive, outDir): | 46 def ProcessEditorArchive(archive, outDir): | 
| 47   tempDir = join(GetEditorTemp(), 'editor.out') | 47   tempDir = join(GetEditorTemp(), 'editor.out') | 
| 48   os.makedirs(tempDir) | 48   os.makedirs(tempDir) | 
| 49 | 49 | 
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 185     ProcessEditorArchive(archives[0], OUTPUT) | 185     ProcessEditorArchive(archives[0], OUTPUT) | 
| 186 | 186 | 
| 187   if os.path.exists(GetEditorTemp()): | 187   if os.path.exists(GetEditorTemp()): | 
| 188     shutil.rmtree(GetEditorTemp()) | 188     shutil.rmtree(GetEditorTemp()) | 
| 189 | 189 | 
| 190   print('\nEditor build successful') | 190   print('\nEditor build successful') | 
| 191 | 191 | 
| 192 | 192 | 
| 193 if __name__ == '__main__': | 193 if __name__ == '__main__': | 
| 194   sys.exit(Main()) | 194   sys.exit(Main()) | 
| OLD | NEW | 
|---|