| OLD | NEW |
| 1 # Prerequisites | 1 # Prerequisites |
| 2 * a Linux/Mac workstation | 2 * a Linux/Mac workstation |
| 3 * v8 r12178 (on Google Code) or later | 3 * v8 r12178 (on Google Code) or later |
| 4 * an Android emulator or device with matching USB cable | 4 * an Android emulator or device with matching USB cable |
| 5 * make sure [building with GYP](http://code.google.com/p/v8-wiki/wiki/Building
WithGYP) works | 5 * make sure [building with GYP](http://code.google.com/p/v8-wiki/wiki/Building
WithGYP) works |
| 6 | 6 |
| 7 | 7 |
| 8 # Get the code | 8 # Get the code |
| 9 | 9 |
| 10 * Use the instructions from https://code.google.com/p/v8-wiki/wiki/UsingGit to
get the code | 10 * Use the instructions from https://code.google.com/p/v8-wiki/wiki/UsingGit to
get the code |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 # Push stuff onto the device | 39 # Push stuff onto the device |
| 40 * make sure your device is connected | 40 * make sure your device is connected |
| 41 * from your workstation's shell: | 41 * from your workstation's shell: |
| 42 ``` | 42 ``` |
| 43 adb push /file/you/want/to/push /data/local/tmp/v8/ | 43 adb push /file/you/want/to/push /data/local/tmp/v8/ |
| 44 ``` | 44 ``` |
| 45 | 45 |
| 46 | 46 |
| 47 # Compile V8 for Android | 47 # Compile V8 for Android |
| 48 Currently two architectures (`android_arm` and `android_ia32`) are supported, ea
ch in `debug` or `release` mode. The following steps work equally well for both
ARM and ia32, on either the emulator or real devices. | 48 Currently two architectures (`android_arm` and `android_ia32`) are supported, ea
ch in `debug` or `release` mode. The following steps work equally well for both
ARM and ia32, on either the emulator or real devices. |
| 49 |
| 49 * compile: | 50 * compile: |
| 50 ``` | 51 ``` |
| 51 make android_arm.release -j16 | 52 make android_arm.release -j16 |
| 52 ``` | 53 ``` |
| 53 * push the resulting binary to the device: | 54 * push the resulting binary to the device: |
| 54 ``` | 55 ``` |
| 55 adb push out/android_arm.release/d8 /data/local/tmp/v8/d8 | 56 adb push out/android_arm.release/d8 /data/local/tmp/v8/d8 |
| 56 ``` | 57 ``` |
| 57 * the most comfortable way to run it is from your workstation's shell as a one
-off command (rather than starting an interactive shell session on the device),
that way you can use pipes or whatever to process the output as necessary: | 58 * the most comfortable way to run it is from your workstation's shell as a one
-off command (rather than starting an interactive shell session on the device),
that way you can use pipes or whatever to process the output as necessary: |
| 58 ``` | 59 ``` |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 --target=arm-linux-androideabi \ | 93 --target=arm-linux-androideabi \ |
| 93 --with-android-ndk=$ANDROID_NDK_ROOT \ | 94 --with-android-ndk=$ANDROID_NDK_ROOT \ |
| 94 --with-android-version=21 \ | 95 --with-android-version=21 \ |
| 95 --without-intl-api \ | 96 --without-intl-api \ |
| 96 --disable-tests \ | 97 --disable-tests \ |
| 97 --enable-android-libstdcxx \ | 98 --enable-android-libstdcxx \ |
| 98 --enable-pie | 99 --enable-pie |
| 99 make | 100 make |
| 100 adb push -p js/src/shell/js /data/local/tmp/js | 101 adb push -p js/src/shell/js /data/local/tmp/js |
| 101 ``` | 102 ``` |
| OLD | NEW |