| # Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| # Run ProGuard, Google's internal version |
| from __future__ import print_function |
| PROGUARD_JAR = os.path.join(utils.REPO_ROOT, 'third_party', 'proguard', |
| 'proguard_internal_159423826', 'ProGuard_deploy.jar') |
| def run(args, track_memory_file = None): |
| cmd.extend(['tools/track_memory.sh', track_memory_file]) |
| cmd.extend(['java', '-jar', PROGUARD_JAR]) |
| subprocess.check_call(cmd) |
| if __name__ == '__main__': |