diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 09:32:18 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 09:32:18 +0000 |
commit | ef0eb442df6964eb24137b25bf53d0c8979515a5 (patch) | |
tree | 29cd3eee22f0fcb44484926785c8203c531f1239 /net/BUILD.gn | |
parent | 993c0502dc7e3105fed1e03b4521fd6099f66eda (diff) | |
download | chromium_src-ef0eb442df6964eb24137b25bf53d0c8979515a5.zip chromium_src-ef0eb442df6964eb24137b25bf53d0c8979515a5.tar.gz chromium_src-ef0eb442df6964eb24137b25bf53d0c8979515a5.tar.bz2 |
Port net_jni_headers target to GN build.
In Debug build:
$ gn gen out/Debug --args='os="android" cpu_arch="x86"'
$ ninja -C out/Debug net_jni_headers
In Release build:
$ gn gen out/Debug --args='is_debug=false os="android" cpu_arch="x86"'
$ ninja -C out/Release net_jni_headers
BUG=None
TEST=see above
R=cjhopman@chromium.org, wtc@chromium.org
Review URL: https://codereview.chromium.org/284743008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/BUILD.gn')
-rw-r--r-- | net/BUILD.gn | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/net/BUILD.gn b/net/BUILD.gn index ccd8347..5a26580 100644 --- a/net/BUILD.gn +++ b/net/BUILD.gn @@ -9,6 +9,7 @@ import("//tools/grit/grit_rule.gni") if (is_android) { import("//build/config/android/config.gni") + import("//build/config/android/rules.gni") } else if (is_mac) { import("//build/config/mac/mac_sdk.gni") } @@ -958,7 +959,21 @@ if (is_linux) { } } -# TODO(GYP) Android net_jni_headers target and related. +if (is_android) { + generate_jni("net_jni_headers") { + sources = [ + "android/java/src/org/chromium/net/AndroidCertVerifyResult.java", + "android/java/src/org/chromium/net/AndroidKeyStore.java", + "android/java/src/org/chromium/net/AndroidNetworkLibrary.java", + "android/java/src/org/chromium/net/AndroidPrivateKey.java", + "android/java/src/org/chromium/net/GURLUtils.java", + "android/java/src/org/chromium/net/NetworkChangeNotifier.java", + "android/java/src/org/chromium/net/ProxyChangeListener.java", + "android/java/src/org/chromium/net/X509Util.java", + ] + jni_package = "net" + } +} if (is_android || is_linux) { executable("disk_cache_memory_test") { |