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

19 Коммитов

Автор SHA1 Сообщение Дата
nyquist@chromium.org 0e337943da Add support for generating jars from protos and add cacheinvalidation_java.
The cacheinvalidation_java target is also added to build/all_android.gyp to
ensure it is always built since nothing currently depends on it upstream.
When all of Android-specific sync code is upstreamed, a target for sync
should be used instead of cacheinvalidation.

BUG=158382

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167746 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 21:20:47 +00:00
nyquist@chromium.org 64562a877b Check in protobuf java code and generate lite jar.
Since we only need the lite version of protobuf, we generate a jar file based
on includes in the maven pom.xml file for the lite profile.

BUG=158382

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167557 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 01:23:40 +00:00
cjhopman@chromium.org 81d6d2f456 Make java.gypi use all_dependent_settings for input_jars_paths
all_dependent_settings is more like the link_settings that we would like
to use here. This variable is used by java targets to set the classpath
for javac, i.e. to set the libraries that are needed by the target.

Use of direct_dependent_settings with export_dependent_settings causes
unnecessary duplication of all java dependencies for all of our java
library targets.

BUG=146049
TBR=sky,brettw


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@160768 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-09 02:20:29 +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
yusufo@chromium.org 2117618ca7 Revert "Revert 158067 - Remove native side of content_view_client"
The previous CL broke the build, because the changes in net_errors_java.template
didn't get the net_error_java target to be rebuilt. We needed a net.gyp change 
that makes sure NetError.java gets recreated after the changes.

BUG=137967

TBR=jam@chromium.org, mkosiba@chromium.org, willchan@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@158146 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-22 01:21:32 +00:00
peter@chromium.org b1744c8c01 Move Android's build_output_dirs target to its own file.
We shouldn't have logic in all_android.gyp. The purpose of that file is
solely to have a list of dependencies which should be build when creating
a gyp file for Android.

BUG=
TEST=gyp generation works.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@157963 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-09-21 11:11:10 +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
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
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
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
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
torne@chromium.org 266ef28ac0 Android: remove ant environment dependencies.
The logic to calculate where the SDK should be is already done by
envsetup and made available to gyp as a variable, so just have gyp pass
this as a command line argument to ant. The behaviour is identical.

This change is to move toward making it possible to build the Android
port without having envsetup.sh sourced at build time (only at
gyp-generation time), making it more like other platforms. It also
simplifies the ant buildfiles.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@149400 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-01 11:31:47 +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
jrg@chromium.org ee05979f3f Android content shell bringup.
Build media java files (we weren't).
Fix adb_install_content_shell for cases where the app was stuck.
Add upstream staging gyp var / #define.
Be more consistent about jar output files (all in lib.java).
Upstream a bunch of random files (e.g. ppapi).
Upstream a bunch of java and native code hit as part of shlib init.
Properly package jar files in content shell.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136219 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-10 01:50:47 +00:00
tedchoc@chromium.org 28fb84b4ae Implement the skeleton of an android content shell.
Many TODOs here that will allow a quicker distribution of work to get the
remaining pieces upstreamed.

BUG=118591
TEST=


Review URL: http://codereview.chromium.org/10035034

git-svn-id: http://src.chromium.org/svn/trunk/src/build@133857 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-25 03:18:46 +00:00
yfriedman@chromium.org 884abb2d56 Add templates for building java and running the jni_generator.
As requested in http://codereview.chromium.org/10073024/, I've created
templates for these two actions. I've also applied them to base.


Review URL: http://codereview.chromium.org/10081035

git-svn-id: http://src.chromium.org/svn/trunk/src/build@132537 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-17 04:39:52 +00:00