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

73 Коммитов

Автор SHA1 Сообщение Дата
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
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
cjhopman@chromium.org 4ee6f5fd24 Make android_apk template actually create an apk
This is essentially three steps, packaging resources, packaging code,
and then signing+zipaligning the apk.

The apk does not currently contain the native libraries.

Depends on http://crrev.com/386473002/

BUG=359249

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@287729 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-06 07:29:42 +00:00
cjhopman@chromium.org 9a78557855 Convert apk obfuscation to python
For the apk specific java files, we now run proguard on the jar instead of the classes.

BUG=375324,359249

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@276377 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-11 13:19:47 +00:00
cjhopman@chromium.org f11324b572 Convert apk-package-resources.xml to python
This ant script is basically a simple wrapper around an aapt call (the
only thing the large AaptExecTask custom ant task adds is a bunch of
dependency checking that we don't actually want anyway). This
makes it use python instead.

BUG=359249,375324,375431
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273326 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 19:50:08 +00:00
cjhopman@chromium.org 71545b826c Remove apk-codegen.xml
process_resources.py already implements almost everything from
apk-codegen.xml so just use that instead.

BUG=359249, 375324, 375431
TBR=yfriedman

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@272928 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-27 05:42:45 +00:00
tapted@chromium.org 385487a54b Revert of Remove apk-codegen.xml (https://codereview.chromium.org/295473002/)
Reason for revert:
Suspected for android compile failure on waterfall starting

http://build.chromium.org/p/chromium/builders/Android/builds/24321

Errors are pretty obscure. Things like

BUILD FAILED
/b/build/slave/Android/build/src/build/android/ant/apk-obfuscate.xml:161: /b/build/slave/Android/build/src/out/Release/multiple_proguards_test_apk/proguard.txt (No such file or directory)
	at proguard.ant.ConfigurationTask.addText(ConfigurationTask.java:315)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

FAILED: cd ../../build/android/tests/multiple_proguards; /*snip*/ build/android/ant/apk-obfuscate.xml
Traceback (most recent call last):
  File "../../../../build/android/gyp/ant.py", line 34, in main
    stdout = build_utils.CheckOutput(['ant'] + verbose_args)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/build_utils.py", line 113, in CheckOutput
    raise CalledProcessError(cwd, args, stdout + stderr)

Original issue's description:
> Remove apk-codegen.xml
> 
> process_resources.py already implements almost everything from 
> apk-codegen.xml so just use that instead.
> 
> BUG=359249,375324,375431
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272783

TBR=yfriedman@chromium.org,cjhopman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=359249,375324,375431

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@272795 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-26 05:10:41 +00:00
cjhopman@chromium.org 5dddf7b2a6 Remove apk-codegen.xml
process_resources.py already implements almost everything from 
apk-codegen.xml so just use that instead.

BUG=359249,375324,375431

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@272783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-26 04:19:34 +00:00
thakis@chromium.org a7c1aae81e android: Stop passing defines to apk-obfuscate.xml which it ignores.
Most of these are leftovers from when apk-obfuscate.xml was moved to its
own file in https://chromiumcodereview.appspot.com/12880007

CREATE_TEST_JAR_PATH was removed in
https://codereview.chromium.org/35473002

No intended behavior change.

BUG=none
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@260563 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-31 16:36:26 +00:00
thakis@chromium.org 13820ece50 android: Do not pass source_dir to apk-package.xml.
apkbuilder only uses sourcefolder to package non-java files (see
addSourceFolder() and checkFileForPackaging() in
e162064a7b/sdkmanager/libs/sdklib/src/com/android/sdklib/build/ApkBuilder.java ),
and our java/src folders only contain .java (and OWNERS) files.

(Determined via `find . -type f -a -path '*/src/*' -a -not -name '*.java'` and
manually ignoring everything not looking like a java folder.)

No intended behavior change; Chrome.apk looks identical with and without
this change (except for timestamps).

BUG=none
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@260047 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-28 00:51:42 +00:00
thakis@chromium.org c5558788b9 android: Fix build more after 255971.
Two more ant scripts were implicitly depending on the generated
manifest file via an implicit dependency through a stamp file.
Follow-up to https://codereview.chromium.org/193163004

BUG=256020
R=cjhopman@chromium.org
TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@256038 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-10 21:36:51 +00:00
thakis@chromium.org 86f84cb624 android: Try to fix ant_codegen_ after 255971.
BUG=177552
TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@256020 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-10 20:25:06 +00:00
thakis@chromium.org d1a32a2565 android: Remove unused codegen_input_paths and library_manifest_paths.
As far as I can tell, nothing ever sets them. Remove them and the ant code
that runs only when library_manifest_paths is set. No intended behavior change.

BUG=177552
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@255971 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-10 18:06:16 +00:00
thakis@chromium.org 94c8bcefeb Delete unused build/android/ant/apk-compile.py
Its last use was removed in r190756

BUG=158821
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@254415 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-02 20:22:45 +00:00
iancottrell@chromium.org 59643f9b07 Change javascript string replace in ant files to pure ant using a filterchain with replacestring
BUG=310065

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230421 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 14:33:33 +00:00
iancottrell@chromium.org 2a27f96188 Replacing the javascript jar file merge with pure ant
BUG=310065

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230420 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 14:31:31 +00:00
gkanwar@chromium.org 952d5c5a00 Makes GYP changes for EMMA coverage
One piece of the overall java coverage change.
See: https://codereview.chromium.org/20210002/

NOTRY=True
BUG=255644

Review URL: https://chromiumcodereview.appspot.com/22870021

git-svn-id: http://src.chromium.org/svn/trunk/src/build@218870 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-22 00:08:31 +00:00
navabi@google.com 45bd690053 Some of the build tools have moved in the SDK (e.g. aapt, aidl) from
sdk/platform-tools/ to sdk/build-tools/<tools-version>/. The tools version is 18.0.1.

BUG=263966

Review URL: https://chromiumcodereview.appspot.com/21977003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216612 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-09 06:48:18 +00:00
cjhopman@chromium.org cb62e03343 [Android] Set build.is.packaging.debug correctly
The string "build.target" was being used rather than the variable-expanded
"${build.target}".

NOTRY=true
BUG=234546

Review URL: https://chromiumcodereview.appspot.com/14436005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196104 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 09:17:19 +00:00
cjhopman@chromium.org 6260898c10 [Android] Build gtest APKs like other APKs
After much work, we can build gtest APKs without first transforming .java files, resource files, or the AndroidManifest.xml. We can directly use java_apk.gypi and build like all other APKs.

Do that.

Also, native_test_apk.xml was the last user of common.xml and sdk-targets.xml, and so those can now be removed.

Review URL: https://chromiumcodereview.appspot.com/13828003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193576 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-11 04:47:10 +00:00
cjhopman@chromium.org c9a3a7737d [Android] Split Ant -package and -package-resources
Splits apk-package.xml into apk-package.xml and
apk-package-resources.xml and adds a new gyp action for
package-resources.

This continues the simplification of gyp actions (i.e. each individual
action should be simple).

Also, allows more accurate specification of inputs for
-package-resources vs -package (and allows -package-resources to be
done in parallel with javac/dex/etc.).

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/13811027

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193491 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 23:10:17 +00:00
cjhopman@chromium.org 9a5e20f44c [Android][Reland] Extract signing+zipaligning to python
Continued de-antification. This one is pretty straightforward.

Landed in https://chromiumcodereview.appspot.com/13427020
Reverted in https://codereview.chromium.org/13866023/

TBR=yfriedman@chromium.org
BUG=158821

Review URL: https://chromiumcodereview.appspot.com/13861023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193238 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 22:22:15 +00:00
viettrungluu@chromium.org feef0f12c7 Revert 193160 "[Android] Extract signing+zipaligning to python"
> [Android] Extract signing+zipaligning to python
> 
> Continued de-antification. This one is pretty straightforward.
> 
> BUG=158821
> 
> 
> Review URL: https://chromiumcodereview.appspot.com/13427020

TBR=cjhopman@chromium.org
Review URL: https://codereview.chromium.org/13866023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193182 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 19:50:12 +00:00
cjhopman@chromium.org 6c1656d8d8 [Android] Extract signing+zipaligning to python
Continued de-antification. This one is pretty straightforward.

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/13427020

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193160 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 18:39:03 +00:00
cjhopman@chromium.org f5ba848b4d Use java_apk.gypi for gtest apks
Currently, normal APKs and instrumentation APKs are both built using
java_apk.gypi (which includes all kinds of new hotness). Native
unittest APKs, though use apk_test.gypi and thus the complicated
native_test_apk.xml and Android's Ant build.xml. That is bad.

This change updates apk_test.gypi to include java_apk.gypi and so
brings these two ways of building APKs into alignment. It also very
slightly updates the configurability of java_apk.gypi and
apk-package.xml.

There are still a couple of targets in WebKit that use
generate_native_test.py and native_test_apk.xml directly that need to
be updated to use apk_test.gypi before those two scripts can be
simplified/removed.

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/13564003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192662 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-06 00:14:39 +00:00
cjhopman@chromium.org 0ed4367af2 Package correct libraries in apk
With gyp_managed_install no shared libraries should be packaged in the
APK (except gdbserver).

When toggling gyp_managed_install, there may be left over libraries in
<(intermediate_dir)/libs. APK packaging should use a different
directory when doing a managed install, so that it does not include the
library from a non-gyp_managed_install build.

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/13651003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192617 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 19:55:07 +00:00
jayjang@chromium.org 867afcbe90 Support multiple proguard flags from java_apk.gypi. Proguard supports multiple proguard configuration files but java_apk and apk-build.xml supports only one proguard configuration.
BUG=181470


Review URL: https://chromiumcodereview.appspot.com/12913017

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191806 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 09:10:54 +00:00
jayjang@chromium.org 856d2b5635 Enable configuralbe mergemanifest.enabled again. It's reverted on recent refactoring
BUG=181470


Review URL: https://chromiumcodereview.appspot.com/13004007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191043 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 22:03:42 +00:00
cjhopman@chromium.org 83d2ed66a8 Fix proguard
Proguard should only be run in Release mode (in gyp, proguard_enabled is
not set based on the configuration). This is the way that we had
been determining whether or not to run proguard before recent Ant
refactoring.

Also, proguard needs the path to the android.jar


BUG=224079


Review URL: https://chromiumcodereview.appspot.com/12922004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190876 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 09:04:27 +00:00
cjhopman@chromium.org d63e35e839 Translate some ant to python
This moves java compilation, jar, and dex for apks from
ant to python. This uses the same javac.py and jar.py
that are used by build/java.gypi for libraries and introduces a simple dex.py.


BUG=158821


Review URL: https://chromiumcodereview.appspot.com/12880007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 20:44:29 +00:00
cjhopman@chromium.org bf2791cc95 Split apk-build.xml into 3 steps
In preparation for rewriting these actions in python, split apk-build.xml into smaller ant scripts. This should not change the functionality and mostly is just splitting the file and identifying the properties and defines required for each of the new files.

Some of the configuration is moved out of ant and into gyp (i.e. the android_manifest_path is now gyp-configurable).

Also, the ant scripts now use the correct basedir! That is, these ant scripts actually understand relative paths. To go along with this, resource_dir is the relative path to the resource directory (rather than a path relative to java_in_dir).

BUG=158821
TBR=torne@chromium.org, brettw@chromium.org
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12963009

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190712 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 17:35:21 +00:00
jayjang@chromium.org 06727a213d Make manifestmerge.enabled configurable from java_apk.gypi In order to put activity or service AndroidManifest.xml by flag we need to be able to set "manifestmerge.enabled=true" from gyp file. This is required to put googletv specific activity and services
BUG=181470


Review URL: https://chromiumcodereview.appspot.com/12450013

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 21:40:39 +00:00
cjhopman@chromium.org c10677b0ce Convert java library javac/jar to python
This is a fairly straightforward translation of the ant build script
into two python actions.

Two things have been moved into the gyp file: adding android.jar to the
classpath and specifying the jar_excludes (currently just R.class and
R$*.class).

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/12853002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188594 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-16 16:25:22 +00:00
cjhopman@chromium.org 4c04bd901d Simplify ant targets
This change makes the behavior of apk-build.xml much clearer.
First, delete several empty targets:
  -pre-build
  -post-build
  -set-mode-check
  -post-package
  -set-debug-files

Then, merge chains of targets (i.e. only -compile depends on
-pre-compile and so they can be merged into one target).
check-env --> -setup
-pre-compile and -post-compile --> -compile
-crunch --> -package-resources
-release-sign --> release
-do-debug --> debug
-release-obfuscation-check --> -set-release-mode
-debug-obfuscation-check --> -set-debug-mode
-build-setup --> -setup

Then, rearrange the targets so that they are in the order that they are
run.

Finally, delete some small unused things (mergemanifest, buildconfig).

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/12808004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188548 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-16 05:37:51 +00:00
cjhopman@chromium.org 354452b959 Remove more unused ant stuff
Remove/inline some more properties that are not used.

Remove the clean target that we never call.

Remove some comments that are incorrect or invalid in our build.



BUG=158821
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12790003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188186 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 20:56:41 +00:00
cjhopman@chromium.org f1fd6ffa9b Remove the last ant macros
Android's build script uses record-build-info to determine when the build type
has changed and things need to be rebuilt. We use gyp to tell us when to
rebuild things and ant should always do it. Remove this macro and inline the
corresponding empty strings.

BUG=158821
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12617005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188128 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 17:59:33 +00:00
cjhopman@chromium.org e2acb7fae1 Remove some ant macros
We only use this build script for non-library targets with code... so
remove the macros for do-only-if-library/has-code.

The other macros are used only in a single place, so inline them at that
use.

BUG=158821
NOTRY=true


Review URL: https://chromiumcodereview.appspot.com/12792008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188101 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 16:46:50 +00:00
cjhopman@chromium.org 0838d9e4fd Simplify ant signing/zipalign code
We always sign and zipalign our apks. Remove code that deals with
different possibilities (i.e. asking for password, manually
signing/aligning).

NOTRY=true
BUG=158821

Review URL: https://chromiumcodereview.appspot.com/12598009

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187953 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 21:47:39 +00:00
cjhopman@chromium.org 5b73bcbf6a Remove ant stuff dealing with library dependencies
This is mostly dealing with the code for library dependencies. Our
library dependencies are handled through gyp, and not by ant. The
dependency task that is removed calculates only empty paths for each of
its arguments (some are already set above and are immutable).


BUG=158821
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12595008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187911 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 19:12:20 +00:00
cjhopman@chromium.org 4b6058c073 Removed unused ant stuff
This removes a bunch of the ant properties and targets that are never
used in our builds. These are related to: installing apks, running
tests, emma instrumentation, lint, help, clean, building library
dependencies, building main apk for test apks, renderscript, and asking
for keystore password.

BUG=158821


Review URL: https://chromiumcodereview.appspot.com/12701012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187735 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 01:28:32 +00:00
cjhopman@chromium.org 965e1aa28f Set the ant keystore properties earlier
apk-build.xml sets the has.keystore property before the point where we
were setting the properties that it bases has.keystore on. This caused
Release builds to be built incorrectly (i.e. the build didn't sign
them).


BUG=184532
NOTRY=true
TBR=yfriedman@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12735007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187598 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-12 16:37:09 +00:00
cjhopman@chromium.org 00cec5be32 This is the first change in simplifying our ant build scripts.
First check in a copy of 
third_party/android_tools/sdk/tools/ant/build.xml as 
build/android/ant/apk-build.xml

Previously we were overriding targets from this build.xml
in build/android/ant/sdk-targets.xml. Instead of doing this
override, just replace the actual targets in apk-build.xml.

Do the same for properties that we were overriding in 
build/android/ant/chromium-apk.xml.

Both of these have no logical change on these build scripts. 
Ant's targets and properties are immutable and so Ant was
doing this exact thing already.


BUG=158821


Review URL: https://chromiumcodereview.appspot.com/12599005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187483 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-12 03:58:06 +00:00
cjhopman@chromium.org ba119ddda2 Use _target_name instead of package_name for java*.gypi
We were using package_name as a unique name for naming output files and
directories. package_name was typically the same as _target_name or a
variation of it (like dropping _apk). Using _target_name instead means
we need to specify one less thing and it is (maybe?) guaranteed to be
unique.

TBR=brettw,joi,jar,fischman,zea,sky
BUG=

Review URL: https://chromiumcodereview.appspot.com/11308030

git-svn-id: http://src.chromium.org/svn/trunk/src/build@183639 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-20 22:39:17 +00:00
yfriedman@chromium.org 731dfc09b1 Revert 176198
Fixed permissions on build/android/envsetup.sh

> Revert 176176
> > Update Android build to API level 17 and SDK Tools version 21
> > 
> > Some fixes included:
> > - Changes to resource management to account for new R.java packaging
> >   from library projects
> >   (https://android-review.googlesource.com/#/c/43134/).
> > - Fixed the package for some inludes in ModalDialogTest.java. This only
> >   worked because of how we previously used to aggregate all resoures
> >   from the prior layer. With the new packaging, we must use the resource
> >   from the appropriate layer.
> > 
> > BUG=163001,166434
> > NOTRY=true
> > 
> > Review URL: https://chromiumcodereview.appspot.com/11819047
> 
> TBR=yfriedman@chromium.org
> Review URL: https://codereview.chromium.org/11783108

TBR=smckay@chromium.org
Review URL: https://codereview.chromium.org/11820065

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176202 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 23:33:38 +00:00
smckay@chromium.org e573012f0f Revert 176176
> Update Android build to API level 17 and SDK Tools version 21
> 
> Some fixes included:
> - Changes to resource management to account for new R.java packaging
>   from library projects
>   (https://android-review.googlesource.com/#/c/43134/).
> - Fixed the package for some inludes in ModalDialogTest.java. This only
>   worked because of how we previously used to aggregate all resoures
>   from the prior layer. With the new packaging, we must use the resource
>   from the appropriate layer.
> 
> BUG=163001,166434
> NOTRY=true
> 
> Review URL: https://chromiumcodereview.appspot.com/11819047

TBR=yfriedman@chromium.org
Review URL: https://codereview.chromium.org/11783108

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176198 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 23:18:11 +00:00
yfriedman@chromium.org 7720827607 Update Android build to API level 17 and SDK Tools version 21
Some fixes included:
- Changes to resource management to account for new R.java packaging
  from library projects
  (https://android-review.googlesource.com/#/c/43134/).
- Fixed the package for some inludes in ModalDialogTest.java. This only
  worked because of how we previously used to aggregate all resoures
  from the prior layer. With the new packaging, we must use the resource
  from the appropriate layer.

BUG=163001,166434
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11819047

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176176 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 22:27:17 +00:00
yfriedman@chromium.org b1afccaadf [Android] Fix specification of android build deps.
Our dependencies are managed in gyp and not ant so we don't need ant to
resolve dependant libraries. This fixes the spurious output of:
   [subant] No sub-builds to iterate on

for each test apk.

BUG=164395
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11614023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@174065 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-20 01:09:26 +00:00
yfriedman@chromium.org c5949d2c12 Reduce verbosity of Android builds.
There's a lot of boilerplate from running ant. Passing '-q' silences most of it.

BUG=164395
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/11606010

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173688 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 07:54:35 +00:00