diff options
author | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-10 15:52:47 +0000 |
---|---|---|
committer | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-10 15:52:47 +0000 |
commit | bb6bd1f3beed051238f36bd0fca9014ebfa9bffc (patch) | |
tree | 7eec7720e77f0a739fb4cbf44ff8908d0f3cd68a /net/net.gyp | |
parent | 0603f9c107f4c5511a870bbc8f6b5954124944f0 (diff) | |
download | chromium_src-bb6bd1f3beed051238f36bd0fca9014ebfa9bffc.zip chromium_src-bb6bd1f3beed051238f36bd0fca9014ebfa9bffc.tar.gz chromium_src-bb6bd1f3beed051238f36bd0fca9014ebfa9bffc.tar.bz2 |
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: svn://svn.chromium.org/chrome/trunk/src@155737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r-- | net/net.gyp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/net/net.gyp b/net/net.gyp index a5b1cba..33872dc 100644 --- a/net/net.gyp +++ b/net/net.gyp @@ -1111,6 +1111,14 @@ ], }, ], + ['OS=="android" and _toolset=="target"', { + 'dependencies': [ + 'net_java', + ], + 'export_dependent_settings': [ + 'net_java', + ], + }], [ 'OS == "android"', { 'dependencies': [ '../third_party/openssl/openssl.gyp:openssl', @@ -2102,10 +2110,10 @@ 'java_in_dir': '../net/android/java', }, 'dependencies': [ - '../base/base.gyp:base_java', + '../base/base.gyp:base', ], 'export_dependent_settings': [ - '../base/base.gyp:base_java', + '../base/base.gyp:base', ], 'includes': [ '../build/java.gypi' ], }, @@ -2117,12 +2125,14 @@ 'java_in_dir': '../net/android/javatests', }, 'dependencies': [ - '../base/base.gyp:base_java', + '../base/base.gyp:base', '../base/base.gyp:base_java_test_support', + 'net_java', ], 'export_dependent_settings': [ - '../base/base.gyp:base_java', + '../base/base.gyp:base', '../base/base.gyp:base_java_test_support', + 'net_java', ], 'includes': [ '../build/java.gypi' ], }, |