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

12 Коммитов

Автор SHA1 Сообщение Дата
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
torne 903b36f628 Sort Java AIDL input filenames for makefile stability.
Sort the list of input java files for the aidl build step so that
the contents of generated makefiles in WebView have a stable ordering.

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#292686}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8eff03f99038a90198095d0bab3363a249357cb5
2014-08-29 22:18:31 +00:00
cjhopman@chromium.org 5604fa9993 Make test apks only dex files not in tested apk (proguard version)
At runtime, the classloader will look for classes in both apk's dex
files. In the standard Android build system, an instrumentation test
apk's dex file does not include the classes included in the tested apk's
dex file.

To do this, when doing obfuscation for an apk, write the list of
libraries included in the obfuscated jar and the list of proguard config
files. Then, when proguarding the test apk's code, exclude those
libraries included in the tested apk, use the configs from the tested
apk, and apply the proguard mapping (the renames from obfuscation). Also
add some extra test-specific proguard options.

Now that the test apk does not bundle its own copy of all the tested
apk's classes, some things may need to be kept in the main apk just for
tests. However, we already keep everything in org.chromium.** and
com.google.android.apps.** because of the fact that the test apk was
using its own copy of all the classes and so we couldn't depend on the
tests to actually catch us from over-optimizing with proguard.

BUG=272790

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@277257 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-14 19:51:58 +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
dtrainor@chromium.org 25ebcb70db Fix eyesfree aidl rules/deps
- Remove aidl targets that don't produce outputs
- Fix java_aidl to depend on the import java src

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173333 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-15 22:30:27 +00:00
dtrainor@chromium.org 6915deb071 Initial braille support
Connect third_party/eyesfree code to Chrome, allowing accessibility to interact
with a braille keyboard.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 05:58:11 +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 a0442c14f1 Make java_aidl targets export include directories
Native code generation rules typically add their output directory to
their dependent's 'include_dirs'. This change makes targets that include
java_aidl.gypi do a similar thing for other java*.gypi targets.

Make java.gypi pass this variable to ant and content.xml use the
variable rather than hardcoding the directory.

Also, move the aidl output folder into <(SHARED_INTERMEDIATE_DIR) as it
should be.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@151315 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-13 18:35:49 +00:00
steveblock@chromium.org dc648a85b9 Fix Java file generation rule in java_aidl.gypi
The Java file generation rule in java_aidl.gypi assumes the wrong output path
for the generated file. This leads to spurious rebuilds.

The problem is that by default, the aidl tool outputs the Java file to
<output-path>/<package-path>/<input-file-root>.java, not to
<output-path>/<input-file-root>.java as assumed by the rule. This change fixes
the problem by explicitly specifying the output path to aidl.

Also remove superfluous path components on input files.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145982 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-10 23:12:06 +00:00
steveblock@chromium.org be1cca822e Specify path to aidl tool in gyp file
This avoids depending on having $PATH set up correctly when building, which can
be problematic when building with the Android build system.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145458 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-04 14:27:36 +00:00
steveblock@chromium.org f790e4ea8c Pass android_sdk as a variable to gyp
This avoids the need for shell script in the gyp file.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145195 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-02 21:26:03 +00:00
michaelbai@chromium.org 390b722498 Added sandboxed process service.
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@141618 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-12 05:00:05 +00:00