blob: 31c936b0fb03e099d04f477a277a52ef5d2fd495 [file] [log] [blame]
aberentec7d1d12016-01-05 13:04:481# Copyright 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'conditions': [
7 ['OS == "android"', {
8 'targets': [
9 {
knn19b664f12016-01-26 19:06:1310 # GN: //components/web_restrictions:web_restrictions_java
11 'target_name': 'web_restrictions_java',
aberentec7d1d12016-01-05 13:04:4812 'type': 'none',
13 'variables': {
aberentd64572072016-03-01 23:34:4514 'java_in_dir': 'web_restrictions/browser/java',
aberentec7d1d12016-01-05 13:04:4815 },
16 'dependencies': [
17 '../base/base.gyp:base',
18 ],
19 'includes': [ '../build/java.gypi' ],
20 },
aberentd64572072016-03-01 23:34:4521 {
22 # GN: //components/web_restrictions:web_restrictions_jni_headers
23 'target_name': 'web_restrictions_jni_headers',
24 'type': 'none',
25 'sources': [
26 'web_restrictions/browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsClient.java',
27 ],
28 'variables': {
29 'jni_gen_package': 'components/web_restrictions',
30 },
31 'includes': [ '../build/jni_generator.gypi' ],
32 },
33 {
34 # GN: //components/web_restrictions:browser
35 'target_name': 'web_restrictions_browser',
36 'type': 'static_library',
37 'dependencies': [
38 '<(DEPTH)/base/base.gyp:base',
39 '<(DEPTH)/content/content.gyp:content_browser',
40 'web_restrictions_jni_headers',
41 ],
42 'sources': [
43 "web_restrictions/browser/web_restrictions_client.cc",
44 "web_restrictions/browser/web_restrictions_client.h",
45 "web_restrictions/browser/web_restrictions_resource_throttle.cc",
46 "web_restrictions/browser/web_restrictions_resource_throttle.h",
47 ],
48 },
49 {
50 # GN: //components/web_restrictions:renderer
51 'target_name': 'web_restrictions_renderer',
52 'type': 'static_library',
53 'dependencies': [
54 '<(DEPTH)/base/base.gyp:base',
55 '<(DEPTH)/content/content.gyp:content_browser',
56 'web_restrictions_jni_headers',
57 ],
58 'sources': [
59 "web_restrictions/renderer/web_restrictions_gin_wrapper.cc",
60 "web_restrictions/renderer/web_restrictions_gin_wrapper.h",
61 ],
62 },
63 {
64 'target_name': 'web_restrictions_test_support_jni_headers',
65 'type': 'none',
66 'sources': [
67 'web_restrictions/browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestrictionsClient.java',
68 ],
69 'variables': {
70 'jni_gen_package': 'components/web_restrictions',
71 },
72 'includes': [ '../build/jni_generator.gypi' ],
73 },
74 {
75 'target_name': 'web_restrictions_test_support_java',
76 'type': 'none',
77 'dependencies': [
78 'components.gyp:web_restrictions_java',
79 '../base/base.gyp:base_java',
80 ],
81 'variables': {
82 'java_in_dir': [
83 'web_restrictions/browser/javatest/'
84 ],
85 },
86 'includes': [ '../build/java.gypi' ],
87 },
88 {
89 'target_name': 'web_restrictions_test_support',
90 'type': 'static_library',
91 'dependencies': [
92 '<(DEPTH)/base/base.gyp:base',
93 'web_restrictions_test_support_jni_headers',
94 ],
95 'sources': [
96 'web_restrictions/browser/mock_web_restrictions_client.cc',
97 'web_restrictions/browser/mock_web_restrictions_client.h',
98 ],
99 }
100
aberentec7d1d12016-01-05 13:04:48101 ],
102 }]]
103}