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

Unified Diff: components/web_restrictions.gypi

Issue 1684153002: Web restrictions component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use source_set for test_support Created 4 years, 10 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
« no previous file with comments | « components/test/run_all_unittests.cc ('k') | components/web_restrictions/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_restrictions.gypi
diff --git a/components/web_restrictions.gypi b/components/web_restrictions.gypi
index 772e230dc51bf9604ed5c059b26aedae2d6dab8e..31c936b0fb03e099d04f477a277a52ef5d2fd495 100644
--- a/components/web_restrictions.gypi
+++ b/components/web_restrictions.gypi
@@ -11,13 +11,93 @@
'target_name': 'web_restrictions_java',
'type': 'none',
'variables': {
- 'java_in_dir': 'web_restrictions/java',
+ 'java_in_dir': 'web_restrictions/browser/java',
},
'dependencies': [
'../base/base.gyp:base',
],
'includes': [ '../build/java.gypi' ],
},
+ {
+ # GN: //components/web_restrictions:web_restrictions_jni_headers
+ 'target_name': 'web_restrictions_jni_headers',
+ 'type': 'none',
+ 'sources': [
+ 'web_restrictions/browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsClient.java',
+ ],
+ 'variables': {
+ 'jni_gen_package': 'components/web_restrictions',
+ },
+ 'includes': [ '../build/jni_generator.gypi' ],
+ },
+ {
+ # GN: //components/web_restrictions:browser
+ 'target_name': 'web_restrictions_browser',
+ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/content/content.gyp:content_browser',
+ 'web_restrictions_jni_headers',
+ ],
+ 'sources': [
+ "web_restrictions/browser/web_restrictions_client.cc",
+ "web_restrictions/browser/web_restrictions_client.h",
+ "web_restrictions/browser/web_restrictions_resource_throttle.cc",
+ "web_restrictions/browser/web_restrictions_resource_throttle.h",
+ ],
+ },
+ {
+ # GN: //components/web_restrictions:renderer
+ 'target_name': 'web_restrictions_renderer',
+ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/content/content.gyp:content_browser',
+ 'web_restrictions_jni_headers',
+ ],
+ 'sources': [
+ "web_restrictions/renderer/web_restrictions_gin_wrapper.cc",
+ "web_restrictions/renderer/web_restrictions_gin_wrapper.h",
+ ],
+ },
+ {
+ 'target_name': 'web_restrictions_test_support_jni_headers',
+ 'type': 'none',
+ 'sources': [
+ 'web_restrictions/browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestrictionsClient.java',
+ ],
+ 'variables': {
+ 'jni_gen_package': 'components/web_restrictions',
+ },
+ 'includes': [ '../build/jni_generator.gypi' ],
+ },
+ {
+ 'target_name': 'web_restrictions_test_support_java',
+ 'type': 'none',
+ 'dependencies': [
+ 'components.gyp:web_restrictions_java',
+ '../base/base.gyp:base_java',
+ ],
+ 'variables': {
+ 'java_in_dir': [
+ 'web_restrictions/browser/javatest/'
+ ],
+ },
+ 'includes': [ '../build/java.gypi' ],
+ },
+ {
+ 'target_name': 'web_restrictions_test_support',
+ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base',
+ 'web_restrictions_test_support_jni_headers',
+ ],
+ 'sources': [
+ 'web_restrictions/browser/mock_web_restrictions_client.cc',
+ 'web_restrictions/browser/mock_web_restrictions_client.h',
+ ],
+ }
+
],
}]]
}
« no previous file with comments | « components/test/run_all_unittests.cc ('k') | components/web_restrictions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698