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

57 Коммитов

Автор SHA1 Сообщение Дата
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
yfriedman@chromium.org 6a86cd6140 [Android] Output unchecked warnings and fix existing instances.
BUG=164395


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173658 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 06:56:14 +00:00
newt@chromium.org d82a0d737e Enable Android APKs to be build with R.java in a custom package.
BUG=158558


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168704 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 02:17:23 +00:00
newt@chromium.org 986e331cb8 Support Java resources within content.
This provides support for android-style resource folders in content and other
non-apk Java targets. The AppResource hack can then be removed shortly.

Details: while building a non-apk target (e.g. chromium_content.jar), we
generate an R.java file with non-final constants and in the appropriate Java
package (e.g. org.chromium.content.R) using the resources in the target (e.g.
content/public/android/java/res). This R.java is used to produce the jar, but is
not included in the jar itself.

When we later build an apk, we merge the resources from the apk (e.g.
org/chromium/content_shell/res) with the resources from the non-apk targets it
depends on (e.g. content/public/android/java/res). A new R.java is generated
using the merged resources with the correct mapping from resources to integer
IDs. This R.java file is copied into each needed package (e.g.
org.chromium.content.R and org.chromium.content_shell.R) and included in the
apk.

This is the first of three CLs to replace AppResource with R:
1. http://codereview.chromium.org/11363150 - Support Java resources within content
2. http://codereview.chromium.org/11360207 - Add Java resources to content and chrome
3. http://codereview.chromium.org/11377117 - Remove AppResource and unneeded resources

BUG=136704

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-16 20:39:20 +00:00
cjhopman@chromium.org e75eedd6de Specify jar name for apks in java_apk.gypi
Previously, we had to keep this name in sync in multiple places, the
"fake" xxx_java target and in sdk-targets.xml. Instead, it should be set
only in java_apk.gypi and then passed along to each of the places that
we were specifying it before.

Also, delete unused 'output' block and unneeded xxx_java dependencies.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168148 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-16 07:31:49 +00:00
nyquist@chromium.org 64562a877b Check in protobuf java code and generate lite jar.
Since we only need the lite version of protobuf, we generate a jar file based
on includes in the maven pom.xml file for the lite profile.

BUG=158382

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167557 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 01:23:40 +00:00
shashishekhar@chromium.org 51f63436a8 Remove -debug suffix in apk names.
-debug suffix is used even for Release builds, remove this suffix
now apk name will have no suffix in either Debug or Release builds.

BUG=155946


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@162803 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-18 21:52:16 +00:00
shashishekhar@chromium.org 92204c4f7c Fix proguard logic, set proguard config only when proguard is enabled.
Even when proguard config is set to an empty string, proguard can still
run, we do not want proguard to run if it is not explicitly enabled for
a target.

BUG=149214


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@161493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-12 03:44:46 +00:00
shashishekhar@chromium.org 868df66f3f Rename output jar created by apks to have chromium_apk_ prefix.
Output jar created by apks, currently have chromium_ prefix, this
prefix is also used by jar targets, to avoid name space collision
change the prefix from chromium to chromium_apk.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@161238 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-11 00:07:20 +00:00
shashishekhar@chromium.org 08b182227f Add Proguard option to gyp template.
Add proguard specific options to java_apk.gypi so that an apk can
specify proguard flags.

BUG=149214


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@161004 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-10 01:29:46 +00:00
shashishekhar@chromium.org 76ed7dbab9 Add override for obfuscate target to support Proguard.
Ant builds do not support Proguard because the default obfuscate target
does not support using custom classpaths for jars.
Add javac.custom.classpath to the obfuscate target.

BUG=149214


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@160917 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-09 20:53:14 +00:00
cjhopman@chromium.org b19f62b2df Add support for building apk in release
Until now, even in a Release configuration, apks were built in debug.
Now, they will be built in the correct configuration.

BUG=
TBR=torne

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@160913 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-09 20:17:56 +00:00
cjhopman@chromium.org ce4c432363 Make apks build from a single ant .xml template
The ant build files for each of the apks that we create consisted of
only fairly straightforward boilerplate. With the recent changes to
java_apk.gypi and the gyp targets we can now build these correctly from
a single .xml with the differences in how the targets are built being
reflected in the gyp files (and then passed into ant).

TBR=joth
BUG=145991


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@160396 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-05 16:51:32 +00:00
cjhopman@chromium.org a2990c0823 Add more generic support for java targets bundling multiple directories
Currently chromium_testshell_test_apk and content_shell_test_apk compile
and package java files from two different directories. Supporting this
in a good way is a requirement for using a single ant template for all
apks.

Introduce a new gyp variable for apk/jar targets, generated_src_dirs.
Now, generated_src_dirs is for directories that contain .java files that
are generated at build time and additional_src_dirs is for extra normal
directories to include in the jar/apk.

Change content_shell_test_apk and chromium_testshell_test_apk to use
additional_src_dirs for their extra dirs.

Add documentation for the gyp variables for jar/apk targets.

Reorder the ant defines in the java.gypi and java_apk.gypi.

BUG=136756,146056


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@159299 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-28 18:22:29 +00:00
cjhopman@chromium.org 8d8d5aeee4 Make apk targets remove .class files before compile
Apk targets will package all .class files in the output directory into
the apk. If a .java file is moved, the corresponding .class files might
still exist in the output directory, leading to incorrect or failed
builds.

This forces all .java files for a target to be rebuilt when that target
is rebuilt, but this is very fast.

See http://crrev.com/10914080 for the same change to jar targets.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@157923 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-21 03:58:08 +00:00
shashishekhar@chromium.org 8fa63d3e5b Add test jar generation logic for ant builds.
Add a new property generate.test.jar to ant scripts.
When this property is set, a jar containing all compiled
classes and referred classes is generated and placed in
out/{Debug|Release}/test.lib.java directory.
This makes it easier and cleaner to write ant build files for test apks.
New directory structure for the build:
Apks are placed in : out/{Debug|Release}/apks
All java libraries in : out/{Debug|Release}/lib.java
All test java libraries in : out/{Debug|Release}/test.lib.java

This CL also includes cleanup to work with the modified output
directory structure.

BUG=146583

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@157570 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-19 18:19:18 +00:00
cjhopman@chromium.org c537c0b935 Use checked in keystore to sign debug apks
keystore created with command:
keytool -genkey -v -keystore chromium-debug.keystore -alias chromiumdebugkey -keyalg RSA -keysize 2048 -validity 36525
with password "chromium" and alias password "chromium".

Android's SDK tools by default create a debug keystore in ~/.android.
This has caused all kinds of grief. Instead, this change makes us use
the new chrome-debug.keystore.

BUG=145860


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@155927 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-11 02:53:44 +00:00