• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:android

1 # ANGLE for Android
3 **Important note**: Android builds currently require Linux.
5 ## Setting up the ANGLE build for Android
8 gclient. Then edit your `.gclient` to add `target_os = ['android']` to check out Android
11 The following command will open a text editor to populate GN args for an Android Release build:
13 gn args out/Android
16 Once the editor is up, paste the following GN args to generate an Android build, and save the file.
18 target_os = "android"
23 use_remoteexec = true # Googlers-only! If you're not a Googler remove this.
26 More targeted GN arg combinations can be found [below](#android-gn-args-combinations).
29 - Visit the ANGLE [CI Waterfall](https://ci.chromium.org/p/angle/g/ci/console).
30 - Open any recent Android build.
31 - Expand the for "lookup GN args" step and copy the GN args.
32 - If you are not a Googler, also omit the `use_remoteexec` flag.
34 ## Building ANGLE for Android
36 Build all ANGLE targets using the following command:
39 autoninja -C out/Android
42 Most ANGLE build targets are supported. We do not support the ANGLE samples on
43 Android currently. ANGLE tests will be in your `out/Android` directory, and can
47 ./out/Android/angle_perftests --verbose --local-output --gtest_filter=DrawCallPerf*
50 Additional details are in [Android Test Instructions][AndroidTest].
52 Additional Android dEQP notes can be found in [Running dEQP on Android](dEQP.md#Running-dEQP-on-And…
54 If you are targeting WebGL and want to run with ANGLE, you will need to build within a full
55 Chromium checkout. Please follow the [Chromium build instructions for Android][ChromeAndroid].
57 Build the `chrome_public_apk` target, and follow the [GPU Testing][GPU Testing] doc, using
58 `--browser=android-chromium`. Make sure to set your `CHROMIUM_OUT_DIR` environment variable, so
62 [GPU Testing]: http://www.chromium.org/developers/testing/gpu-testing#TOC-Running-the-GPU-Tests-Loc…
66 ## Using ANGLE as the Android OpenGL ES driver
68 Starting with Android 10 (Q), you can load ANGLE as your device's OpenGL ES driver.
72 access, see the [Android documentation][UserDebug] for how to build from source.
74 To build the ANGLE APK, you must first bootstrap your build by following the steps
75 [above](#ANGLE-for-Android). The steps below will result in an APK that contains the ANGLE
76 libraries and can be installed on any Android 10+ build.
78 Apps can be opted in to ANGLE [one at a time](#ANGLE-for-a-single-OpenGL-ES-app), in
79 [groups](#ANGLE-for-multiple-OpenGL-ES-apps), or [globally](#ANGLE-for-all-OpenGL-ES-apps). The
85 Using `gn args` from above, you can build the ANGLE apk using:
87 autoninja -C out/Android angle_apks
93 adb install -r -d --force-queryable out/Android/apks/AngleLibraries.apk
98 package:/data/app/org.chromium.angle-HpkUceNFjoLYKPbIVxFWLQ==/base.apk
117 - `angle` : Use ANGLE.
118 - `native` : Use the native OpenGL ES driver.
119 - `default` : Use the default driver. This allows the platform to decide which driver to use.
157 $ adb logcat -d | grep ANGLE
163 Note that this might be logged by the built-in ANGLE and not the installed apk if `angle_debug_pack…
179 $ adb logcat -d | grep ANGLE
186 ## Android GN args combinations
188 The [above](#angle-gn-args-for-android) GN args only modify default values to generate a Debug
189 build for Android. Below are some common configurations used for different scenarios.
195 gn args --list <dir>
203 target_os = "android"
216 target_os = "android"
224 Application compatibility may be increased by enabling non-conformant features and extensions with
233build the ANGLE traces, jump to [ANGLE Restricted Traces](https://chromium.googlesource.com/angle/…
235 ## Command line for launching chrome on Android
240 Targets run_chrome_public_apk_* is for launching chrome on Android.
242 To use this Makefile, download it into chrome build tree, and use below commands (for more targets …
247 # Build and run chrome on Android device with GLRenderer
250 # Build and run chrome on Android device with SkiaRenderer
256 # Symbolize Android crash stack
259 # Build and run gpu_unittests
260 $ make gpu_unittests GTEST_FILTER="gtest-filters" # If GTEST_FILTER is not specified, all tests wil…
263 [Debuggable]: https://developer.android.com/guide/topics/manifest/application-element#debug
264 [UserDebug]: https://source.android.com/setup/build/building