Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: components/web_restriction/BUILD.gn

Issue 1423713015: [WIP] WebRestrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: continue review in split cl Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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",
+ ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698