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

Side by Side Diff: build/android/gyp/util/proguard_util.py

Issue 2182303002: Merging under test java into instrumentation test java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@runtimelibrary
Patch Set: Addressing agrieve's comments Created 4 years, 4 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 os 5 import os
6 import re 6 import re
7 from util import build_utils 7 from util import build_utils
8 8
9 9
10 class _ProguardOutputFilter(object): 10 class _ProguardOutputFilter(object):
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 assert self._injars is not None 98 assert self._injars is not None
99 assert self._outjar is not None 99 assert self._outjar is not None
100 assert self._configs is not None 100 assert self._configs is not None
101 cmd = [ 101 cmd = [
102 'java', '-jar', self._proguard_jar_path, 102 'java', '-jar', self._proguard_jar_path,
103 '-forceprocessing', 103 '-forceprocessing',
104 ] 104 ]
105 if self._tested_apk_info_path: 105 if self._tested_apk_info_path:
106 tested_apk_info = build_utils.ReadJson(self._tested_apk_info_path) 106 tested_apk_info = build_utils.ReadJson(self._tested_apk_info_path)
107 self._configs += tested_apk_info['configs'] 107 self._configs += tested_apk_info['configs']
108 self._injars = [
109 p for p in self._injars if not p in tested_apk_info['inputs']]
110 if not self._libraries:
111 self._libraries = []
112 self._libraries += tested_apk_info['inputs']
smaier 2016/07/28 19:19:19 @jbudorick Removing lines 108/109 and 112 are what
113 self._mapping = tested_apk_info['mapping']
114 cmd += [
115 '-dontobfuscate',
116 '-dontoptimize',
117 '-dontshrink',
118 '-dontskipnonpubliclibraryclassmembers',
119 ]
120 108
121 if self._mapping: 109 if self._mapping:
122 cmd += [ 110 cmd += [
123 '-applymapping', self._mapping, 111 '-applymapping', self._mapping,
124 ] 112 ]
125 113
126 if self._libraries: 114 if self._libraries:
127 cmd += [ 115 cmd += [
128 '-libraryjars', ':'.join(self._libraries), 116 '-libraryjars', ':'.join(self._libraries),
129 ] 117 ]
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 stderr_filter=stderr_filter) 175 stderr_filter=stderr_filter)
188 176
189 this_info = { 177 this_info = {
190 'inputs': self._injars, 178 'inputs': self._injars,
191 'configs': self._configs, 179 'configs': self._configs,
192 'mapping': self._outjar + '.mapping', 180 'mapping': self._outjar + '.mapping',
193 } 181 }
194 182
195 build_utils.WriteJson(this_info, self._outjar + '.info') 183 build_utils.WriteJson(this_info, self._outjar + '.info')
196 184
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698