| Index: components/web_restriction/BUILD.gn
|
| diff --git a/components/web_restriction/BUILD.gn b/components/web_restriction/BUILD.gn
|
| index b6974db69d33c9c9dbc9db92c2eb951c9f9ead0a..034407d4f5646703f729022c3ad8146c14ec2ca8 100644
|
| --- a/components/web_restriction/BUILD.gn
|
| +++ b/components/web_restriction/BUILD.gn
|
| @@ -4,17 +4,44 @@
|
|
|
| import("//build/config/android/rules.gni")
|
|
|
| -# GYP: components.gyp:web_restriction_java
|
| -android_library("web_restriction_java") {
|
| - java_files = [ "java/src/org/chromium/components/webrestriction/WebRestrictionsContentProvider.java" ]
|
| -}
|
| +if (is_android) {
|
| + # GYP: components.gyp:web_restriction_java
|
| + android_library("web_restriction_java") {
|
| + java_files = [ "java/src/org/chromium/components/webrestriction/WebRestrictionsContentProvider.java" ]
|
| + }
|
| +
|
| + # GYP: //components/components_test.gyp:components_junit_tests
|
| + junit_binary("components_web_restrictions_junit_tests") {
|
| + java_files = [ "junit/src/org/chromium/components/webrestriction/WebRestrictionsContentProviderTest.java" ]
|
| + deps = [
|
| + ":web_restriction_java",
|
| + "//base:base_java",
|
| + "//third_party/junit:hamcrest",
|
| + ]
|
| + }
|
| +
|
| + generate_jni("web_restriction_jni_headers") {
|
| + sources = [
|
| + "java/src/org/chromium/components/webrestriction/ContentResolverWebRestrictionProvider.java",
|
| + ]
|
| + jni_package = "web_restriction"
|
| + }
|
|
|
| -# GYP: //components/components_test.gyp:components_junit_tests
|
| -junit_binary("components_web_restrictions_junit_tests") {
|
| - java_files = [ "junit/src/org/chromium/components/webrestriction/WebRestrictionsContentProviderTest.java" ]
|
| - deps = [
|
| - ":web_restriction_java",
|
| - "//base:base_java",
|
| - "//third_party/junit:hamcrest",
|
| - ]
|
| + # GYP: components.gyp:web_restriction
|
| + static_library("web_restriction") {
|
| + sources = [
|
| + "content_resolver_web_restriction_provider.cc",
|
| + "content_resolver_web_restriction_provider.h",
|
| + "web_restriction_gin_wrapper.cc",
|
| + "web_restriction_gin_wrapper.h",
|
| + "web_restriction_provider.h",
|
| + "web_restriction_resource_throttle.cc",
|
| + "web_restriction_resource_throttle.h",
|
| + ]
|
| + deps = [
|
| + ":web_restriction_jni_headers",
|
| + "//base",
|
| + "//content/public/browser",
|
| + ]
|
| + }
|
| }
|
|
|