Index: components/web_restrictions/BUILD.gn |
diff --git a/components/web_restrictions/BUILD.gn b/components/web_restrictions/BUILD.gn |
index 141449a859ade67be0802bccbb1cbbc49c2b6152..dc737571a1209cd56b07c9e44ceb4c63225ade17 100644 |
--- a/components/web_restrictions/BUILD.gn |
+++ b/components/web_restrictions/BUILD.gn |
@@ -4,17 +4,44 @@ |
import("//build/config/android/rules.gni") |
-# GYP: components.gyp:web_restrictions_java |
-android_library("web_restrictions_java") { |
- java_files = [ "java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java" ] |
-} |
+if (is_android) { |
+ # GYP: components.gyp:web_restrictions_java |
+ android_library("web_restrictions_java") { |
+ java_files = [ "java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java" ] |
+ } |
+ |
+ # GYP: //components/components_test.gyp:components_junit_tests |
+ junit_binary("components_web_restrictions_junit_tests") { |
+ java_files = [ "junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java" ] |
+ deps = [ |
+ ":web_restrictions_java", |
+ "//base:base_java", |
+ "//third_party/junit:hamcrest", |
+ ] |
+ } |
+ |
+ generate_jni("web_restrictions_jni_headers") { |
+ sources = [ |
+ "java/src/org/chromium/components/webrestrictions/ContentResolverWebRestrictionsProvider.java", |
+ ] |
+ jni_package = "web_restrictions" |
+ } |
-# GYP: //components/components_test.gyp:components_junit_tests |
-junit_binary("components_web_restrictions_junit_tests") { |
- java_files = [ "junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java" ] |
- deps = [ |
- ":web_restrictions_java", |
- "//base:base_java", |
- "//third_party/junit:hamcrest", |
- ] |
+ # GYP: components.gyp:web_restrictions |
+ static_library("web_restrictions") { |
+ sources = [ |
+ "content_resolver_web_restrictions_provider.cc", |
+ "content_resolver_web_restrictions_provider.h", |
+ "web_restrictions_gin_wrapper.cc", |
+ "web_restrictions_gin_wrapper.h", |
+ "web_restrictions_provider.h", |
+ "web_restrictions_resource_throttle.cc", |
+ "web_restrictions_resource_throttle.h", |
+ ] |
+ deps = [ |
+ ":web_restrictions_jni_headers", |
+ "//base", |
+ "//content/public/browser", |
+ ] |
+ } |
} |