Derek Sollenberger
bfd2db8bfd
Add support for 64-bit devices when using gdb on Android
...
Change-Id: I25c230dc7f417f3e09a01011377e6e0c7814092a
Reviewed-on: https://skia-review.googlesource.com/6689
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2017-01-06 19:57:05 +00:00
Derek Sollenberger
6172d432ba
Add a script and documentation for building the Viewer APK.
...
BUG=skia:6009
DOCS_PREVIEW= https://skia.org/?cl=6660
Change-Id: Ibcf0d1e7f3519e703bc74f0329d0ac92110e70ec
Reviewed-on: https://skia-review.googlesource.com/6660
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-01-06 17:14:31 +00:00
Derek Sollenberger
70120c778a
Add tools to support gdb and simpleperf for android executables.
...
Change-Id: I6e7f41df094ae037538ebd61e40385d7e2e9eb26
Reviewed-on: https://skia-review.googlesource.com/6615
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-01-05 17:16:01 +00:00
Derek Sollenberger
dc71e152ef
Update Android Apps to work with GN.
...
This also includes the removal of an old example whose instructions
are not compatible with GN.
BUG=skia:6009
Change-Id: I2807829ca12c19292ae0f5a7ea250ed453f9a182
Reviewed-on: https://skia-review.googlesource.com/5620
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-01-04 19:38:34 +00:00
Derek Sollenberger
78b35230aa
Archive or update unsupported Android scripts and third-party dependencies.
...
- nothing uses ashmem;
- cpufeatures and native_app_glue are now pulled from the NDK;
- no bots use the scripts in platform_tools/android/bin;
- update scripts to work with GN instead of GYP.
Change-Id: I14f47eeadb3047505e232dd10385f58ef12c73f4
Reviewed-on: https://skia-review.googlesource.com/5422
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2016-12-02 14:11:24 +00:00
branimir.vasic
5c2310c86d
Add mips dsp arch variants to gyp_to_android.py.
...
Fixes Android build for variants mips32r2dsp-fp and mips32r2dspr2-fp by
enabling correct Android.mk file generation.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2359793002
Review-Url: https://codereview.chromium.org/2359793002
2016-09-27 07:37:20 -07:00
kjlubick
b4403ee980
Fix strange failures on Android N
...
We were seeing problems where dm ended with exit code 0, but the step still failed.
It seems they changed what N returns when a thing completes.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2319843003
TBR=bugsbunny
Review-Url: https://codereview.chromium.org/2319843003
2016-09-08 13:04:31 -07:00
liyuqian
e7d15fe870
Update documents/scripts for SampleApp removal
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2140663002
DOCS_PREVIEW= https://skia.org/?cl=2140663002
Review-Url: https://codereview.chromium.org/2140663002
2016-07-12 09:12:39 -07:00
mtklein
f3bc76a12a
Fix MIPS32r2 + DSP2 builders after NDK update.
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2141643002
TBR=djsollen@google.com
CQ_INCLUDE_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-MipsDSP2-Debug-Android-Trybot,Build-Ubuntu-GCC-MipsDSP2-Release-Android-Trybot
Review-Url: https://codereview.chromium.org/2141643002
2016-07-11 10:30:19 -07:00
mtklein
8a6d23257e
ndk: r11c -> r12b
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2140603002
Review-Url: https://codereview.chromium.org/2140603002
2016-07-11 08:27:43 -07:00
benjaminwagner
d48e5b8640
Check for empty output in adb_wait_for_charge.
...
Example error in https://chromium-swarm.appspot.com/user/task/2f96d6439584e411
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2105813003
Review-Url: https://codereview.chromium.org/2105813003
2016-06-29 07:02:54 -07:00
stani
a80bb676d3
Remove check for cmake in android make script.
...
Update docs explaining how to setup Android SDK.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084763003
DOCS_PREVIEW= https://skia.org/?cl=2084763003
Review-Url: https://codereview.chromium.org/2084763003
2016-06-21 13:13:20 -07:00
brianosman
28215d44b3
Support running Viewer via android_gdb_app
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2055453003
Review-Url: https://codereview.chromium.org/2055453003
2016-06-08 13:07:08 -07:00
brianosman
0dd9f2cbc4
Fix argument parsing in android app launcher script
...
Makes the argument match the error message that gets printed (and users'
expectations).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2030123002
Review-Url: https://codereview.chromium.org/2030123002
2016-06-02 11:44:06 -07:00
djsollen
4145792736
Remove VisualBench and its Android implementation.
...
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2018603003
Review-Url: https://codereview.chromium.org/2018603003
2016-05-27 05:39:29 -07:00
djsollen
3be9923105
Fix android scripts now that the $HOST is always lowercase.
...
BUG=skia:5309
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1992873003
Review-Url: https://codereview.chromium.org/1992873003
2016-05-20 07:03:17 -07:00
mtklein
809ccf37ec
Remove NEON runtime detection support.
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1952953004
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review-Url: https://codereview.chromium.org/1952953004
2016-05-05 10:58:39 -07:00
djsollen
3a6aa4ceda
Update gdb_app script to work with NDK r11c
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1936163002
Review-Url: https://codereview.chromium.org/1936163002
2016-05-02 09:19:59 -07:00
djsollen
affacce4c6
Require Android SDK copy of CMake to build Vulkan on Android.
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1930423002
Review-Url: https://codereview.chromium.org/1930423002
2016-04-29 08:09:43 -07:00
borenet
8795962baf
Stop printing warnings about ADB version
...
BUG=skia:5156
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1927973002
Review-Url: https://codereview.chromium.org/1927973002
2016-04-28 09:31:38 -07:00
borenet
ef77ce9000
adb_wait_for_charge: Don't download toolchains
...
BUG=skia:5156
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1926833003
Review-Url: https://codereview.chromium.org/1926833003
2016-04-27 13:44:57 -07:00
djsollen
d574c98c7d
Make the default android build be release_developer.
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1929663002
Review-Url: https://codereview.chromium.org/1929663002
2016-04-27 13:44:28 -07:00
djsollen
460f40507e
Make clang the default Android compiler.
...
BUG=skia:5215
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1919873003
Review URL: https://codereview.chromium.org/1919873003
2016-04-25 11:45:35 -07:00
djsollen
12d62a7d51
VulkanViewer on Android
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1903253003
Review URL: https://codereview.chromium.org/1903253003
2016-04-21 07:59:44 -07:00
djsollen
382949db14
Update android toolchain variable to point to root dir and not the bin
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1900773002
Review URL: https://codereview.chromium.org/1900773002
2016-04-18 11:01:02 -07:00
kjlubick
312398159c
Add support for pyadb to setup_adb.sh
...
BUG=skia:5156
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869813002
Review URL: https://codereview.chromium.org/1869813002
2016-04-07 10:57:27 -07:00
mtklein
8c13cd1aba
Another NDK release. Still just bug fixes.
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864073002
Review URL: https://codereview.chromium.org/1864073002
2016-04-06 06:12:01 -07:00
kjlubick
e577693b3b
Prevent waiting for charge twice
...
BUG=skia:5111
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1840003002
Review URL: https://codereview.chromium.org/1840003002
2016-03-29 05:50:41 -07:00
rmistry
8ce5912fe3
Skip toolchain downloads for a few android tools.
...
This is an attempt to avoid downloading the android toolchain when not required.
I went through all binaries listed in https://code.google.com/p/chromium/codesearch#chromium/build/scripts/slave/recipe_modules/skia/android_flavor.py except for android_ninja.
BUG=skia:5119
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1832883002
Review URL: https://codereview.chromium.org/1832883002
2016-03-28 09:35:41 -07:00
kjlubick
face88a8ce
Forward serial (fixes charging)
...
NOTRY=true
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1832103002
Review URL: https://codereview.chromium.org/1832103002
2016-03-25 09:47:55 -07:00
kjlubick
73233a7575
patch battery charging until recipe is updated
...
BUG=skia:5111
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1834793003
Review URL: https://codereview.chromium.org/1834793003
2016-03-25 05:53:58 -07:00
kjlubick
2e59f1f2fd
Splitting up wait_for_device into two pieces
...
BUG=skia:5111
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1829753004
Review URL: https://codereview.chromium.org/1829753004
2016-03-25 05:22:40 -07:00
mtklein
1215c6ac94
NDK: r11 -> r11b
...
Just bug fixes. Nothing terribly exciting.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1825213007
Review URL: https://codereview.chromium.org/1825213007
2016-03-24 06:44:03 -07:00
djsollen
42d95a0afb
Fix gdb debugging for the latest NDK release.
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1806343003
Review URL: https://codereview.chromium.org/1806343003
2016-03-17 10:45:47 -07:00
djsollen
b3b6beae04
Cleanup download scripts related to new Android NDK.
...
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1810603002
Review URL: https://codereview.chromium.org/1810603002
2016-03-16 08:48:58 -07:00
mtklein
e2a88f244a
Android NDK: r10e -> r11
...
I have tested that skia_lib builds with {gcc,clang} x {arm_v7_neon,arm64} on my Mac.
Bots seem happy.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1780223002
Review URL: https://codereview.chromium.org/1780223002
2016-03-10 08:41:34 -08:00
djsollen
f9deeb66d0
Update android_make to support both --gcc and --clang options.
...
This CL also fixes all the errors that resulted from compiling
with clang and ccache.
BUG=skia:4948
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1774503004
Review URL: https://codereview.chromium.org/1774503004
2016-03-07 12:30:47 -08:00
mtklein
c34940ec16
Remove check for platform_tools/android/third_party/externals.
...
We don't sync anything into it anymore, so a fresh gclient sync won't create it.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1694813004
Review URL: https://codereview.chromium.org/1694813004
2016-02-12 12:54:15 -08:00
djsollen
2a8fcb4647
Update Android framework makefile to build static and shared libs
...
Also use static lib for testing tools and expose includes needed for
other framework testing tools to statically link in Skia.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1696483002
Review URL: https://codereview.chromium.org/1696483002
2016-02-12 08:44:39 -08:00
kkinnunen
4c7040bf8a
SampleApp: Make android_install_app and android_launch_app work consistently
...
Make android_install_app work more consistently:
* App can be "SampleApp" or "VisualBench"
Make android_launch_app work more consistently:
* Parameters to SampleApp are passed correctly
* SampleApp is actually launched
The parameters to "am" need to be quoted, since the command
is run on the device shell.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1589883002
Review URL: https://codereview.chromium.org/1589883002
2016-01-14 06:07:40 -08:00
kkinnunen
7ddfeeddf7
Make android scripts not warn about ADB in newer SDKs
...
The older SDK says:
$ adb version
Android Debug Bridge version 1.0.32
The newer SDK says:
$ adb version
Android Debug Bridge version 1.0.32
Revision eac51f2bb6a8-android
Removes the shebang as the file is not intended to be
run, and the copyright would render it useless.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1583793002
Review URL: https://codereview.chromium.org/1583793002
2016-01-13 22:53:55 -08:00
borenet
f8d4d5c995
Android bots: set battery threshold to 80%
...
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1559913003
Review URL: https://codereview.chromium.org/1559913003
2016-01-04 12:33:26 -08:00
borenet
50850b152f
Android devices: wait for 100% charge
...
Some devices are getting pretty low by the end of the build (3%). No reason to cut it close, bump to 100% charge. This will cause some devices to sit for a while as they charge up.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1556023002
Review URL: https://codereview.chromium.org/1556023002
2016-01-04 10:44:03 -08:00
borenet
f64be44667
adb_wait_for_device: More fixes
...
BUG=skia:4690
Review URL: https://codereview.chromium.org/1527713002
2015-12-15 04:25:39 -08:00
borenet
c9730831fc
adb_wait_for_device: Add battery fallback, support no battery
...
BUG=skia:4690
TBR=rmistry
Review URL: https://codereview.chromium.org/1528563002
2015-12-14 10:07:37 -08:00
borenet
b11c4ff668
adb_wait_for_device: If we can't get the battery level, just exit
...
BUG=skia:4606
TBR=rmistry
NOTREECHECKS=true
Review URL: https://codereview.chromium.org/1529453002
2015-12-14 06:48:43 -08:00
borenet
0b29b728ca
Add minimum battery level to adb_wait_for_device
...
This should prevent the Android bots running out of battery at the
expense of extra time spent waiting at the end of the build.
BUG=skia:4606
Review URL: https://codereview.chromium.org/1522013002
2015-12-14 05:56:46 -08:00
aam
419c37269f
Fix 'debugging on Android' android_gdb_app script.
...
1) com.skia -> com.skia.sample_app
2) pass arguments to android_gdb_app to android_setup.sh so you can build gdbserver binaries for your actual device(rather than default arm64). This allows you to run it like this for example:
./platform_tools/android/bin/android_gdb_app -d nexus_6
BUG=skia:
DOCS_PREVIEW= https://skia.org/?cl=1509853006
Review URL: https://codereview.chromium.org/1509853006
2015-12-10 14:14:56 -08:00
mtklein
e14937e7c4
Update Android toolchains and streamline process.
...
- This updates to r10e / API v21 everywhere.
- This has each host machine fetch the NDK,
run make-standalone-toolchain.sh, and copy gdbserver itself.
(It will do all this once per $ARCH, which is a little inefficient, but it
washes out in steady state.)
BUG=skia:
Review URL: https://codereview.chromium.org/1385463002
2015-10-01 13:24:23 -07:00
borenet
ad54ffc235
adb_wait_for_device: Skip adb wait-for-device
...
This should still wait for the device to be attached and finished
booting, but will prevent no-output timeouts due to
`adb wait-for-device` never finishing.
The effect should be that, when an Android device is disconnected, the
"wait for device" step will run forever, or until the device
reconnects. This should prevent a disconnected device from spreading
purple all over the status page.
BUG=skia:
Review URL: https://codereview.chromium.org/1315753010
2015-09-03 10:41:07 -07:00