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

22 Коммитов

Автор SHA1 Сообщение Дата
yfriedman@chromium.org 2127dfe22d [Android] Temporarily force gtests to be unmanaged.
There's a little more to support these as managed both in packaging and the
scripts that run tests. Disable for now.
BUG=158821
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193776 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-11 22:05:47 +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 ef636e4d0c [Android] Use the build-generated list of libraries for gtest APKs
For normal APKs, the build generates a list of libraries to load at
build time and this is used at runtime to load libraries. Update our
gtest APKs to use this.

This makes gtest APKs work in the component build.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193536 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-11 01:52:47 +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 196ded54dc Suppress Ant build noise
Use a simple wrapper script for calling ant. This allows us to suppress the
"BUILD SUCCESSFUL" + timing output from ant.

BUG=164395


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 03:41:57 +00:00
cjhopman@chromium.org f3291312cc Move ant call from python to gyp
All of our APKs should be built with build/java_apk.gypi. Currently,
native test APKs are built very differently. This change makes them
build more like other apks, as a first step to using java_apk.gypi.

Since WebKit's gyp files use generate_native_test.py directly, 
rather than including apk_test.gypi, generate_native_test.py 
needs to continue to support using it for ant compilation. :(

BUG=177121


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@183614 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-20 20:54:28 +00:00
ppi@chromium.org 64ca99f999 Add dependency on Android tools to native unittests APKs targets
This patch adds dependencies on Android tools (port forwarder and md5 util used
for conditional file pushes) required to run native unittests APKs to the APKs
targets. 

BUG=161257

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173728 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 14:15:28 +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
cjhopman@chromium.org a885b4deb8 Remove hardcoded chromium_*.jar paths
Targets with dependencies (direct/indirect) on a java target receive the
chromium_*.jar paths in the variable input_jars_paths. Targets should
use that rather than hardcoding where they think the jar will be.

Change native_test_apk.xml to build with a list of jars in
INPUT_JARS_PATHS rather than using all jars in a specific output
directory.

Make generate_native_test.py pass the --jars argument to ant with
-DINPUT_JARS_PATHS. This supports those targets (WebKit) that are not
updated to pass the ant-arg directly.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171131 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-05 02:32:23 +00:00
shashishekhar@chromium.org 86b13ebd17 Nuke unused test code.
SDK build is the default build, we do not need Android.mk based
compilation.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@161127 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-10 17:21:09 +00:00
pliard@chromium.org 11afdc1d58 Remove {base,net}_java dependencies from GYP client targets on Android.
On Android, some GYP client targets were explicitly depending on both the
native and Java sides of a library.
This removes the dependencies to {base,net}_java and make the native side
('base' and 'net) of these libraries depend on their Java counterpart.
On Android it rarely makes sense to depend on a single side of a Java/C++
library.
The {base,net}_java can now be considered as "private" targets although GYP
does not support this concept unfortunately (AFAICT).
Note that I made sure that the resulting APKs' size is unchanged.

Additionally, this CL removes 'base_java' (i.e. does not replace it with
'base') from the targets including 'build/apk_test.gypi'. This dependency
should not have been there (in the wrong layer) in the first place. It's needed
by ChromeNativeTestActivity.java which clients should not know about.

BUG=146323
TBR=lipalani,sky,willchan,brettw

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@155737 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-10 15:52:47 +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
michaelbai@chromium.org 571ac92a0a Add gdb server variable for ant
This is the first CL to replace the ant property toolchain.dir with
android.gdbserver.

After this submitted
- Add android_gdbserver into WebKit gypis.
- Retire the toolchain.dir from ant by using android.gdbserver.
- Remove the ANDROID_TOOLCHAIN from both WebKit and chromium's gyp/gypi
- Remove the android_toolchain from envsetup_function.sh

TBR=jam
BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@154298 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-30 22:54:09 +00:00
peter@chromium.org b60c707932 Remove the dependency on the STRIP env variable for Android
Android builds currently rely on the STRIP environment variable to be available
during build time, rather than just at project generation time. It shouldn't.

BUG=142642


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@151886 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-16 13:52:04 +00:00
peter@chromium.org 872f9887c8 Remove uses of Android's test runner's --ant-compile, as well as the flag itself.
It has been superseded by --sdk-build, which has already been set for all
other Chromium and WebKit users.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@151709 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-15 17:10:12 +00:00
peter@chromium.org c78c8914a1 Android's native_tests.gyp should take WebKit's directory structure into account.
This broke the WebKit Chromium Android bot.

BUG=142322

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@151257 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-13 13:59:20 +00:00
cjhopman@chromium.org 2652c74f23 Make java.gypi export jar path to input_jars_paths variable
Both java.gypi and apk_test.gypi expect the jar path in
input_jars_paths. This means that we were specifying the dependence in
both 'dependencies' and 'input_jars_paths'. This change makes it so that
we don't need that redundancy.

Also, make java.gypi use input_jars_paths in its input so that we
actually rebuild targets when we should.

BUG=136756


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@150850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-09 18:08:19 +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
peter@chromium.org 66d409799f Introduce the --sdk-build flag for Android's native test generator
This flag supersedes --ant-compile and takes its value from gyp's sdk_build
variable. It will tell the native test generator script to use Ant for Java
compilation (default) instead of the Android.mk file.
    
BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@149440 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-01 17:39:24 +00:00
yongsheng.zhu@intel.com 3113b19b42 Add the target ABI option for apk based test runner
Remove the hardcode directory name 'armeabi' and replace it with the Android target ABI information.

Trivial gyp changes that are android-specific; TBRing some owners
TBR=mark@chromium.org,jam@chromium.org,sky@chromium.org 

BUG=128944
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139512 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-30 09:27:12 +00:00
yfriedman@chromium.org 7396434af9 Fix ninja build for android.
The primary issues is specifying the right path to PRODUCT_DIR (i.e.
out/Release). The gyp generator for make specifies the absolute path but
for ninja would use a relative path. Since the gyp targets don't line
up with where the ant build files are located this causes failures such
as base's java being generated in base/android/out/Release/...

See:
https://groups.google.com/forum/#!msg/gyp-developer/K2T_9obUya0/qq78_Ut-E-AJ
for details.

A couple of other minor fixes:
- content java files are placed in out/Release/java/content to be
  consisent with other packages.
- shared-libraries are now referenced by correct variables for apk-based
  tests
- removed unused media/base/android/java/java.gyp (target is in
  media/media.gyp)

TBR=mark@chromium.org,ben@chromium.org,rsleevi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139418 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-29 23:19:13 +00:00
nileshagrawal@chromium.org daad99ff84 Add APK targets for content_unittests and net_unittests.
- Add a gyp template to simplify adding new targets.
  - Add support for multiple jars in the test APK.
    
BUG=125059


TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139106 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-25 20:17:49 +00:00