OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 # GYP: components.gyp:web_restriction_java | 7 if (is_android) { |
8 android_library("web_restriction_java") { | 8 # GYP: components.gyp:web_restriction_java |
9 java_files = [ "java/src/org/chromium/components/webrestriction/WebRestriction
sContentProvider.java" ] | 9 android_library("web_restriction_java") { |
| 10 java_files = [ "java/src/org/chromium/components/webrestriction/WebRestricti
onsContentProvider.java" ] |
| 11 } |
| 12 |
| 13 # GYP: //components/components_test.gyp:components_junit_tests |
| 14 junit_binary("components_web_restrictions_junit_tests") { |
| 15 java_files = [ "junit/src/org/chromium/components/webrestriction/WebRestrict
ionsContentProviderTest.java" ] |
| 16 deps = [ |
| 17 ":web_restriction_java", |
| 18 "//base:base_java", |
| 19 "//third_party/junit:hamcrest", |
| 20 ] |
| 21 } |
| 22 |
| 23 generate_jni("web_restriction_jni_headers") { |
| 24 sources = [ |
| 25 "java/src/org/chromium/components/webrestriction/ContentResolverWebRestric
tionProvider.java", |
| 26 ] |
| 27 jni_package = "web_restriction" |
| 28 } |
| 29 |
| 30 # GYP: components.gyp:web_restriction |
| 31 static_library("web_restriction") { |
| 32 sources = [ |
| 33 "content_resolver_web_restriction_provider.cc", |
| 34 "content_resolver_web_restriction_provider.h", |
| 35 "web_restriction_gin_wrapper.cc", |
| 36 "web_restriction_gin_wrapper.h", |
| 37 "web_restriction_provider.h", |
| 38 "web_restriction_resource_throttle.cc", |
| 39 "web_restriction_resource_throttle.h", |
| 40 ] |
| 41 deps = [ |
| 42 ":web_restriction_jni_headers", |
| 43 "//base", |
| 44 "//content/public/browser", |
| 45 ] |
| 46 } |
10 } | 47 } |
11 | |
12 # GYP: //components/components_test.gyp:components_junit_tests | |
13 junit_binary("components_web_restrictions_junit_tests") { | |
14 java_files = [ "junit/src/org/chromium/components/webrestriction/WebRestrictio
nsContentProviderTest.java" ] | |
15 deps = [ | |
16 ":web_restriction_java", | |
17 "//base:base_java", | |
18 "//third_party/junit:hamcrest", | |
19 ] | |
20 } | |
OLD | NEW |