summaryrefslogtreecommitdiffstats
path: root/components/dom_distiller.gypi
diff options
context:
space:
mode:
authornyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-05 02:25:20 +0000
committernyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-05 02:25:20 +0000
commit184ae3f1bdc996fb4e80983ace65586968dd34b1 (patch)
treee7e4e94671ccd356038cd7299b0928a4640f2001 /components/dom_distiller.gypi
parentf91d89e9259db7e7dcddc6051715effbde06112d (diff)
downloadchromium_src-184ae3f1bdc996fb4e80983ace65586968dd34b1.zip
chromium_src-184ae3f1bdc996fb4e80983ace65586968dd34b1.tar.gz
chromium_src-184ae3f1bdc996fb4e80983ace65586968dd34b1.tar.bz2
Add UI hook for distilling web pages for test shell.
This adds the Java hooks needed and a menu option to distill the current web page in the test shell. BUG=319881 NOTRY=true Review URL: https://codereview.chromium.org/185113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254929 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r--components/dom_distiller.gypi37
1 files changed, 37 insertions, 0 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi
index 1ad3f07..4e8b6ed 100644
--- a/components/dom_distiller.gypi
+++ b/components/dom_distiller.gypi
@@ -48,6 +48,8 @@
'distilled_page_proto',
],
'sources': [
+ 'dom_distiller/android/component_jni_registrar.cc',
+ 'dom_distiller/android/component_jni_registrar.h',
'dom_distiller/core/article_entry.cc',
'dom_distiller/core/article_entry.h',
'dom_distiller/core/distiller.cc',
@@ -73,9 +75,18 @@
'dom_distiller/core/task_tracker.h',
'dom_distiller/core/url_constants.cc',
'dom_distiller/core/url_constants.h',
+ 'dom_distiller/core/url_utils_android.cc',
+ 'dom_distiller/core/url_utils_android.h',
'dom_distiller/core/url_utils.cc',
'dom_distiller/core/url_utils.h',
],
+ 'conditions': [
+ ['OS == "android"', {
+ 'dependencies': [
+ 'dom_distiller_core_jni_headers',
+ ],
+ }],
+ ],
},
{
'target_name': 'dom_distiller_test_support',
@@ -137,6 +148,32 @@
},
],
}],
+ ['OS=="android"', {
+ 'targets': [
+ {
+ 'target_name': 'dom_distiller_core_java',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ ],
+ 'variables': {
+ 'java_in_dir': 'dom_distiller/android/java',
+ },
+ 'includes': [ '../build/java.gypi' ],
+ },
+ {
+ 'target_name': 'dom_distiller_core_jni_headers',
+ 'type': 'none',
+ 'sources': [
+ 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
+ ],
+ 'variables': {
+ 'jni_gen_package': 'dom_distiller_core',
+ },
+ 'includes': [ '../build/jni_generator.gypi' ],
+ },
+ ],
+ }],
],
}],
],