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

Side by Side Diff: bin/sync-and-gyp

Issue 2287013003: cleanup dead nanomsg and build_overrides (Closed)
Patch Set: Created 4 years, 3 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 | « DEPS ('k') | build_overrides/build.gni » ('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 2
3 # Copyright 2015 Google Inc. 3 # Copyright 2015 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 # This script will update Skia's dependencies as necessary and run 8 # This script will update Skia's dependencies as necessary and run
9 # gyp if needed. 9 # gyp if needed.
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 for filename in sorted(listfiles('gyp', '*')): 70 for filename in sorted(listfiles('gyp', '*')):
71 with open(filename, 'r') as f: 71 with open(filename, 'r') as f:
72 hasher.update(f.read()) 72 hasher.update(f.read())
73 73
74 find_dirs = [ 74 find_dirs = [
75 'bench', 75 'bench',
76 'fuzz', 76 'fuzz',
77 'gm', 77 'gm',
78 'tests', 78 'tests',
79 'third_party/externals/icu/source/common', 79 'third_party/externals/icu/source/common',
80 'third_party/externals/nanomsg/src',
81 'third_party/externals/sfntly/sfntly', 80 'third_party/externals/sfntly/sfntly',
82 'third_party/externals/shaderc2', 81 'third_party/externals/shaderc2',
83 'tools/VisualBench', 82 'tools/VisualBench',
84 'tools/gpu', 83 'tools/gpu',
85 'tools/kilobench', 84 'tools/kilobench',
86 'tools/skiaserve', 85 'tools/skiaserve',
87 'tools/skiaserve/urlhandlers', 86 'tools/skiaserve/urlhandlers',
88 'tools/vulkan', 87 'tools/vulkan',
89 ] 88 ]
90 89
91 for dir in find_dirs: 90 for dir in find_dirs:
92 for filename in sorted(listfiles(dir, '*.c*')): 91 for filename in sorted(listfiles(dir, '*.c*')):
93 hasher.update(filename + '\n') 92 hasher.update(filename + '\n')
94 93
95 gyp_hash = hasher.hexdigest() 94 gyp_hash = hasher.hexdigest()
96 95
97 def cat_if_exists(path): 96 def cat_if_exists(path):
98 if os.path.exists(path): 97 if os.path.exists(path):
99 with open(path, 'r') as f: 98 with open(path, 'r') as f:
100 return f.read() 99 return f.read()
101 return '' 100 return ''
102 101
103 if cat_if_exists(hash_path).strip() != gyp_hash: 102 if cat_if_exists(hash_path).strip() != gyp_hash:
104 env = os.environ.copy() 103 env = os.environ.copy()
105 if skia_out: 104 if skia_out:
106 env['SKIA_OUT'] = skia_out 105 env['SKIA_OUT'] = skia_out
107 subprocess.call(['python', './gyp_skia'], env=env) 106 subprocess.call(['python', './gyp_skia'], env=env)
108 with open(hash_path, 'w') as o: 107 with open(hash_path, 'w') as o:
109 o.write(gyp_hash) 108 o.write(gyp_hash)
OLDNEW
« no previous file with comments | « DEPS ('k') | build_overrides/build.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698