Tamas Kenez | 0e10c56 | 2017-06-08 10:00:34 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
| 4 | # for details. All rights reserved. Use of this source code is governed by a |
| 5 | # BSD-style license that can be found in the LICENSE file. |
| 6 | |
| 7 | # Compile AOSP jars with D8 (CompatDX) and print the code size in bytes |
| 8 | |
| 9 | set -e |
| 10 | |
| 11 | readonly DX_REPLAY="third_party/android_cts_baseline/dx_replay" |
| 12 | |
| 13 | "${DX_REPLAY}/replay_script.py" \ |
| 14 | java -jar "build/libs/compatdx.jar" >/dev/null |
| 15 | |
| 16 | codesize=$(du -b -d 0 "third_party/android_cts_baseline/dx_replay/out" \ |
| 17 | | grep -Eo "^[0-9]+") |
| 18 | |
| 19 | echo "Aosp(CodeSize): $codesize" |
| 20 | |
| 21 | |