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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS == "android"', { | 7 ['OS == "android"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 # GN: //components/web_restrictions:web_restrictions_java | 10 'target_name': 'web_restrictions_java_browser', |
11 'target_name': 'web_restrictions_java', | |
12 'type': 'none', | 11 'type': 'none', |
13 'variables': { | 12 'variables': { |
14 'java_in_dir': 'web_restrictions/browser/java', | 13 'java_in_dir': 'web_restrictions/browser/java', |
15 }, | 14 }, |
16 'dependencies': [ | 15 'dependencies': [ |
17 '../base/base.gyp:base', | 16 '../base/base.gyp:base', |
18 ], | 17 ], |
19 'includes': [ '../build/java.gypi' ], | 18 'includes': [ '../build/java.gypi' ], |
20 }, | 19 }, |
21 { | 20 { |
22 # GN: //components/web_restrictions:web_restrictions_jni_headers | 21 # GN: //components/web_restrictions:web_restrictions_jni_headers |
23 'target_name': 'web_restrictions_jni_headers', | 22 'target_name': 'web_restrictions_jni_headers', |
24 'type': 'none', | 23 'type': 'none', |
25 'sources': [ | 24 'sources': [ |
26 'web_restrictions/browser/java/src/org/chromium/components/webrestri
ctions/WebRestrictionsClient.java', | 25 'web_restrictions/browser/java/src/org/chromium/components/webrestri
ctions/browser/WebRestrictionsClient.java', |
| 26 'web_restrictions/browser/java/src/org/chromium/components/webrestri
ctions/browser/WebRestrictionsClientResult.java', |
27 ], | 27 ], |
28 'variables': { | 28 'variables': { |
29 'jni_gen_package': 'components/web_restrictions', | 29 'jni_gen_package': 'components/web_restrictions', |
30 }, | 30 }, |
31 'includes': [ '../build/jni_generator.gypi' ], | 31 'includes': [ '../build/jni_generator.gypi' ], |
32 }, | 32 }, |
33 { | 33 { |
34 # GN: //components/web_restrictions:browser | 34 # GN: //components/web_restrictions:browser |
35 'target_name': 'web_restrictions_browser', | 35 'target_name': 'web_restrictions_browser', |
36 'type': 'static_library', | 36 'type': 'static_library', |
37 'dependencies': [ | 37 'dependencies': [ |
38 '<(DEPTH)/base/base.gyp:base', | 38 '<(DEPTH)/base/base.gyp:base', |
39 '<(DEPTH)/content/content.gyp:content_browser', | 39 '<(DEPTH)/content/content.gyp:content_browser', |
| 40 'web_restrictions_interfaces', |
40 'web_restrictions_jni_headers', | 41 'web_restrictions_jni_headers', |
41 ], | 42 ], |
42 'sources': [ | 43 'sources': [ |
43 "web_restrictions/browser/web_restrictions_client.cc", | 44 "web_restrictions/browser/web_restrictions_client.cc", |
44 "web_restrictions/browser/web_restrictions_client.h", | 45 "web_restrictions/browser/web_restrictions_client.h", |
| 46 "web_restrictions/browser/web_restrictions_client_result.cc", |
| 47 "web_restrictions/browser/web_restrictions_client_result.h", |
| 48 "web_restrictions/browser/web_restrictions_mojo_implementation.cc", |
| 49 "web_restrictions/browser/web_restrictions_mojo_implementation.h", |
45 "web_restrictions/browser/web_restrictions_resource_throttle.cc", | 50 "web_restrictions/browser/web_restrictions_resource_throttle.cc", |
46 "web_restrictions/browser/web_restrictions_resource_throttle.h", | 51 "web_restrictions/browser/web_restrictions_resource_throttle.h", |
47 ], | 52 ], |
48 }, | 53 }, |
49 { | 54 { |
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', | 55 'target_name': 'web_restrictions_test_support_jni_headers', |
65 'type': 'none', | 56 'type': 'none', |
66 'sources': [ | 57 'sources': [ |
67 'web_restrictions/browser/javatest/src/org/chromium/components/webre
strictions/MockWebRestrictionsClient.java', | 58 'web_restrictions/browser/javatest/src/org/chromium/components/webre
strictions/browser/MockWebRestrictionsClient.java', |
68 ], | 59 ], |
69 'variables': { | 60 'variables': { |
70 'jni_gen_package': 'components/web_restrictions', | 61 'jni_gen_package': 'components/web_restrictions', |
71 }, | 62 }, |
72 'includes': [ '../build/jni_generator.gypi' ], | 63 'includes': [ '../build/jni_generator.gypi' ], |
73 }, | 64 }, |
74 { | 65 { |
75 'target_name': 'web_restrictions_test_support_java', | 66 'target_name': 'web_restrictions_test_support_java', |
76 'type': 'none', | 67 'type': 'none', |
77 'dependencies': [ | 68 'dependencies': [ |
78 'components.gyp:web_restrictions_java', | 69 'components.gyp:web_restrictions_java_browser', |
79 '../base/base.gyp:base_java', | 70 '../base/base.gyp:base_java', |
80 ], | 71 ], |
81 'variables': { | 72 'variables': { |
82 'java_in_dir': [ | 73 'java_in_dir': [ |
83 'web_restrictions/browser/javatest/' | 74 'web_restrictions/browser/javatest/' |
84 ], | 75 ], |
85 }, | 76 }, |
86 'includes': [ '../build/java.gypi' ], | 77 'includes': [ '../build/java.gypi' ], |
87 }, | 78 }, |
88 { | 79 { |
89 'target_name': 'web_restrictions_test_support', | 80 'target_name': 'web_restrictions_test_support', |
(...skipping 15 matching lines...) Expand all Loading... |
105 ], | 96 ], |
106 'variables': { | 97 'variables': { |
107 'main_class': 'org.chromium.testing.local.JunitTestMain', | 98 'main_class': 'org.chromium.testing.local.JunitTestMain', |
108 'src_paths': [ | 99 'src_paths': [ |
109 '../testing/android/junit/DummyTest.java', | 100 '../testing/android/junit/DummyTest.java', |
110 ], | 101 ], |
111 'wrapper_script_name': 'helper/<(_target_name)', | 102 'wrapper_script_name': 'helper/<(_target_name)', |
112 }, | 103 }, |
113 'includes': [ '../build/host_jar.gypi' ], | 104 'includes': [ '../build/host_jar.gypi' ], |
114 }, | 105 }, |
115 ], | 106 { |
116 }]] | 107 'target_name': 'web_restrictions_interfaces', |
| 108 'type': 'static_library', |
| 109 'includes': [ |
| 110 '../mojo/mojom_bindings_generator.gypi', |
| 111 ], |
| 112 'sources': [ |
| 113 'web_restrictions/interfaces/web_restrictions.mojom' |
| 114 ], |
| 115 }, |
| 116 ], |
| 117 } |
| 118 ]] |
117 } | 119 } |
OLD | NEW |