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

Side by Side Diff: tools/bundle_sdk.py

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months 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 unified diff | Download patch
« no previous file with comments | « tools/bots/sdk_fletch_patched.py ('k') | tools/cc_wrapper.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 2 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 # This script is creating a self contained directory with all the tools, 6 # This script is creating a self contained directory with all the tools,
7 # libraries, packages and samples needed for running Dartino. 7 # libraries, packages and samples needed for running Dartino.
8 8
9 # This script assumes that the target arg has been build in the passed 9 # This script assumes that the target arg has been build in the passed
10 # in --build_dir. It also assumes that out/ReleaseXARM/fletch-vm and 10 # in --build_dir. It also assumes that out/ReleaseXARM/dartino-vm and
11 # out/ReleaseSTM have been build. 11 # out/ReleaseSTM have been build.
12 12
13 import optparse 13 import optparse
14 import subprocess 14 import subprocess
15 import sys 15 import sys
16 import utils 16 import utils
17 import re 17 import re
18 18
19 from sets import Set 19 from sets import Set
20 from os import makedirs 20 from os import makedirs
21 from os.path import dirname, join, exists, basename, abspath 21 from os.path import dirname, join, exists, basename, abspath
22 from shutil import copyfile, copymode, copytree, rmtree 22 from shutil import copyfile, copymode, copytree, rmtree
23 23
24 TOOLS_DIR = abspath(dirname(__file__)) 24 TOOLS_DIR = abspath(dirname(__file__))
25 25
26 SDK_PACKAGES = ['ffi', 'file', 'fletch', 'gpio', 'http', 'i2c', 'os', 26 SDK_PACKAGES = ['ffi', 'file', 'dartino', 'gpio', 'http', 'i2c', 'os',
27 'raspberry_pi', 'stm32f746g_disco', 'socket', 'mqtt'] 27 'raspberry_pi', 'stm32f746g_disco', 'socket', 'mqtt']
28 THIRD_PARTY_PACKAGES = ['charcode'] 28 THIRD_PARTY_PACKAGES = ['charcode']
29 29
30 SAMPLES = ['general', 'raspberry-pi2', 'stm32f746g-discovery'] 30 SAMPLES = ['general', 'raspberry-pi2', 'stm32f746g-discovery']
31 with open(join(TOOLS_DIR, 'docs_html', 'head.html')) as f: 31 with open(join(TOOLS_DIR, 'docs_html', 'head.html')) as f:
32 DOC_INDEX_HEAD = f.read() 32 DOC_INDEX_HEAD = f.read()
33 with open(join(TOOLS_DIR, 'docs_html', 'tail.html')) as f: 33 with open(join(TOOLS_DIR, 'docs_html', 'tail.html')) as f:
34 DOC_INDEX_TAIL = f.read() 34 DOC_INDEX_TAIL = f.read()
35 35
36 DOC_ENTRY = ('<dt><span class="name"><a class="" href="%s/index.html">%s</a>' 36 DOC_ENTRY = ('<dt><span class="name"><a class="" href="%s/index.html">%s</a>'
(...skipping 22 matching lines...) Expand all
59 if exists(directory): 59 if exists(directory):
60 rmtree(directory) 60 rmtree(directory)
61 if exists(directory): 61 if exists(directory):
62 raise Exception("Could not delete %s" % directory) 62 raise Exception("Could not delete %s" % directory)
63 63
64 def CopyBinaries(bundle_dir, build_dir): 64 def CopyBinaries(bundle_dir, build_dir):
65 bin_dir = join(bundle_dir, 'bin') 65 bin_dir = join(bundle_dir, 'bin')
66 internal = join(bundle_dir, 'internal') 66 internal = join(bundle_dir, 'internal')
67 makedirs(bin_dir) 67 makedirs(bin_dir)
68 makedirs(internal) 68 makedirs(internal)
69 CopyFile(join(build_dir, 'fletch-vm'), join(bin_dir, 'fletch-vm')) 69 CopyFile(join(build_dir, 'dartino-vm'), join(bin_dir, 'dartino-vm'))
70 # The driver for the sdk is specially named fletch_for_sdk. 70 # The driver for the sdk is specially named dartino_for_sdk.
71 CopyFile(join(build_dir, 'fletch_for_sdk'), join(bin_dir, 'fletch')) 71 CopyFile(join(build_dir, 'dartino_for_sdk'), join(bin_dir, 'dartino'))
72 # We move the dart vm to internal to not put it on the path of users 72 # We move the dart vm to internal to not put it on the path of users
73 CopyFile(join(build_dir, 'dart'), join(internal, 'dart')) 73 CopyFile(join(build_dir, 'dart'), join(internal, 'dart'))
74 # natives.json is read relative to the dart binary 74 # natives.json is read relative to the dart binary
75 CopyFile(join(build_dir, 'natives.json'), join(internal, 'natives.json')) 75 CopyFile(join(build_dir, 'natives.json'), join(internal, 'natives.json'))
76 76
77 # Copy the platform decriptor, rewriting paths to point to the 77 # Copy the platform decriptor, rewriting paths to point to the
78 # sdk location at `sdk_dir` instead of `repo_dir`. 78 # sdk location at `sdk_dir` instead of `repo_dir`.
79 def CopyPlatformDescriptor(bundle_dir, platform_descriptor_name, repo_dir, 79 def CopyPlatformDescriptor(bundle_dir, platform_descriptor_name, repo_dir,
80 sdk_dir): 80 sdk_dir):
81 platform_path = join('lib', platform_descriptor_name) 81 platform_path = join('lib', platform_descriptor_name)
82 with open(platform_path) as f: 82 with open(platform_path) as f:
83 lines = f.read().splitlines() 83 lines = f.read().splitlines()
84 dest = join(bundle_dir, 'internal', 'fletch_lib', platform_descriptor_name) 84 dest = join(bundle_dir, 'internal', 'dartino_lib', platform_descriptor_name)
85 print("Copying from %s to %s adjusting paths." % (platform_path, dest)) 85 print("Copying from %s to %s adjusting paths." % (platform_path, dest))
86 with open(dest, 'w') as generated: 86 with open(dest, 'w') as generated:
87 for line in lines: 87 for line in lines:
88 if line.startswith('#') or line.startswith('['): 88 if line.startswith('#') or line.startswith('['):
89 pass 89 pass
90 else: 90 else:
91 # The property-lines consist of name:uri. The uri can 91 # The property-lines consist of name:uri. The uri can
92 # contain a ':' so we only split at the first ':'. 92 # contain a ':' so we only split at the first ':'.
93 parts = line.split(':', 1) 93 parts = line.split(':', 1)
94 if len(parts) == 2: 94 if len(parts) == 2:
95 name, path = parts 95 name, path = parts
96 path = path.strip() 96 path = path.strip()
97 if path.startswith(repo_dir): 97 if path.startswith(repo_dir):
98 # Dart-sdk library 98 # Dart-sdk library
99 path = path.replace(repo_dir, sdk_dir) 99 path = path.replace(repo_dir, sdk_dir)
100 line = "%s: %s" % (name, path) 100 line = "%s: %s" % (name, path)
101 generated.write('%s\n' % line) 101 generated.write('%s\n' % line)
102 102
103 # We have two lib dependencies: the libs from the sdk and the libs dir with 103 # We have two lib dependencies: the libs from the sdk and the libs dir with
104 # patch files from the fletch repo. 104 # patch files from the dartino repo.
105 def CopyLibs(bundle_dir, build_dir): 105 def CopyLibs(bundle_dir, build_dir):
106 internal = join(bundle_dir, 'internal') 106 internal = join(bundle_dir, 'internal')
107 fletch_lib = join(internal, 'fletch_lib') 107 dartino_lib = join(internal, 'dartino_lib')
108 dart_lib = join(internal, 'dart_lib') 108 dart_lib = join(internal, 'dart_lib')
109 copytree('lib', fletch_lib) 109 copytree('lib', dartino_lib)
110 copytree('third_party/dart/sdk/lib', dart_lib) 110 copytree('third_party/dart/sdk/lib', dart_lib)
111 CopyPlatformDescriptor(bundle_dir, 'fletch_mobile.platform', 111 CopyPlatformDescriptor(bundle_dir, 'dartino_mobile.platform',
112 '../third_party/dart/sdk/lib', '../dart_lib') 112 '../third_party/dart/sdk/lib', '../dart_lib')
113 CopyPlatformDescriptor(bundle_dir, 'fletch_embedded.platform', 113 CopyPlatformDescriptor(bundle_dir, 'dartino_embedded.platform',
114 '../third_party/dart/sdk/lib', '../dart_lib') 114 '../third_party/dart/sdk/lib', '../dart_lib')
115 115
116 def CopyInternalPackages(bundle_dir, build_dir): 116 def CopyInternalPackages(bundle_dir, build_dir):
117 internal_pkg = join(bundle_dir, 'internal', 'pkg') 117 internal_pkg = join(bundle_dir, 'internal', 'pkg')
118 makedirs(internal_pkg) 118 makedirs(internal_pkg)
119 # Copy the pkg dirs for tools and the pkg dirs referred from their 119 # Copy the pkg dirs for tools and the pkg dirs referred from their
120 # .packages files. 120 # .packages files.
121 copied_pkgs = Set() 121 copied_pkgs = Set()
122 for tool in ['fletchc', 'flash_sd_card']: 122 for tool in ['dartino_compiler', 'flash_sd_card']:
123 copytree(join('pkg', tool), join(internal_pkg, tool)) 123 copytree(join('pkg', tool), join(internal_pkg, tool))
124 tool_pkg = 'pkg/%s' % tool 124 tool_pkg = 'pkg/%s' % tool
125 fixed_packages_file = join(internal_pkg, tool, '.packages') 125 fixed_packages_file = join(internal_pkg, tool, '.packages')
126 lines = [] 126 lines = []
127 with open(join(tool_pkg, '.packages')) as f: 127 with open(join(tool_pkg, '.packages')) as f:
128 lines = f.read().splitlines() 128 lines = f.read().splitlines()
129 with open(fixed_packages_file, 'w') as generated: 129 with open(fixed_packages_file, 'w') as generated:
130 for l in lines: 130 for l in lines:
131 if l.startswith('#') or l.startswith('%s:lib' % tool): 131 if l.startswith('#') or l.startswith('%s:lib' % tool):
132 generated.write('%s\n' % l) 132 generated.write('%s\n' % l)
133 else: 133 else:
134 components = l.split(':') 134 components = l.split(':')
135 name = components[0] 135 name = components[0]
136 relative_path = components[1] 136 relative_path = components[1]
137 source = join(tool_pkg, relative_path) 137 source = join(tool_pkg, relative_path)
138 target = join(internal_pkg, name) 138 target = join(internal_pkg, name)
139 print source 139 print source
140 if not target in copied_pkgs: 140 if not target in copied_pkgs:
141 print 'copying %s to %s' % (source, target) 141 print 'copying %s to %s' % (source, target)
142 makedirs(target) 142 makedirs(target)
143 assert(source.endswith('lib')) 143 assert(source.endswith('lib'))
144 copytree(source, join(target, 'lib')) 144 copytree(source, join(target, 'lib'))
145 copied_pkgs.add(target) 145 copied_pkgs.add(target)
146 generated.write('%s:../%s/lib\n' % (name, name)) 146 generated.write('%s:../%s/lib\n' % (name, name))
147 147
148 def CopyPackages(bundle_dir): 148 def CopyPackages(bundle_dir):
149 target_dir = join(bundle_dir, 'pkg') 149 target_dir = join(bundle_dir, 'pkg')
150 makedirs(target_dir) 150 makedirs(target_dir)
151 with open(join(bundle_dir, 'internal', 'fletch-sdk.packages'), 'w') as p: 151 with open(join(bundle_dir, 'internal', 'dartino-sdk.packages'), 'w') as p:
152 for package in SDK_PACKAGES: 152 for package in SDK_PACKAGES:
153 copytree(join('pkg', package), join(target_dir, package)) 153 copytree(join('pkg', package), join(target_dir, package))
154 p.write('%s:../pkg/%s/lib\n' % (package, package)) 154 p.write('%s:../pkg/%s/lib\n' % (package, package))
155 for package in THIRD_PARTY_PACKAGES: 155 for package in THIRD_PARTY_PACKAGES:
156 copytree(join('third_party', package), join(target_dir, package)) 156 copytree(join('third_party', package), join(target_dir, package))
157 p.write('%s:../pkg/%s/lib\n' % (package, package)) 157 p.write('%s:../pkg/%s/lib\n' % (package, package))
158 158
159 def CopyPlatforms(bundle_dir): 159 def CopyPlatforms(bundle_dir):
160 # Only copy parts of the platform directory. We also have source 160 # Only copy parts of the platform directory. We also have source
161 # code there at the moment. 161 # code there at the moment.
162 target_dir = join(bundle_dir, 'platforms/raspberry-pi2') 162 target_dir = join(bundle_dir, 'platforms/raspberry-pi2')
163 copytree('platforms/raspberry-pi2', target_dir) 163 copytree('platforms/raspberry-pi2', target_dir)
164 target_dir = join(bundle_dir, 'platforms/stm32f746g-discovery/bin') 164 target_dir = join(bundle_dir, 'platforms/stm32f746g-discovery/bin')
165 copytree('platforms/stm/bin', target_dir) 165 copytree('platforms/stm/bin', target_dir)
166 166
167 def CreateSnapshot(dart_executable, dart_file, snapshot): 167 def CreateSnapshot(dart_executable, dart_file, snapshot):
168 cmd = [dart_executable, '-c', '--packages=.packages', 168 cmd = [dart_executable, '-c', '--packages=.packages',
169 '-Dsnapshot="%s"' % snapshot, 169 '-Dsnapshot="%s"' % snapshot,
170 '-Dpackages=".packages"', 170 '-Dpackages=".packages"',
171 'tests/fletchc/run.dart', dart_file] 171 'tests/dartino_compiler/run.dart', dart_file]
172 print 'Running %s' % ' '.join(cmd) 172 print 'Running %s' % ' '.join(cmd)
173 subprocess.check_call(' '.join(cmd), shell=True) 173 subprocess.check_call(' '.join(cmd), shell=True)
174 174
175 def CreateAgentSnapshot(bundle_dir, build_dir): 175 def CreateAgentSnapshot(bundle_dir, build_dir):
176 platforms = join(bundle_dir, 'platforms') 176 platforms = join(bundle_dir, 'platforms')
177 data_dir = join(platforms, 'raspberry-pi2', 'data') 177 data_dir = join(platforms, 'raspberry-pi2', 'data')
178 dart = join(build_dir, 'dart') 178 dart = join(build_dir, 'dart')
179 snapshot = join(data_dir, 'fletch-agent.snapshot') 179 snapshot = join(data_dir, 'dartino-agent.snapshot')
180 CreateSnapshot(dart, 'pkg/fletch_agent/bin/agent.dart', snapshot) 180 CreateSnapshot(dart, 'pkg/dartino_agent/bin/agent.dart', snapshot)
181 181
182 def CopyArmDebPackage(bundle_dir, package): 182 def CopyArmDebPackage(bundle_dir, package):
183 target = join(bundle_dir, 'platforms', 'raspberry-pi2') 183 target = join(bundle_dir, 'platforms', 'raspberry-pi2')
184 CopyFile(package, join(target, basename(package))) 184 CopyFile(package, join(target, basename(package)))
185 185
186 def CopyAdditionalFiles(bundle_dir): 186 def CopyAdditionalFiles(bundle_dir):
187 for extra in ['README.md', 'LICENSE.md']: 187 for extra in ['README.md', 'LICENSE.md']:
188 CopyFile(extra, join(bundle_dir, extra)) 188 CopyFile(extra, join(bundle_dir, extra))
189 189
190 def CopyArm(bundle_dir): 190 def CopyArm(bundle_dir):
191 binaries = ['fletch-vm', 'natives.json'] 191 binaries = ['dartino-vm', 'natives.json']
192 raspberry = join(bundle_dir, 'platforms', 'raspberry-pi2') 192 raspberry = join(bundle_dir, 'platforms', 'raspberry-pi2')
193 bin_dir = join(raspberry, 'bin') 193 bin_dir = join(raspberry, 'bin')
194 makedirs(bin_dir) 194 makedirs(bin_dir)
195 build_dir = 'out/ReleaseXARM' 195 build_dir = 'out/ReleaseXARM'
196 for v in binaries: 196 for v in binaries:
197 CopyFile(join(build_dir, v), join(bin_dir, v)) 197 CopyFile(join(build_dir, v), join(bin_dir, v))
198 198
199 def CopySTM(bundle_dir): 199 def CopySTM(bundle_dir):
200 libraries = [ 200 libraries = [
201 'libfletch_vm_library.a', 201 'libdartino_vm_library.a',
202 'libfletch_shared.a', 202 'libdartino_shared.a',
203 'libdouble_conversion.a', 203 'libdouble_conversion.a',
204 'libdisco_fletch.a'] 204 'libdisco_dartino.a']
205 disco = join(bundle_dir, 'platforms', 'stm32f746g-discovery') 205 disco = join(bundle_dir, 'platforms', 'stm32f746g-discovery')
206 lib_dir = join(disco, 'lib') 206 lib_dir = join(disco, 'lib')
207 makedirs(lib_dir) 207 makedirs(lib_dir)
208 build_dir = 'out/ReleaseSTM' 208 build_dir = 'out/ReleaseSTM'
209 for v in libraries: 209 for v in libraries:
210 CopyFile(join(build_dir, v), join(lib_dir, basename(v))) 210 CopyFile(join(build_dir, v), join(lib_dir, basename(v)))
211 211
212 config_dir = join(disco, 'config') 212 config_dir = join(disco, 'config')
213 makedirs(config_dir) 213 makedirs(config_dir)
214 CopyFile('platforms/stm/disco_fletch/generated/SW4STM32/' 214 CopyFile('platforms/stm/disco_dartino/generated/SW4STM32/'
215 'configuration/STM32F746NGHx_FLASH.ld', 215 'configuration/STM32F746NGHx_FLASH.ld',
216 join(config_dir, 'stm32f746g-discovery.ld')) 216 join(config_dir, 'stm32f746g-discovery.ld'))
217 def CopySamples(bundle_dir): 217 def CopySamples(bundle_dir):
218 target = join(bundle_dir, 'samples') 218 target = join(bundle_dir, 'samples')
219 for v in SAMPLES: 219 for v in SAMPLES:
220 copytree(join('samples', v), join(target, v)) 220 copytree(join('samples', v), join(target, v))
221 221
222 def EnsureDartDoc(): 222 def EnsureDartDoc():
223 subprocess.check_call( 223 subprocess.check_call(
224 'download_from_google_storage -b dart-dependencies-fletch ' 224 'download_from_google_storage -b dart-dependencies-fletch '
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 sdk = join('third_party', 'dartdoc_deps', 'dart-sdk') 259 sdk = join('third_party', 'dartdoc_deps', 'dart-sdk')
260 sdk_dst = join('out', 'dartdoc-dart-sdk') 260 sdk_dst = join('out', 'dartdoc-dart-sdk')
261 EnsureDeleted(sdk_dst) 261 EnsureDeleted(sdk_dst)
262 copytree(sdk, sdk_dst) 262 copytree(sdk, sdk_dst)
263 copytree('lib', join(sdk_dst, 'lib', 'mobile')) 263 copytree('lib', join(sdk_dst, 'lib', 'mobile'))
264 pub = abspath(join(sdk_dst, 'bin', 'pub')) 264 pub = abspath(join(sdk_dst, 'bin', 'pub'))
265 dartdoc = join(sdk_dst, 'bin', 'dartdoc') 265 dartdoc = join(sdk_dst, 'bin', 'dartdoc')
266 # We recreate the same structure we have in the repo in a copy to not 266 # We recreate the same structure we have in the repo in a copy to not
267 # polute our workspace 267 # polute our workspace
268 with utils.TempDir() as temp: 268 with utils.TempDir() as temp:
269 # Copy Fletch packages. 269 # Copy Dartino packages.
270 pkg_copy = join(temp, 'pkg') 270 pkg_copy = join(temp, 'pkg')
271 makedirs(pkg_copy) 271 makedirs(pkg_copy)
272 for pkg in SDK_PACKAGES: 272 for pkg in SDK_PACKAGES:
273 pkg_path = join('pkg', pkg) 273 pkg_path = join('pkg', pkg)
274 pkg_dst = join(pkg_copy, pkg) 274 pkg_dst = join(pkg_copy, pkg)
275 copytree(pkg_path, pkg_dst) 275 copytree(pkg_path, pkg_dst)
276 print 'copied %s to %s' % (pkg_path, pkg_dst) 276 print 'copied %s to %s' % (pkg_path, pkg_dst)
277 # Copy third party packages. 277 # Copy third party packages.
278 third_party_copy = join(temp, 'third_party') 278 third_party_copy = join(temp, 'third_party')
279 makedirs(third_party_copy) 279 makedirs(third_party_copy)
280 for pkg in THIRD_PARTY_PACKAGES: 280 for pkg in THIRD_PARTY_PACKAGES:
281 pkg_path = join('third_party', pkg) 281 pkg_path = join('third_party', pkg)
282 pkg_dst = join(third_party_copy, pkg) 282 pkg_dst = join(third_party_copy, pkg)
283 copytree(pkg_path, pkg_dst) 283 copytree(pkg_path, pkg_dst)
284 print 'copied %s to %s' % (pkg_path, pkg_dst) 284 print 'copied %s to %s' % (pkg_path, pkg_dst)
285 # Create fake combined package dir. 285 # Create fake combined package dir.
286 sdk_pkg_dir = join(pkg_copy, 'fletch_sdk') 286 sdk_pkg_dir = join(pkg_copy, 'dartino_sdk')
287 makedirs(sdk_pkg_dir) 287 makedirs(sdk_pkg_dir)
288 # Copy readme. 288 # Copy readme.
289 copyfile(join('pkg', 'fletch_sdk_readme.md'), 289 copyfile(join('pkg', 'dartino_sdk_readme.md'),
290 join(sdk_pkg_dir, 'README.md')) 290 join(sdk_pkg_dir, 'README.md'))
291 # Add pubspec file. 291 # Add pubspec file.
292 CreateDocsPubSpec('%s/pubspec.yaml' % sdk_pkg_dir) 292 CreateDocsPubSpec('%s/pubspec.yaml' % sdk_pkg_dir)
293 # Add lib dir, and a generated file for each package. 293 # Add lib dir, and a generated file for each package.
294 sdk_pkg_lib_dir = join(sdk_pkg_dir, 'lib') 294 sdk_pkg_lib_dir = join(sdk_pkg_dir, 'lib')
295 makedirs(sdk_pkg_lib_dir) 295 makedirs(sdk_pkg_lib_dir)
296 CreateDocsLibs(sdk_pkg_lib_dir, pkg_copy) 296 CreateDocsLibs(sdk_pkg_lib_dir, pkg_copy)
297 # Call pub get. 297 # Call pub get.
298 with utils.ChangedWorkingDirectory(sdk_pkg_dir): 298 with utils.ChangedWorkingDirectory(sdk_pkg_dir):
299 print 'Calling pub get in %s' % sdk_pkg_dir 299 print 'Calling pub get in %s' % sdk_pkg_dir
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 if deb_package: 341 if deb_package:
342 CopyArmDebPackage(sdk_temp, deb_package) 342 CopyArmDebPackage(sdk_temp, deb_package)
343 sdk_dir = join(build_dir, 'dartino-sdk') 343 sdk_dir = join(build_dir, 'dartino-sdk')
344 EnsureDeleted(sdk_dir) 344 EnsureDeleted(sdk_dir)
345 if options.include_tools: 345 if options.include_tools:
346 CopyTools(sdk_temp) 346 CopyTools(sdk_temp)
347 copytree(sdk_temp, sdk_dir) 347 copytree(sdk_temp, sdk_dir)
348 348
349 if __name__ == '__main__': 349 if __name__ == '__main__':
350 sys.exit(Main()) 350 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/bots/sdk_fletch_patched.py ('k') | tools/cc_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698