| # Copyright (c) 2018, 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. |
| def run(args, build=True): |
| gradle.RunGradle(['copyMavenDeps']) |
| cmd.append(jdk.GetJavaExecutable()) |
| cp = ":".join([os.path.join(utils.REPO_ROOT, 'build/deps/asm-7.1.jar'), |
| os.path.join(utils.REPO_ROOT, 'build/deps/asm-util-7.1.jar')]) |
| cmd.append('org.objectweb.asm.util.ASMifier') |
| result = subprocess.check_output(cmd) |
| if arg in ("--build", "--no-build"): |
| elif arg == "--no-debug": |
| elif arg in ("-help", "--help", "-debug"): |
| print "asmifier.py [--no-build] [--no-debug] <classfile>*" |
| print " --no-build Don't run R8 dependencies." |
| print " --no-debug Don't include local variable information in output." |
| except subprocess.CalledProcessError as e: |
| # In case anything relevant was printed to stdout, normally this is already |
| if __name__ == '__main__': |