diff options
author | cjhopman <cjhopman@chromium.org> | 2015-04-10 18:19:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-11 01:21:00 +0000 |
commit | 066f2b8678771a00db9402c0774e4b942001220c (patch) | |
tree | 3ee37e63f0df1cd8f54a731435a2e79fde554526 /components/dom_distiller.gypi | |
parent | f42e70932de69422378f3fef25df8afc4f2bb8e1 (diff) | |
download | chromium_src-066f2b8678771a00db9402c0774e4b942001220c.zip chromium_src-066f2b8678771a00db9402c0774e4b942001220c.tar.gz chromium_src-066f2b8678771a00db9402c0774e4b942001220c.tar.bz2 |
Add Java interface to IsDistillablePage
BUG=471439
Review URL: https://codereview.chromium.org/1049873004
Cr-Commit-Position: refs/heads/master@{#324740}
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r-- | components/dom_distiller.gypi | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi index 1a31ac2..69a1a4d 100644 --- a/components/dom_distiller.gypi +++ b/components/dom_distiller.gypi @@ -182,6 +182,8 @@ 'sources': [ 'dom_distiller/content/distillable_page_utils.cc', 'dom_distiller/content/distillable_page_utils.h', + 'dom_distiller/content/distillable_page_utils_android.cc', + 'dom_distiller/content/distillable_page_utils_android.h', 'dom_distiller/content/distiller_page_web_contents.cc', 'dom_distiller/content/distiller_page_web_contents.h', 'dom_distiller/content/dom_distiller_viewer_source.cc', @@ -189,6 +191,14 @@ 'dom_distiller/content/web_contents_main_frame_observer.cc', 'dom_distiller/content/web_contents_main_frame_observer.h', ], + 'conditions': [ + ['OS == "android"', { + 'dependencies': [ + 'dom_distiller_content_jni_headers', + 'dom_distiller_core_jni_headers', + ], + }], + ], }, ], }], @@ -217,13 +227,22 @@ ['OS=="android"', { 'targets': [ { - # GN: //components/dom_distiller/android:dom_distiller_core_java + # TODO(cjhopman): remove this when it is rolled downstream. 'target_name': 'dom_distiller_core_java', 'type': 'none', 'dependencies': [ + 'dom_distiller_java', + ], + }, + { + # GN: //components/dom_distiller/android:dom_distiller_java + 'target_name': 'dom_distiller_java', + 'type': 'none', + 'dependencies': [ 'dom_distiller_core_font_family_java', 'dom_distiller_core_theme_java', '../base/base.gyp:base', + '../content/content.gyp:content_java', ], 'variables': { 'java_in_dir': 'dom_distiller/android/java', @@ -244,6 +263,18 @@ 'includes': [ '../build/android/java_cpp_template.gypi' ], }, { + # GN: //components/dom_distiller/content:jni_headers + 'target_name': 'dom_distiller_content_jni_headers', + 'type': 'none', + 'sources': [ + 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java', + ], + 'variables': { + 'jni_gen_package': 'dom_distiller_content', + }, + 'includes': [ '../build/jni_generator.gypi' ], + }, + { # GN: //components/dom_distiller/core:jni_headers 'target_name': 'dom_distiller_core_jni_headers', 'type': 'none', |