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

69 Коммитов

Автор SHA1 Сообщение Дата
jbudorick@chromium.org 41ed360447 Revert of Enable presubmit pylint in build/android. (https://codereview.chromium.org/132463007/)
Reason for revert:
This patch is probably the cause of crbug.com/342539.

Original issue's description:
> Enable presubmit pylint in build/android.
> 
> BUG=168518
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249793

TBR=craigdh@chromium.org,frankf@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250269 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 01:47:41 +00:00
jbudorick@chromium.org 4ccb88e6a3 Revert of Fix an errant pylint change. (https://codereview.chromium.org/143623007/)
Reason for revert:
crbug.com/342539 is likely happening because of the patch that this patch depends on. I need to ensure that logcats work on the bots before relanding (and that the corresponding steps fail if they don't.)

Original issue's description:
> I broke something by removing an apparently unused import that actually was used elsewhere. I addressed the issue by having the client code just call android_commands.GetAttachedDevices explicitly.
> 
> BUG=168518
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250206

TBR=craigdh@chromium.org,frankf@chromium.org,cjhopman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250264 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 01:20:33 +00:00
jbudorick@chromium.org c3ffd2a73d I broke something by removing an apparently unused import that actually was used elsewhere. I addressed the issue by having the client code just call android_commands.GetAttachedDevices explicitly.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 21:12:03 +00:00
jbudorick@chromium.org 3d8bcfb710 Enable presubmit pylint in build/android.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 21:34:23 +00:00
frankf@chromium.org 2bbddf4e7e [Android] Remove existing *.em file before running EMMA instrumentation.
BUG=334319
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245181 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 06:53:15 +00:00
dalecurtis@google.com aef7d5f1f7 Revert 244256 "[Android] Enable lint warnings by default."
> [Android] Enable lint warnings by default.
> 
> Lint has been running on FYI bots for a while,
> time to enable them by default on bots and for developers.
> 
> BUG=None
> R=yfriedman@chromium.org
> 
> Review URL: https://codereview.chromium.org/127383002

TBR=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 22:42:57 +00:00
frankf@chromium.org c2410e8f72 [Android] Enable lint warnings by default.
Lint has been running on FYI bots for a while,
time to enable them by default on bots and for developers.

BUG=None
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244256 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 22:02:12 +00:00
frankf@chromium.org c1c58562d3 [Android] Do not fail the build due to lint issues.
- Treat lint issues as warnings not errors
- Also, disable Recycle rule

BUG=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244078 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 03:50:32 +00:00
newt@chromium.org 02ad65b2bc Revert of https://codereview.chromium.org/106173002/
Reason for revert: this introduced a package dependency bug where ia32-libs cannot be installed on ubuntu precise systems

TBR=kkimlabs@chromium.org,cjhopman@chromium.org,pschmidt@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=290225

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243437 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 00:05:19 +00:00
newt@chromium.org 0aab148f04 Mirror images for RTL languages at build time.
This adds a build step to generate mirrored images for use in
right-to-left (RTL) languages. Images are mirrored by flipping the
original image over the vertical axis. Every image must be explicitly
listed as mirrorable or non-mirrorable in a config file.

The goal: ensure that our RTL image assets are always up-to-date.

BUG=290225
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243332 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-07 18:02:29 +00:00
frankf@chromium.org 09d44ed138 [Android] Add lint as a gyp action.
- Run lint on all java/apk targets using a dummy AndroidManifest.xml
- Add build/android/lint/suppress.py for suppressing generated
  errors
- Enable lint on FYI builders as a first step

BUG=None
R=cjhopman@chromium.org, newt@chromium.org
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239984 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 03:02:10 +00:00
newt@chromium.org e0e8e6eb61 Don't use sys.exit() in build_utils.CheckCallDie().
Calling sys.exit() in a thread spawned by
multiprocessing.pool.ThreadPool causes an infinite hang that even SIGINT
can't fix. This is bad. Instead of calling sys.exit(), raise an
exception, crafted so that the important information (the failed
command's stdout and stderr) comes after the stacktrace and the copyable
command.

This also renames CheckCallDie() to CheckOutput() and changes it to
print stderr but not stdout by default. Suppressing stderr has hid bugs
in the past (e.g. aapt crunch failures), and hiding stdout is what we
usually want anyway.

R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239276 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-06 23:24:37 +00:00
aberent@chromium.org 6af865d391 Check library version and handle library load errors
This CL modifies the build to incorporate the expected C++ library version
in the Java code. This is then checked when the library is loaded, to
make sure that the C++ and Java builds match.

This CL also implements error handling when library loads fail or the
loaded version doesn't match the expected version.

BUG=311644

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237779 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 14:28:52 +00:00
newt@chromium.org aabdacb34b Don't swallow "aapt crunch" build errors.
aapt crunch always has a return code of 0, even when it finds an invalid
9-patch and can't process it. Since we can't trust the return code, we
fail when aapt outputs anything to stderr.

BUG=314885
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234972 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 00:13:38 +00:00
newt@chromium.org e3a94f3d91 Raise a compile error if RTL-unfriendly attributes are used.
We previously showed a warning in this case, but we might as well make
it an error since this is always an undesirable situation that needs to
be fixed.

BUG=315208
R=cjhopman@chromium.org, kkimlabs@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234328 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-11 23:53:10 +00:00
digit@chromium.org a48f19820d Android: Add chrome-specific dynamic linker.
This patch adds a new Chrome-specific dynamic linker for Android,
that implements RELRO section sharing in order to save about 1.3 MB
of RAM per renderer process in content-based programs (ContentShell,
ChromiumTestShell, Chrome, etc...)

The linker is disabled by default. For more details, see the corresponding bug entry.

This introduces a new test package (content_linker_test_apk) as well as a new test category. To build and test this feature, do the following:

  ninja -C out/Debug content_linker_test_apk
  build/android/test_runner.py linker


BUG=287739
R=qsr@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229921 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-21 21:40:44 +00:00
frankf@chromium.org eafc6b6a19 [Android] Enable passing filter string to emma.
This is needed to filter out upstream packages downstream.

BUG=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227105 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-04 22:02:44 +00:00
newt@chromium.org 8d61bc07ea Move resources from drawable-mdpi to drawable at build time.
This will allow us to keep images in drawable-mdpi in the source tree.

BUG=289843

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@223443 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-16 22:16:13 +00:00
dtrainor@chromium.org 59bdd25bf6 This fixes the component build.
Need to pass the CONFIGURATION_NAME through to the push python libs.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222171 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-10 01:39:25 +00:00
frankf@chromium.org 76346d80bd [Android] emma_instr.py now removes any stale *.em/*sources.txt
BUG=278365
NOTRY=True
TBR=akalin@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@220714 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-31 01:20:31 +00:00
gkanwar@chromium.org 2ca47b2d70 [Android] Buildbot changes for EMMA code coverage
One piece of the overall java code coverage change.
See: https://codereview.chromium.org/20210002/

NOTRY=True
BUG=255644

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@219083 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-22 19:56:33 +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
cjhopman@chromium.org 819b1a6f40 Add support for proguard preprocessing.
* Adds support for running proguard on our libraries
before they are added to the final release APK.
* Start using the proguard preprocessing for
third_party/guava.

BUG=272790
NOTRY=true
TBR=darin@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@217706 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-15 00:12:07 +00:00
dmazzoni@google.com 97da98af44 Revert 217286 "Revert 217273 "Android: run dex with the --force-..."
This is reverting the revert - it turns out to not be the cause of
the test failure.

> Revert 217273 "Android: run dex with the --force-jumbo switch."
> 
> I think it caused Android tests such as this one to fail:
>   MinidumpWriterTest.MinidumpSizeLimit
> 
> Either way, it was submitted without try jobs. Always run try jobs.
> 
> > Android: run dex with the --force-jumbo switch.
> > 
> > This is needed to merge dex files collectively containing more than 65536
> > strings. More details at
> > https://code.google.com/p/android/issues/detail?id=40772 and in the bug.
> > 
> > BUG=272064
> > R=andrewhayden@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/22950006
> 
> TBR=ppi@chromium.org
> 
> Review URL: https://codereview.chromium.org/23096002

TBR=dmazzoni@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@217297 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-13 18:40:38 +00:00
dmazzoni@chromium.org 597638d2f1 Revert 217273 "Android: run dex with the --force-jumbo switch."
I think it caused Android tests such as this one to fail:
  MinidumpWriterTest.MinidumpSizeLimit

Either way, it was submitted without try jobs. Always run try jobs.

> Android: run dex with the --force-jumbo switch.
> 
> This is needed to merge dex files collectively containing more than 65536
> strings. More details at
> https://code.google.com/p/android/issues/detail?id=40772 and in the bug.
> 
> BUG=272064
> R=andrewhayden@chromium.org
> 
> Review URL: https://codereview.chromium.org/22950006

TBR=ppi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@217286 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-13 17:49:52 +00:00
ppi@chromium.org 10c2681249 Android: run dex with the --force-jumbo switch.
This is needed to merge dex files collectively containing more than 65536
strings. More details at
https://code.google.com/p/android/issues/detail?id=40772 and in the bug.

BUG=272064
R=andrewhayden@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@217273 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-13 16:31:10 +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
fischman@chromium.org cce7a2834f android/gyp/jar_toc.py: avoid specifying conflicting flags.
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javap.html says:
-protected Shows only protected and public classes and members.  
So there's no need to specify both -protected and -public.

Needed because in JDK7 javap is more particular about its flags and rejects this
particular combination.

BUG=https://code.google.com/p/webrtc/issues/detail?id=2034

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211700 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-15 21:19:47 +00:00
kkimlabs@chromium.org 19333597df [Android] Add an gyp option to disable generating v14 resources script.
Currently, we are generating v14 layout and style resources from v17
resources by replacing Start and End attributes to Left and Right
attributes. However, it is not necessary for all cases, so make an
option to disable generate_v14_compatible_resources.py script and
only verify that there is no RTL attributes in the pre-v17 resources.

BUG=247049

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 14:07:51 +00:00
hashimoto@chromium.org a4f7f2082c Add missing executable bits for get_device_configuration.py
Resulted in buildbot failures:
http://build.chromium.org/p/chromium/builders/Linux/builds/40444

BUG=None
TEST=check_perms.py
TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209624 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 06:47:48 +00:00
cjhopman@chromium.org ea831049c4 [Android] Add an action to check/record attached devices
When doing a gyp_managed_install, we install APKs to the attached
device. Currently this can fail in many ways (no device attached,
multiple devices attached, device offline, device doesn't have root,
etc.). In addition, we need to detect changes to the attached device
(particularly when the device is switched, when an APK is
 uninstalled/updated).

The current approach is to check all this information in the action
interacting with the device. This means that when there is some
problem we print the same warning messages for every APK that is built,
and, in some cases, multiple times for each APK. Also, we have to run
every install/push action every build because we detect changes to the
attached device in that action.

This change creates a new build action, "get device configurations".
This action inspects the attached devices, filters out offline devices,
filters out devices without root, and then writes a configuration
file with the id+metadata for the first non-filtered device. This
configuration is then used by each of the build steps that interacts
with the device. This consolidates all the device checking to a single
place, and the build actions don't need to do any checking. In
addition, to detect changes in the attached device, we only need to run
this single action every build and the install/push actions will only
change when the device/metadata changes.

Also, with this change we can now gracefully handle the case where
multiple devices are attached (currently just write the configuration
for the first valid device and install to that one).

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 01:52:33 +00:00
cjhopman@chromium.org ba517b8506 [Android] Support building standalone APK in component build
Many people's workflows assume that they can install the APK created in
out/Debug/apks. With the component build that APK is actually an
"incomplete" APK that cannot be manually installed (or rather causes
obscure errors when manually installed).

This change does two things. First, it moves the "incomplete" APK
output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
accidental installs of the "incomplete" APK. Second, it introduces an
option (create_standalone_apk) that when doing a component build, if
set, will merge the shared libraries into the "incomplete" APK to
create a standalone APK. This standalone APK will be created in
out/Debug/apks/.

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207345

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207516

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208529 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-25 18:42:07 +00:00
wjia@chromium.org 750459f031 Move create_standalone_apk.py into build/android/gyp/.
The create_standalone_apk.py should be in build/android/gyp/.

TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208378 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-25 03:27:48 +00:00
dfalcantara@chromium.org 458e6b0e2b Revert "[Android] Support building standalone APK in component build"
This breaks the Android component build.

This reverts commit 125e64a9eb6406446fb864aea9fa887521f19616.
>> [Android] Support building standalone APK in component build
>>
>> Many people's workflows assume that they can install the APK created in
>> out/Debug/apks. With the component build that APK is actually an
>> "incomplete" APK that cannot be manually installed (or rather causes
>> obscure errors when manually installed).
>>
>> This change does two things. First, it moves the "incomplete" APK
>> output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
>> accidental installs of the "incomplete" APK. Second, it introduces an
>> option (create_standalone_apk) that when doing a component build, if
>> set, will merge the shared libraries into the "incomplete" APK to
>> create a standalone APK. This standalone APK will be created in
>> out/Debug/apks/.
>>
>> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207345
>>
>> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207516

BUG=
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207587 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 21:42:06 +00:00
tedchoc@chromium.org 33a0c60572 Print a nicer error if installing an APK fails when you have not run adb root.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207585 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 21:37:03 +00:00
cjhopman@chromium.org f00dfb88a8 [Android] Support building standalone APK in component build
Many people's workflows assume that they can install the APK created in
out/Debug/apks. With the component build that APK is actually an
"incomplete" APK that cannot be manually installed (or rather causes
obscure errors when manually installed).

This change does two things. First, it moves the "incomplete" APK
output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
accidental installs of the "incomplete" APK. Second, it introduces an
option (create_standalone_apk) that when doing a component build, if
set, will merge the shared libraries into the "incomplete" APK to
create a standalone APK. This standalone APK will be created in
out/Debug/apks/.

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207345

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207516 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 19:51:29 +00:00
skyostil@google.com 283725629a Revert 207345 "[Android] Support building standalone APK in comp..."
This broke building of ChromeTest.apk. See:

http://chromegw.corp.google.com/i/clank.tot/builders/instrumentation-yakju-clankium-tot/builds/11555/steps/chrome_smoke_instrumentation_tests/logs/stdio

> [Android] Support building standalone APK in component build
> 
> Many people's workflows assume that they can install the APK created in
> out/Debug/apks. With the component build that APK is actually an
> "incomplete" APK that cannot be manually installed (or rather causes
> obscure errors when manually installed).
> 
> This change does two things. First, it moves the "incomplete" APK
> output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
> accidental installs of the "incomplete" APK. Second, it introduces an
> option (create_standalone_apk) that when doing a component build, if
> set, will merge the shared libraries into the "incomplete" APK to
> create a standalone APK. This standalone APK will be created in
> out/Debug/apks/.
> 
> Review URL: https://chromiumcodereview.appspot.com/14843017

TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207439 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 15:31:28 +00:00
cjhopman@chromium.org 7ad7e2169a [Android] Support building standalone APK in component build
Many people's workflows assume that they can install the APK created in
out/Debug/apks. With the component build that APK is actually an
"incomplete" APK that cannot be manually installed (or rather causes
obscure errors when manually installed).

This change does two things. First, it moves the "incomplete" APK
output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
accidental installs of the "incomplete" APK. Second, it introduces an
option (create_standalone_apk) that when doing a component build, if
set, will merge the shared libraries into the "incomplete" APK to
create a standalone APK. This standalone APK will be created in
out/Debug/apks/.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207345 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 07:58:19 +00:00
kkimlabs@chromium.org 198e305912 [Android] Skip generating v14 resources if already a version is specified.
If a version is already specified for resources, (e.g., layout-v20/), it shouldn't
be generating v14 compatible resource from it, because it's an explicit intention
to apply only to that version. The exception is for style resources due to the reason
explained at here https://codereview.chromium.org/16125003/.

BUG=247049

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204910 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 20:28:51 +00:00
kkimlabs@chromium.org 321aafd7a8 [Android] Raise a compile time error if style resource is under values/
Using paddingStart in style resource under values/ will cause crashes
on certain devices (crbug.com/243794). So Raise an error at compile time
if style resource exists under values/.

BUG=243952

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-30 21:38:59 +00:00
kkimlabs@chromium.org 79904c8a49 [Android] Generate v14 style resource from values-v17/ not values/.
If styles.xml has paddingStart and exists in values/, it will cause
crashes on Galaxy Tab&Note because style resources are not overrided by
the generated styles.xml (generate_v14_compatible_resources.py), which is to
avoid crashes on Galaxy Tab&Note (crbug.com/235118). So make
generate_v14_compatible_resource.py use styles.xml under values-v17/ not values/

BUG=243952

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202812 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-29 08:04:51 +00:00
cjhopman@chromium.org 1753c2d759 [Android] Fix proguard
Gyp supports only very limited ways of changing behavior based upon
CONFIGURATION_NAME. Particularly, it does not support the way that was
supposed to enable/disable use of proguard.

Instead of trying to switch behavior in gyp, instead pass
CONFIGURATION_NAME, proguard_enabled, and
proguard_enabled_dex_input_path to dex.py and switch the behavior
there.

This also extracts the dex actions into build/android/dex_action.gypi
and uses that for the actions in both build/java.gypi and
build/java_apk.gypi.

BUG=240837

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200958 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-18 02:33:37 +00:00
cjhopman@chromium.org e2f9224298 [Android] Pass -p to mkdir commands
These commands should not fail if the parent directory does not exist.
Pass -p so that all the parent directories are also made.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200456 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-16 05:14:05 +00:00
kkimlabs@chromium.org 557496ab19 [Android] Auto-generate only necessary v14 resources.
V14 Resource auto-generation was introduced by crbug.com/235118.
However, some resources doesn't use v17 attributes, so we don't
need to generate for all resources.

BUG=239742

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199564 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-10 23:11:34 +00:00
kkimlabs@chromium.org 692dfe3270 [Android] Warning if Left/Right attributes are used in layout and style xmls.
Since crbug.com/235118, Left/Right attributes are deprecated in favor of Start/End.
So warn if it contains Left/Right.

BUG=239606

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199452 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-10 10:49:12 +00:00
cjhopman@chromium.org 9370079412 [Android] With gyp_managed_install no device is only a warning
Before running any action that interacts with the device, check that 
one is actually attached. If not, print a big warning and skip the action.

BUG=235521
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 20:24:25 +00:00
kkimlabs@chromium.org 369f32f18b [Android] Auto-generate v14 style xml resources from the exisitng v17 style resources.
In addition to the previous v14 layout xml auto-generation patch,
(https://codereview.chromium.org/14476011/#ps69001)
this patch adds style xml resource auto-generation.

BUG=235118

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198947 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 18:32:49 +00:00
kkimlabs@chromium.org 8c5a209101 [Android] Auto-generate RTL layout xmls from existing layout xmls.
There are several attributes introduced in API 17, mostly for BiDi(RTL) support, e.g., paddingStart.
    This build script will generate another set of resource that is API 14 compatible by
    converting those API 17 attributes to API 14 attributes, e.g., paddingStart -> paddingLeft.
    The goal of this script is for programmers to use those attributes without worrying
    about backward-compatibility care and related bugs. About the bugs, please refer to crbug.com/235118 .
    
    BUG=235118

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198325 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-04 15:47:16 +00:00
cjhopman@chromium.org a23902746b [Android] Make gyp/apk_install.py resilient to user actions
If a user reinstalls/uninstalls/etc an APK, then the next build of that
APK should always install it (regardless of whether the md5sum of the
inputs matches the recording or not).

Adds an option to CheckCallAndRecord to force the call.

NOTRY=true
BUG=158821,234048

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196170 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 17:17:10 +00:00
cjhopman@chromium.org 823fb4b3e4 [Android] Use CONFIGURATION_NAME-specific device folders
If the device folder is not specific to debug/release, then switching
configurations changes the state on the device without updating the
corresponding records on the host (i.e. it only updates the ones for
that configuration).

NOTRY=true
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195852 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-23 18:30:26 +00:00