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

Side by Side Diff: build/win/copy_cdb_to_output/copy_cdb_to_output.py

Issue 2786823002: hackhack test jochen cl
Patch Set: . Created 3 years, 8 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 | « build/win/copy_cdb_to_output/BUILD.gn ('k') | content/shell/BUILD.gn » ('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 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import glob 6 import glob
7 import hashlib 7 import hashlib
8 import os 8 import os
9 import shutil 9 import shutil
10 import sys 10 import sys
11 11
12 script_dir = os.path.dirname(os.path.realpath(__file__)) 12 script_dir = os.path.dirname(os.path.realpath(__file__))
13 src_build_dir = os.path.abspath(os.path.join(script_dir, os.pardir)) 13 src_build_dir = os.path.abspath(os.path.join(script_dir, os.pardir, os.pardir))
14 sys.path.insert(0, src_build_dir) 14 sys.path.insert(0, src_build_dir)
15 15
16 import vs_toolchain 16 import vs_toolchain
17 17
18 18
19 def _HexDigest(file_name): 19 def _HexDigest(file_name):
20 hasher = hashlib.sha256() 20 hasher = hashlib.sha256()
21 afile = open(file_name, 'rb') 21 afile = open(file_name, 'rb')
22 blocksize = 65536 22 blocksize = 65536
23 buf = afile.read(blocksize) 23 buf = afile.read(blocksize)
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 def main(): 100 def main():
101 if len(sys.argv) < 2: 101 if len(sys.argv) < 2:
102 print >>sys.stderr, 'Usage: copy_cdb_to_output.py <output_dir> ' + \ 102 print >>sys.stderr, 'Usage: copy_cdb_to_output.py <output_dir> ' + \
103 '<target_arch>' 103 '<target_arch>'
104 return 1 104 return 1
105 return _CopyCDBToOutput(sys.argv[1], sys.argv[2]) 105 return _CopyCDBToOutput(sys.argv[1], sys.argv[2])
106 106
107 107
108 if __name__ == '__main__': 108 if __name__ == '__main__':
109 sys.exit(main()) 109 sys.exit(main())
OLDNEW
« no previous file with comments | « build/win/copy_cdb_to_output/BUILD.gn ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698