summaryrefslogtreecommitdiffstats
path: root/components/dom_distiller.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r--components/dom_distiller.gypi33
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',