Граф коммитов

208 Коммитов

Автор SHA1 Сообщение Дата
jbudorick 75acdc80f9 [Android] Run lint using a cache in the output directory.
BUG=583661

Review URL: https://codereview.chromium.org/1815563005

Cr-Original-Commit-Position: refs/heads/master@{#382306}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c2b563ca5489aaf7579a4b9f389533b7af336187
2016-03-21 16:44:33 +00:00
wnwen acb3fe64e0 Also adds debug build flag.
BUG=583690

Review URL: https://codereview.chromium.org/1597273005

Cr-Original-Commit-Position: refs/heads/master@{#375666}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b0d6314305ddd99c0808a0a41e90b7feb89a79ea
2016-02-16 21:30:49 +00:00
jbudorick 2e175f8fb8 [Android] Rework multidex and enable multidex for unit_tests_apk. (RELAND 2)
this is a reland of https://codereview.chromium.org/1590243003/

BUG=272790
TBR=thakis@chromium.org,yfriedman@chromium.org,phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/1594653002

Cr-Original-Commit-Position: refs/heads/master@{#369906}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 070dd8c416495cb051617b05681353e096c463b7
2016-01-16 01:23:53 +00:00
jbudorick c8bafde391 Revert of [Android] Rework multidex and enable multidex for unit_tests_apk. (RELAND) (patchset #2 id:20001 of https://codereview.chromium.org/1590243003/ )
Reason for revert:
mysterious compile errors on Android appeared two builds after this landed.

https://build.chromium.org/p/chromium/builders/Android/builds/50690

Original issue's description:
> [Android] Rework multidex and enable multidex for unit_tests_apk. (RELAND)
>
> This is a reland of https://codereview.chromium.org/1581563003
>
> BUG=272790
> TBR=thakis@chromium.org,yfriedman@chromium.org,phajdan.jr@chromium.org
>
> Committed: https://crrev.com/ab450c5ede0635194331286088d0f488f4086ba5
> Cr-Commit-Position: refs/heads/master@{#369815}

TBR=agrieve@chromium.org,thakis@chromium.org,yfriedman@chromium.org,phajdan.jr@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=272790

Review URL: https://codereview.chromium.org/1587673014

Cr-Original-Commit-Position: refs/heads/master@{#369864}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1c4276c2ef480164f6cef4d79e98ffcebadea44d
2016-01-15 22:22:31 +00:00
jbudorick 8cfa662c60 [Android] Rework multidex and enable multidex for unit_tests_apk. (RELAND)
This is a reland of https://codereview.chromium.org/1581563003

BUG=272790
TBR=thakis@chromium.org,yfriedman@chromium.org,phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/1590243003

Cr-Original-Commit-Position: refs/heads/master@{#369815}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ab450c5ede0635194331286088d0f488f4086ba5
2016-01-15 19:44:53 +00:00
vasilii ff65bc0f65 Revert of [Android] Rework multidex and enable multidex for unit_tests_apk. (patchset #7 id:120001 of https://codereview.chromium.org/1581563003/ )
Reason for revert:
Broke compilation on Android

https://build.chromium.org/p/chromium/builders/Android/builds/50665

FAILED: cd ../../components; python ../build/android/gyp/apk_obfuscate.py --configuration-name Release --android-sdk /b/build/slave/Android/build/src/third_party/android_tools/sdk//platforms/android-23 --android-sdk-tools /b/build/slave/Android/build/src/third_party/android_tools/sdk//build-tools/23.0.1 --android-sdk-jar /b/build/slave/Android/build/src/third_party/android_tools/sdk//platforms/android-23/android.jar "--input-jars-paths=/b/build/slave/Android/build/src/third_party/android_tools/sdk//extras/android/support/multidex/library/libs/android-support-multidex.jar \"../out/Release/lib.java/jsr_305_javalib.jar\" \"../out/Release/lib.java/base_java.jar\" /b/build/slave/Android/build/src/third_party/android_tools/sdk//extras/android/support/annotations/android-support-annotations.jar \"../out/Release/lib.java/cronet_api.jar\" \"../out/Release/lib.java/url_java.jar\" \"../out/Release/lib.java/net_java.jar\" \"../out/Release/lib.java/cronet_java.jar\" \"../out/Release/lib.java/chromium_apk_cronet_perf_test_apk.jar\"" "--proguard-configs=cronet/android/proguard.cfg \"../out/Release/cronet_perf_test_apk/proguard.txt\"" --test-jar-path ../out/Release/test.lib.java/CronetPerfTest.jar --obfuscated-jar-path ../out/Release/cronet_perf_test_apk/obfuscated.jar --proguard-jar-path ../third_party/proguard/lib/proguard.jar --stamp ../out/Release/cronet_perf_test_apk/obfuscate.stamp --testapp --proguard-enabled
Traceback (most recent call last):
  File "../build/android/gyp/apk_obfuscate.py", line 185, in <module>
    sys.exit(main(sys.argv[1:]))
  File "../build/android/gyp/apk_obfuscate.py", line 167, in main
    DoProguard(options)
  File "../build/android/gyp/apk_obfuscate.py", line 124, in DoProguard
    proguard.CheckOutput()
  File "/b/build/slave/Android/build/src/build/android/gyp/util/proguard_util.py", line 180, in CheckOutput
    stderr_filter=stderr_filter)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/build_utils.py", line 162, in CheckOutput
    raise CalledProcessError(cwd, args, stdout + stderr)
util.build_utils.CalledProcessError: Command failed: ( cd /b/build/slave/Android/build/src/components; java -jar ../third_party/proguard/lib/proguard.jar -forceprocessing -libraryjars /b/build/slave/Android/build/src/third_party/android_tools/sdk//platforms/android-23/android.jar -injars /b/build/slave/Android/build/src/third_party/android_tools/sdk//extras/android/support/multidex/library/libs/android-support-multidex.jar:../out/Release/lib.java/jsr_305_javalib.jar:../out/Release/lib.java/base_java.jar:/b/build/slave/Android/build/src/third_party/android_tools/sdk//extras/android/support/annotations/android-support-annotations.jar:../out/Release/lib.java/cronet_api.jar:../out/Release/lib.java/url_java.jar:../out/Release/lib.java/net_java.jar:../out/Release/lib.java/cronet_java.jar:../out/Release/lib.java/chromium_apk_cronet_perf_test_apk.jar -include cronet/android/proguard.cfg -include ../out/Release/cronet_perf_test_apk/proguard.txt -outjars ../out/Release/cronet_perf_test_apk/obfuscated.jar -dump ../out/Release/cronet_perf_test_apk/obfuscated.jar.dump -printseeds ../out/Release/cronet_perf_test_apk/obfuscated.jar.seeds -printusage ../out/Release/cronet_perf_test_apk/obfuscated.jar.usage -printmapping ../out/Release/cronet_perf_test_apk/obfuscated.jar.mapping )
Warning: org.chromium.base.multidex.ChromiumMultiDexInstaller: can't find referenced class org.chromium.base.multidex.ChromiumMultiDex
Warning: org.chromium.base.multidex.ChromiumMultiDexInstaller: can't find referenced class org.chromium.base.multidex.ChromiumMultiDex
Warning: there were 2 unresolved references to classes or interfaces.
         You may need to specify additional library jars (using '-libraryjars').
Error: Please correct the above warnings first.

Original issue's description:
> [Android] Rework multidex and enable multidex for unit_tests_apk.
>
> This allows multidex to be used in release builds.
>
> BUG=272790
>
> Committed: https://crrev.com/f743bef34d49987c0f1f69e2f0bb6cb8beb03bf5
> Cr-Commit-Position: refs/heads/master@{#369715}

TBR=phajdan.jr@chromium.org,agrieve@chromium.org,dpranke@chromium.org,thakis@chromium.org,yfriedman@chromium.org,jbudorick@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=272790

Review URL: https://codereview.chromium.org/1587253003

Cr-Original-Commit-Position: refs/heads/master@{#369717}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ac74e7a74cd2e700b1953f0542c09a72c672b1b1
2016-01-15 10:19:30 +00:00
jbudorick 777bd5125e [Android] Rework multidex and enable multidex for unit_tests_apk.
This allows multidex to be used in release builds.

BUG=272790

Review URL: https://codereview.chromium.org/1581563003

Cr-Original-Commit-Position: refs/heads/master@{#369715}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f743bef34d49987c0f1f69e2f0bb6cb8beb03bf5
2016-01-15 10:00:03 +00:00
michaelbai fb14138066 Using alternative_android_sdk_jar in process_resources, package_resources
BUG=576852

Review URL: https://codereview.chromium.org/1587513002

Cr-Original-Commit-Position: refs/heads/master@{#369287}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c58222a7a1486b36fb8718972a0e48a76b7174af
2016-01-14 02:30:19 +00:00
danakj 2639200934 Revert of [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer. (patchset #13 id:240001 of https://codereview.chromium.org/1465383003/ )
Reason for revert:
Android compile failing with related error: https://code.google.com/p/chromium/issues/detail?id=569991

Original issue's description:
> [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer.
>
> BUG=488195
>
> Committed: https://crrev.com/06215e9286247b08ff6c958f725c6e5185c4acd1
> Cr-Commit-Position: refs/heads/master@{#365254}

TBR=tedchoc@chromium.org,yfriedman@chromium.org,agrieve@chromium.org,mef@chromium.org,thakis@chromium.org,jbudorick@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=488195

Review URL: https://codereview.chromium.org/1526183002

Cr-Original-Commit-Position: refs/heads/master@{#365309}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: eb58d9c805c50f85e4a04258523cf49e5c7cc5bb
2015-12-15 20:16:01 +00:00
jbudorick 24b478b0bd [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer.
BUG=488195

Review URL: https://codereview.chromium.org/1465383003

Cr-Original-Commit-Position: refs/heads/master@{#365254}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 06215e9286247b08ff6c958f725c6e5185c4acd1
2015-12-15 15:23:36 +00:00
jbudorick 6eef731f85 [Android] Add a configurable environment for devil/. (RELAND 2)
This is a reland of https://codereview.chromium.org/1399273002

BUG=476719

Review URL: https://codereview.chromium.org/1416703003

Cr-Original-Commit-Position: refs/heads/master@{#363204}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0c2a94ab87e6351b924a19932442e85a8f786fa0
2015-12-04 14:28:57 +00:00
jbudorick 9e5bfd7163 [Android] Make generated test scripts pass apk paths.
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
2015-11-20 21:48:01 +00:00
pkotwicz 7f187c4dd7 Refactor emma_instr.py in preparation for porting EMMA GYP rules to GN
Notable changes:
- 'coverage_file' & 'sources_list_file' arguments now take complete paths
- 'sources' argument renamed to 'source_dirs'
- 'source_files' argument added which takes in a list of source Java files
- 'depfile' argument added

BUG=535290

Cr-Commit-Position: refs/heads/master@{#359980}

Review URL: https://codereview.chromium.org/1448223004

Cr-Original-Commit-Position: refs/heads/master@{#360376}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 17ec244eb92d303b49b3f89eace52ac38d3698d5
2015-11-18 18:55:13 +00:00
pkotwicz 4811a0b4b7 Remove unused instr_action == 'instrument_classes' option from emma_instr.py
BUG=535290

Review URL: https://codereview.chromium.org/1445383002

Cr-Original-Commit-Position: refs/heads/master@{#360164}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5a353f01b5df17dbb8ccd73485b5253105d28d0d
2015-11-17 21:29:23 +00:00
jbudorick 58d24b0a11 [Android] add missing comma to multidex gyp parameter configuration.
Missed a comma in https://codereview.chromium.org/1408163009/

BUG=272970
TBR=yfriedman@chromium.org

Review URL: https://codereview.chromium.org/1436943007

Cr-Original-Commit-Position: refs/heads/master@{#359483}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c6d60262a2f0361de2921107c5191d9c9775da4
2015-11-13 03:05:47 +00:00
jbudorick fff112ffeb [Android] Enable multidex for debug builds of ChromePublic.
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
2015-11-13 00:45:41 +00:00
jbudorick 9ec9f0692b Revert of [Android] Add a configurable environment for devil/. (RELAND) (patchset #12 id:220001 of https://codereview.chromium.org/1399273002/ )
Reason for revert:
broke cluster telemetry: https://code.google.com/p/skia/issues/detail?id=4506

Original issue's description:
> [Android] Add a configurable environment for devil/. (RELAND)
>
> This is a reland of https://codereview.chromium.org/1316413003/
>
> BUG=476719
>
> Committed: https://crrev.com/06869eebcab4b41d21e96ea2df732a2b40914fe4
> Cr-Commit-Position: refs/heads/master@{#355683}

TBR=aiolos@chromium.org,nednguyen@google.com,mikecase@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=476719

Review URL: https://codereview.chromium.org/1415413005

Cr-Original-Commit-Position: refs/heads/master@{#355774}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 814dac5c6b2e257aa493fc7b0541412a04440ff2
2015-10-23 13:42:37 +00:00
jbudorick 35c294bd5b [Android] Add a configurable environment for devil/. (RELAND)
This is a reland of https://codereview.chromium.org/1316413003/

BUG=476719

Review URL: https://codereview.chromium.org/1399273002

Cr-Original-Commit-Position: refs/heads/master@{#355683}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 06869eebcab4b41d21e96ea2df732a2b40914fe4
2015-10-23 00:07:15 +00:00
michaelbai e3dc92ffb9 Add flag to enable proguard for debug build.
BUG=544552

Review URL: https://codereview.chromium.org/1408383002

Cr-Original-Commit-Position: refs/heads/master@{#354891}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cb2b460ee59dd894681c0e8b2240113f715fa588
2015-10-19 22:30:50 +00:00
pkotwicz 3a42a5a0be Rename instr_action.gypi to emma_instr_action.gypi
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
2015-10-13 21:47:25 +00:00
tserng 2fbc660a0a Allow linking of library jars in building apk targets
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
2015-09-29 16:13:36 +00:00
michaelbai f79fbeb60b Support alternative locale zip
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
2015-09-28 22:52:17 +00:00
michaelbai 80b3f44db2 Add app-as-shared-library flag in java_apk.gypi
So it could be used for building apk

BUG=532598

Review URL: https://codereview.chromium.org/1348893002

Cr-Original-Commit-Position: refs/heads/master@{#349492}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 915104dacd3dca9594e9aadf0e196af387025d63
2015-09-17 20:56:30 +00:00
hanxi bb113beaef Update usage of Proguard in clank after moving Proguard to third_party.
This is a follow up CL of https://codereview.chromium.org/1288393002/.

BUG=505932

Review URL: https://codereview.chromium.org/1292313004

Cr-Original-Commit-Position: refs/heads/master@{#346006}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fac74610cdba9a4d9190c21a5880b751d3324634
2015-08-27 22:23:44 +00:00
mikecase 3fc4388c87 Never run errorprone on non-Chromium code.
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
2015-08-27 19:15:44 +00:00
mikecase ffc33a260b Update errorprone to fix java 8 issues.
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
2015-08-26 21:48:08 +00:00
jbudorick 14c749c2cf [Android] Add gyp support for multidex. (RELAND)
Reland of https://codereview.chromium.org/1278573002

BUG=272790
TBR=thakis@chromium.org,mmenke@chromium.org

Review URL: https://codereview.chromium.org/1318513003

Cr-Original-Commit-Position: refs/heads/master@{#345443}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f091dcb5146ce071e183303bd316f06e92b6ee3e
2015-08-25 21:38:00 +00:00
jbudorick 26d166bbb6 Revert of [Android] Add gyp support for multidex. (patchset #12 id:220001 of https://codereview.chromium.org/1278573002/ )
Reason for revert:
Somehow broke compilation on the main waterfall: https://build.chromium.org/p/chromium/builders/Android/builds/45388

Original issue's description:
> [Android] Add gyp support for multidex.
>
> Note that this does not enable multidex builds yet.
>
> BUG=272790
>
> Committed: https://crrev.com/e40294eca50d57360a2bb0718adcd5cde7810fbd
> Cr-Commit-Position: refs/heads/master@{#345357}

TBR=agrieve@chromium.org,cjhopman@chromium.org,mmenke@chromium.org,thakis@chromium.org,yfriedman@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=272790

Review URL: https://codereview.chromium.org/1315833007

Cr-Original-Commit-Position: refs/heads/master@{#345370}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6daf3a522276748b2f69144f63db76a62a30d014
2015-08-25 17:43:38 +00:00
jbudorick 6cb89e2fb0 [Android] Add gyp support for multidex.
Note that this does not enable multidex builds yet.

BUG=272790

Review URL: https://codereview.chromium.org/1278573002

Cr-Original-Commit-Position: refs/heads/master@{#345357}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e40294eca50d57360a2bb0718adcd5cde7810fbd
2015-08-25 17:04:18 +00:00
jbudorick 5758310259 [Android] Suppress findbugs stderr output.
BUG=514342

Review URL: https://codereview.chromium.org/1258303003

Cr-Original-Commit-Position: refs/heads/master@{#344992}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5194d46039a269294d3e5bf7a1c827303521d79d
2015-08-22 23:34:09 +00:00
eugenis e0930440db Link libc++_shared with asan=1 on Android.
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
2015-08-04 04:59:31 +00:00
ohrn 5ec29bd726 Add -bootclasspath argument to javac.
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
2015-07-08 13:09:48 +00:00
agrieve 9de8e300f9 Add build rules to enable language-based split apks on Android
BUG=490285

Review URL: https://codereview.chromium.org/1192453002

Cr-Original-Commit-Position: refs/heads/master@{#336001}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c89cfe476f4d1f9bae23e6980a12a379fbd00da4
2015-06-24 21:04:32 +00:00
agrieve f6e07267a1 Load non-locale .pak files directly from the .apk on Android (rather than extracting on start-up).
BUG=394502

Review URL: https://codereview.chromium.org/1181953002

Cr-Original-Commit-Position: refs/heads/master@{#335964}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 05398f5f735ac47b070f7c6897b4d25a1aae8ca9
2015-06-24 19:00:09 +00:00
simonb 191623ed95 Extend relocation packing to non-ARM architectures.
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
2015-06-24 14:46:39 +00:00
agrieve b13eeaeb0e Create xxxhdpi density splits when density splits are enabled
The xxxhdpi density was missed in the initial implementation of density
splits.

BUG=488324

Review URL: https://codereview.chromium.org/1192263002

Cr-Original-Commit-Position: refs/heads/master@{#335534}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: aa50092a84c19942281fbf8f3a7dc1d67e9a34bb
2015-06-22 18:51:01 +00:00
raywilliams 6f98f3e388 Add the Errorprone Java Compiler
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
2015-06-22 16:17:59 +00:00
agrieve 35c515c931 Load V8 startup data directly from the APK on Android.
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
2015-06-19 16:49:44 +00:00
agrieve bead61febe Store and load icudtl.dat directly from the apk rather than extracting on start-up.
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
2015-06-19 15:36:17 +00:00
aurimas 374051ceb6 Make aapt and aidl paths flexible.
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
2015-06-04 23:29:15 +00:00
agrieve ab683c7d03 Add split-select logic to apk_install.py & fix crash when --split-apk-path is used
This makes the script able to install the correct density-based split.

BUG=447152

Review URL: https://codereview.chromium.org/1141403002

Cr-Original-Commit-Position: refs/heads/master@{#331205}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16cd4e3dcbac844d194be8518f9b049a35c7634e
2015-05-22 23:35:43 +00:00
agrieve acf4713cdf Add create_density_splits option to java_apk.gypi / android_apk (gn)
BUG=488324

Review URL: https://codereview.chromium.org/1133603004

Cr-Original-Commit-Position: refs/heads/master@{#331177}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ac94e41f40bfc5252dc23dd72549d985ca221168
2015-05-22 21:32:41 +00:00
agrieve f0ec0b915a Rename load_library_from_zip_file -> load_library_from_zip
Having load_library_from_zip_file end with "_file" causes a GYP
exception when the value is overriden.

BUG=488135

Review URL: https://codereview.chromium.org/1142353003

Cr-Original-Commit-Position: refs/heads/master@{#330888}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1b841e014d528f802b93c4284b90db39b90b63fc
2015-05-21 04:40:12 +00:00
agrieve 604f545e1e Add use_apk_split parameter to java_apk.gypi / android_apk (gn)
Testing:
- For GN, splits install and crash on start-up just like non-split version
- For GYP, tested with:
  - component=shared_library, component=static_library
  - gyp_managed_install=1, 0
  - load_library_from_zip_file=1, 0

BUG=484797

Review URL: https://codereview.chromium.org/1137313003

Cr-Original-Commit-Position: refs/heads/master@{#330523}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 63349e4f235ae666faff75c1eee2da001fb7341f
2015-05-19 16:58:51 +00:00
kkimlabs 2e6f299df8 [Android] Remove v14 resource verification entirely.
BUG=487391

Review URL: https://codereview.chromium.org/1136273003

Cr-Original-Commit-Position: refs/heads/master@{#330439}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6edecc8ca40abd2a82edc78f8d51a1b59543cbca
2015-05-18 22:12:54 +00:00
agrieve 360bbe57da Extract package_resources step into a .gypi & make assets & resource zips optional
This is in preparation for for creating abi splits

BUG=484797

Review URL: https://codereview.chromium.org/1140763002

Cr-Original-Commit-Position: refs/heads/master@{#330188}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a657e5374014d2125f4fddc319cea852b0c86a96
2015-05-15 20:39:05 +00:00
agrieve 1003fddae6 Extract apkbuilder build action into a .gypi
- 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
2015-05-15 19:23:43 +00:00
kkimlabs 25ec01be12 [Android] Add an option to skip v14 resource verification.
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
2015-05-14 22:18:07 +00:00
cullinan f2b9b229e1 Reland: Actually use --extra-r-text-files in process_resources.py
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
2015-05-11 19:11:53 +00:00
cjhopman a7a14d8508 Revert of Actually use --extra-r-text-files in process_resources.py (patchset #6 id:90001 of https://codereview.chromium.org/1104703003/)
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
2015-05-07 00:37:09 +00:00