Hook up use_system_libjpeg for Android

Also enable it by default when builing with the Android build system.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[Android] Add remaining build/common.gypi changes from downstream and strip NOTIMPLEMENTED()s from official builds.

Includes:
1) Allowing overridding of android_ndk_sysroot (addition of "%" in
variable name).
2) Disable NOTIMPLEMENTED output for official builds (see base/logging.h)
3) Add clang build configurations
4) Remove unnecessary cflags from regular build.
5) Include crtbegin_so.o and crtend_so.so for _type=="loadable_module"
which is needed for ppapi_tests.

BUG=137569


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147986 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Conditionally add the OpenGL ES 2.0 conformance tests to all.gyp

This is a step to getting the OpenGL ES 2.0 conformance tests
running on the gpu bots. Actually running them will be another CL or 2.

TEST=they build
BUG=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148023 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix GPUTestConfigTest.LoadCurrentConfig on Android

It's a case in content unittests. Implement the config for Android.

BUG=
TEST=run_tests.py -s content_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148040 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix the sqlite errors of content unittests on Android

Many tests are failed due to sqlite errors on Android.
The reason is that sqlite need a temporary directory to
store internal temporary files. However, Android doesn't
have this kind of directory while Linux has /var/tmp.

To fix this, use in-memory temporary files. It also includes:
1) Add one unit test in sql unittests to reproduce this
issue for Android.
2) Remove those disabled cases for content unitests on
Android.

BUG=
TEST=run_tests.py -s sql_unittests; run_test.py -s net_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148064 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
export ANDROID_SDK_HOME when creating AVD

ANDROID_SDK_HOME is set in build/android/envsetup.sh, so android will
try to search for AVDs in that folder when running tests.

If not set this variable in this script, the AVDs created with this script
are invisible for the tests.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148066 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix Android FYI base|net_unittests

Add back missing -U __linux__ to common.gypi.

Partial revert of https://chromiumcodereview.appspot.com/10808042/


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148098 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Use system bzip2 on iOS.


BUG=none
TEST=none


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148118 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
GYP changes to get sql and sqlite building on iOS.

BUG=None
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148136 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert 148098 - Fix Android FYI base|net_unittests

Add back missing -U __linux__ to common.gypi.

Partial revert of https://chromiumcodereview.appspot.com/10808042/


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

TBR=benm@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10795093

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148146 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert 147986 - [Android] Add remaining build/common.gypi changes from downstream and strip NOTIMPLEMENTED()s from official builds.

Includes:
1) Allowing overridding of android_ndk_sysroot (addition of "%" in
variable name).
2) Disable NOTIMPLEMENTED output for official builds (see base/logging.h)
3) Add clang build configurations
4) Remove unnecessary cflags from regular build.
5) Include crtbegin_so.o and crtend_so.so for _type=="loadable_module"
which is needed for ppapi_tests.

BUG=137569


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

TBR=yfriedman@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10816039

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148147 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Restarting adb server before each testing start will cause conflict for multiple emulators

Sometimes there is conflict when several tests restart adb server at the same time.
Originally, restarting adb server is to fix the issue of connection lost with adb server when emulator booting, as this case already handled in AndroidCommand::WaitForSystemBootCompleted(), so it can be removed now. 

Also fix a typo.

BUG=
TEST=./build/android/run_tests.py -e -n 5

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148242 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix failed cases ImageTest.* for Android

For Android, it doesn't use views but use skia natively.

BUG=
TEST=run_tests.py -s ui_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148287 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable failing Android ui_unittests.

These tests are suppressed downstream, syncing those suppressions
upstream.

BUG=138933
TEST=ui_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148310 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable failing content_unittests on Android.

BUG=138930

TEST=content_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Enable more targets for iOS in all.gyp

All these targets have come online for iOS, and build successfully.

BUG=None
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148320 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Enabling breakpad on iOS.

BUG=None
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148329 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert "Revert 147986 - [Android] Add remaining build/common.gypi changes from downstream and strip NOTIMPLEMENTED()s from official builds."

Relanding http://codereview.chromium.org/10816039/ but removing the
clang parts and fixing x86.

This reverts commit 7fc96c8b734fc9bc8152329d99e8ee3f3de14a65.

BUG=137569


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add libc6-i386 lib32gcc1 in dev_list.

Native client toolchain still need some extra 32 bit libraries belong to
packages libc6-i386 and lib32gcc1. Instead of adding all 32-bit libraries,
adding above two packages in common (64-bit and 32-bit) makes more sense.

TEST=build on 64-bit linux
BUG=138234


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148356 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[Android] Upstream additional changes from envsetup.

Splits helper functions out of envsetup into envsetup_functions.sh.
Also includes device helper functions in
build/android/adb_device_functions.sh.

Finally, some fixes to build/common.gypi that happened when
cherry-picked down https://chromiumcodereview.appspot.com/10807019

BUG=137569,136693


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148377 4ff67af0-8c30-449e-8e8b-ad334ec8d88c