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

Side by Side Diff: build/android/preprocess_google_play_services.py

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « build/android/method_count.py ('k') | build/android/provision_devices.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 # 2 #
3 # Copyright 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 '''Prepares the Google Play services split client libraries before usage by 7 '''Prepares the Google Play services split client libraries before usage by
8 Chrome's build system. 8 Chrome's build system.
9 9
10 We need to preprocess Google Play services before using it in Chrome 10 We need to preprocess Google Play services before using it in Chrome
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 import glob 66 import glob
67 import itertools 67 import itertools
68 import json 68 import json
69 import os 69 import os
70 import re 70 import re
71 import shutil 71 import shutil
72 import stat 72 import stat
73 import sys 73 import sys
74 74
75 from datetime import datetime 75 from datetime import datetime
76 from pylib import cmd_helper 76 from devil.utils import cmd_helper
77 from pylib import constants 77 from pylib import constants
78 78
79 sys.path.append( 79 sys.path.append(
80 os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'android', 'gyp')) 80 os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'android', 'gyp'))
81 from util import build_utils 81 from util import build_utils
82 82
83 83
84 M2_PKG_PATH = os.path.join('com', 'google', 'android', 'gms') 84 M2_PKG_PATH = os.path.join('com', 'google', 'android', 'gms')
85 OUTPUT_FORMAT_VERSION = 1 85 OUTPUT_FORMAT_VERSION = 1
86 VERSION_FILE_NAME = 'version_info.json' 86 VERSION_FILE_NAME = 'version_info.json'
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 with open(os.path.join(stub_res_location, '.res-stamp'), 'w') as stamp: 290 with open(os.path.join(stub_res_location, '.res-stamp'), 'w') as stamp:
291 content_str = 'google_play_services_version: %s\nutc_date: %s\n' 291 content_str = 'google_play_services_version: %s\nutc_date: %s\n'
292 stamp.write(content_str % (play_services_full_version, generation_date)) 292 stamp.write(content_str % (play_services_full_version, generation_date))
293 293
294 shutil.copyfile(tmp_version_file_path, 294 shutil.copyfile(tmp_version_file_path,
295 os.path.join(out_paths['root'], VERSION_FILE_NAME)) 295 os.path.join(out_paths['root'], VERSION_FILE_NAME))
296 296
297 297
298 if __name__ == '__main__': 298 if __name__ == '__main__':
299 sys.exit(main()) 299 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/method_count.py ('k') | build/android/provision_devices.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698