Platform mode uses explicit paths to APKs rather than the current system
of the name + the output directory. This is also a prelude to installing
an additional apk for instrumentation tests that will use the embedded
test server.
BUG=
Review URL: https://codereview.chromium.org/1465523002
Cr-Original-Commit-Position: refs/heads/master@{#360922}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7873c6dcee70af978571d9bdf12cf650ef296d57
This is a non-incremental implementation. It adds @MainDex to classes used by
the renderer to keep them in the main dex, as it can't load secondary dexes
when using the multidex support library (i.e., on K and below).
BUG=272790
TBR=newt@chromium.org,sky@chromium.org
Review URL: https://codereview.chromium.org/1408163009
Cr-Original-Commit-Position: refs/heads/master@{#359453}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f667d3b3a1b953800bb5325c7b8d62775a1c5aeb
There are many types of instrumentation in Chromium: Emma code coverage, order
profiling etc. This CL renames instr_action.gypi to emma_instr_action.gypi to
make it clearer what type of instrumentation the file deals with.
BUG=None
Review URL: https://codereview.chromium.org/1396023002
Cr-Original-Commit-Position: refs/heads/master@{#353863}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 58bb840b294fccad8ed5e4860243ce72ae4ba08c
Added a library_jars_paths variable for building apk
targets to allow embedders to build apks that depend
on custom platform libraries.
BUG=
Review URL: https://codereview.chromium.org/1355323003
Cr-Original-Commit-Position: refs/heads/master@{#351327}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 015499d2758f53fd1fde45f02b99d34d96a3323e
Instead of using the locale zip in dep graph, alternative locale zip
could be used when building APK.
- Using dedicated variables in all_dependencies_settings for locale zip
- Not using locale zip from all_dependences_settings if alternative file
specified.
- Make resources_zip_path in locale_pak_resources.gypi setable, so the
file could be used as alternative lcoale zip for APK.
BUG=535379
Review URL: https://codereview.chromium.org/1357423011
Cr-Original-Commit-Position: refs/heads/master@{#351190}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c0ca6bacc1e4bb753d451618d84fc3700089d7c9
If errorprone finds an error in non-Chromium code the build will
fail. This shouldn't happen, so I am disabling errorprone on
non-Chromium code.
BUG=
Review URL: https://codereview.chromium.org/1314493010
Cr-Original-Commit-Position: refs/heads/master@{#345941}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bb9e4863c7dd58c17fd53cd025f7f0dad17a52a5
This updates errorprone from 1.1.2 to 2.0.1. Version 2.0.1 includes
some fixes that lets errorprone work if you have java 8. I also
deleted the ChromiumErrorProneCompiler to just use the default
ErrorProneCompiler instead. Currently, the ChromiumErrorProneCompiler
doesn't override any default behavior and would need to be
changed a good bit to be compatible with 2.0.1.
BUG=517259
Review URL: https://codereview.chromium.org/1286613002
Cr-Original-Commit-Position: refs/heads/master@{#345688}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 29d8817ee93db9e2ba9177a456a4992e3ad54d99
ASan needs to interpose operator new/delete symbols to provide good
allocation/deallocation stacks. This requires shared linking of the
C++ standard library.
BUG=515261
Review URL: https://codereview.chromium.org/1263713005
Cr-Original-Commit-Position: refs/heads/master@{#341675}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 301af9347c32ac621ab06b08eb089f8ee643795f
This silences the warning "bootstrap class path not set in conjunction
with -source 1.7" when building with OpenJDK 1.8.
The multiple_proguards test was removed as javac will now catch the use
of host packages that do not exist on Android.
BUG=
Review URL: https://codereview.chromium.org/1213433007
Cr-Original-Commit-Position: refs/heads/master@{#337805}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 718538ef3a6e6f7104101ef37502052c88c5641c
Apply relocation packing to ia32 and mips32 builds.
Deferred for x64 pending migration of an ndk bug fix into the
chromium tree. See b/20532404.
BUG=385553
Review URL: https://codereview.chromium.org/1178573002
Cr-Original-Commit-Position: refs/heads/master@{#335921}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 00ad6ff02565ee933f61b08c7f38723a307d7902
These changes let the errorprone compiler find problems when building Android.
A global flag disabled Errorprone by default.
When enabled, code problems will be shown with suggestions on how to fix them.
BUG=485599
Review URL: https://codereview.chromium.org/1136573002
Cr-Original-Commit-Position: refs/heads/master@{#335509}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6ffb1179d6adf08edd64848b45b7415b6b6de43d
Startup data files are now stored uncompressed within the .apk, increasing size of the apk, but decreasing total disk requirements (since they don't need to be extracted).
BUG=394502
Review URL: https://codereview.chromium.org/1156873002
Cr-Original-Commit-Position: refs/heads/master@{#335271}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6f3002d9e87d690bb368931faa2c3ba4638f811e
Also changes so that browser process caches a FD to the file rather than re-opening it for each child process.
We store icudtl.dat uncompressed in the apk now, increasing the apk size, but saving 6mb on-disk.
BUG=394502
Review URL: https://codereview.chromium.org/1147213004
Cr-Original-Commit-Position: refs/heads/master@{#335261}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f3930cfae7a93c5065588c9ba7be5c6927f46588
Android-M sdk moved these build-tools to a different directory
and so we need to be able to set them in GYP_DEFINES for M sdk builds.
BUG=None
Review URL: https://codereview.chromium.org/1162943008
Cr-Original-Commit-Position: refs/heads/master@{#332959}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2a145dab21f4db16cca74c3f2d89fe911cc582b1
- This is in preparation for split apks, where we'll need to call
apkbuilder multiple times.
- This also makes including a classes.dex file optional
BUG=484797
Review URL: https://codereview.chromium.org/1138953003
Cr-Original-Commit-Position: refs/heads/master@{#330159}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8dabdfa9a758f7a7ac73fa4f5bbc657183b1a3e2
Android AAPT 21+ will automatically move attributes to a version
of the XML file with -vXX resource qualifier. So we no longer need
our generate_v14_compatible_resources.py script.
But AAPT only drops the attributes, so if we don't use our script,
we need to put left/right in addition to start/end in our layout xmls.
The plan is, disabling our script for Android support library and
keep using for ourselves, until we can drop the script entirely
when we discontinue support for JB.
TBR=cjhopman@chromium.org
BUG=487391
Review URL: https://codereview.chromium.org/1136953009
Cr-Original-Commit-Position: refs/heads/master@{#329947}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2b7115f8e111708c1e52257c34f91dc1549c298f
Originally landed in crrev.com/1104703003
Reverted in crrev.com/1129103002 due to breaking GN APKs with no
resouces. This now handles the case where aapt doesn't generate an
R.txt (no resources) by creating an empty R.txt.
Generate extra packages' R.java files only containing the resources
listed in their R.txt files. This significantly reduces the number of
DEX field IDs taken up by resources.
BUG=480036
R=cjhopman,yfriedman
Review URL: https://codereview.chromium.org/1136653002
Cr-Original-Commit-Position: refs/heads/master@{#329219}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4b5d0300e3fa2a382ac3c1c157247a82583d7ed0
Reason for revert:
Breaks gn apks with no resources.
Original issue's description:
> Actually use --extra-r-text-files in process_resources.py
>
> Generate extra packages' R.java files only containing the resources
> listed in their R.txt files. This significantly reduces the number of
> DEX field IDs taken up by resources.
>
> BUG=480036
> R=cjhopman
>
> Committed: https://crrev.com/a92cf235709397c737d5d9fdbadfb62e497c0334
> Cr-Commit-Position: refs/heads/master@{#328565}
TBR=yfriedman@chromium.org,msw@chromium.org,cullinan@amazon.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=480036
Review URL: https://codereview.chromium.org/1129103002
Cr-Original-Commit-Position: refs/heads/master@{#328664}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 61ff577cdede4b1e04846ef4af71659d194219b0