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

Side by Side Diff: build/android/pylib/utils/isolator.py

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import fnmatch 5 import fnmatch
6 import glob 6 import glob
7 import os 7 import os
8 import shutil 8 import shutil
9 import sys 9 import sys
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 def DefaultConfigVariables(): 26 def DefaultConfigVariables():
27 return { 27 return {
28 'CONFIGURATION_NAME': constants.GetBuildType(), 28 'CONFIGURATION_NAME': constants.GetBuildType(),
29 'OS': 'android', 29 'OS': 'android',
30 'asan': '0', 30 'asan': '0',
31 'chromeos': '0', 31 'chromeos': '0',
32 'component': 'static_library', 32 'component': 'static_library',
33 'fastbuild': '0', 33 'fastbuild': '0',
34 'icu_use_data_file_flag': '1', 34 'icu_use_data_file_flag': '1',
35 'libpeer_target_type': 'static_library',
36 'lsan': '0', 35 'lsan': '0',
37 # TODO(maruel): This may not always be true. 36 # TODO(maruel): This may not always be true.
38 'target_arch': 'arm', 37 'target_arch': 'arm',
39 'use_openssl': '0', 38 'use_openssl': '0',
40 'use_ozone': '0', 39 'use_ozone': '0',
41 'v8_use_external_startup_data': '0', 40 'v8_use_external_startup_data': '0',
42 } 41 }
43 42
44 43
45 class Isolator(object): 44 class Isolator(object):
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 shutil.move(os.path.join(root, filename), paks_dir) 153 shutil.move(os.path.join(root, filename), paks_dir)
155 154
156 # Move everything in PRODUCT_DIR to top level. 155 # Move everything in PRODUCT_DIR to top level.
157 deps_product_dir = os.path.join(deps_out_dir, constants.GetBuildType()) 156 deps_product_dir = os.path.join(deps_out_dir, constants.GetBuildType())
158 if os.path.isdir(deps_product_dir): 157 if os.path.isdir(deps_product_dir):
159 for p in os.listdir(deps_product_dir): 158 for p in os.listdir(deps_product_dir):
160 shutil.move(os.path.join(deps_product_dir, p), self._isolate_deps_dir) 159 shutil.move(os.path.join(deps_product_dir, p), self._isolate_deps_dir)
161 os.rmdir(deps_product_dir) 160 os.rmdir(deps_product_dir)
162 os.rmdir(deps_out_dir) 161 os.rmdir(deps_out_dir)
163 162
OLDNEW
« no previous file with comments | « build/android/pylib/utils/flakiness_dashboard_results_uploader.py ('k') | build/android/pylib/utils/mock_calls.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698