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

18 Коммитов

Автор SHA1 Сообщение Дата
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
ilevy@chromium.org 56b679fcd0 Add debug keystore
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".

Landing binary file for cjhopman

See also http://codereview.chromium.org/10918149

BUG=145860

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@155850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-10 22:23:59 +00:00
michaelbai@chromium.org 176bb69f2b Fix the gdb path for NDK-r8b.
- Removed android.toolchain property.
- Added android.gdbserver property.
- Changed property-location to check the both file and directory's existence.

TBR=jam
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@155108 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-06 02:53:53 +00:00
cjhopman@chromium.org 1ad7c0f5ff Make jar targets remove .class files before compile
Jar targets package all .class files in their output directory into the
final jar. It should only package those that are actually from .java
files in the src directories. Specifically, it should not package .class
files from .java files that used to be in the src directory but are no
longer there. To prevent packaging these stale .class files, clean the
output directory before the compile step.

One side effect is that we will now have to compile all .java files for
a target each time that that target is rebuilt. And in turn, the _java
targets that depend on it will do the same. Locally, when building the
chrome_java target (which includes all the others) after touching a
base_java input (which will then force all the others to rebuild), this
adds ~3 seconds to the build time... i.e. it's only a very minor hit.

BUG=145983


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@154857 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-04 23:55:30 +00:00
cjhopman@chromium.org 2b4508df5d Make ant touch jar outputs
This prevents Gyp from performing unnecessary build actions due to Ant
not updating the modification time of the output when Gyp believes the
output is stale.

BUG=143229


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@152125 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-17 18:47:15 +00:00
cjhopman@chromium.org 22b8b48632 Fix for ninja build
There is no need to specify the dir for these ant filelists. In ninja
these paths are relative while they are absolute in make.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@151644 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-15 04:05:03 +00:00
cjhopman@chromium.org bfee8ceb05 Make jars build from a single ant .xml template
The ant build files for each of the jars that we create consisted of
only fairly straightforward boilerplate. With the recent changes to
java.gypi and java_aidl.gypi we can now build these correctly from a
single .xml with GYP passing in defines for the minor differences.

BUG=136756


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@151334 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-13 20:17:24 +00:00
yfriedman@chromium.org 3c91146c7f [Android] Add chrome_java target for building Java code in the chromium layer.
Also includes a refactoring of the Ant xml scripts to use a common template (contributed by shashishekhar@chromium.org). As part of this, I also continued Torne's effort of removing our reliance on environment variables. Unfortunately this currently means that you have to specify 5 gyp flags:
    ANDROID_SDK, ANDROID_SDK_ROOT, ANDROID_SDK_TOOLS, ANDROID_SDK_VERSION, ANDROID_TOOLCHAIN.

This'll get better as we make further use of the checked in sdk both upstream and downstream. The problem stems from the android tree and released sdk having different configurations.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@150172 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-06 23:23:51 +00:00