Index: components/dom_distiller/core/BUILD.gn |
diff --git a/components/dom_distiller/core/BUILD.gn b/components/dom_distiller/core/BUILD.gn |
index da3340539eb04ba35daa01480e056a955a7ec1ab..8f9a7a638c5de573802e402d2ec23844e21f9cb5 100644 |
--- a/components/dom_distiller/core/BUILD.gn |
+++ b/components/dom_distiller/core/BUILD.gn |
@@ -66,7 +66,7 @@ static_library("core") { |
] |
if (is_android) { |
- #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP) |
+ deps += [ ":jni_headers" ] |
} |
} |
@@ -114,3 +114,16 @@ source_set("unit_tests") { |
"//testing/gtest", |
] |
} |
+ |
+if (is_android) { |
+ import("//build/config/android/rules.gni") |
+ |
+ generate_jni("jni_headers") { |
+ sources = [ |
+ "../android/java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java", |
+ "../android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java", |
+ "../android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java", |
+ ] |
+ jni_package = "dom_distiller_core" |
+ } |
+} |