OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'conditions': [ | |
7 ['OS == "android"', { | |
8 'targets': [ | |
9 { | |
10 'target_name': 'web_restrictions_java_browser', | |
11 'type': 'none', | |
12 'variables': { | |
13 'java_in_dir': 'web_restrictions/browser/java', | |
14 }, | |
15 'dependencies': [ | |
16 '../base/base.gyp:base', | |
17 ], | |
18 'includes': [ '../build/java.gypi' ], | |
19 }, | |
20 { | |
21 # GN: //components/web_restrictions:web_restrictions_jni_headers | |
22 'target_name': 'web_restrictions_jni_headers', | |
23 'type': 'none', | |
24 'sources': [ | |
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 ], | |
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_interfaces', | |
41 'web_restrictions_jni_headers', | |
42 ], | |
43 'sources': [ | |
44 "web_restrictions/browser/web_restrictions_client.cc", | |
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", | |
50 "web_restrictions/browser/web_restrictions_resource_throttle.cc", | |
51 "web_restrictions/browser/web_restrictions_resource_throttle.h", | |
52 ], | |
53 }, | |
54 { | |
55 'target_name': 'web_restrictions_test_support_jni_headers', | |
56 'type': 'none', | |
57 'sources': [ | |
58 'web_restrictions/browser/javatest/src/org/chromium/components/webre
strictions/browser/MockWebRestrictionsClient.java', | |
59 ], | |
60 'variables': { | |
61 'jni_gen_package': 'components/web_restrictions', | |
62 }, | |
63 'includes': [ '../build/jni_generator.gypi' ], | |
64 }, | |
65 { | |
66 'target_name': 'web_restrictions_test_support_java', | |
67 'type': 'none', | |
68 'dependencies': [ | |
69 'components.gyp:web_restrictions_java_browser', | |
70 '../base/base.gyp:base_java', | |
71 ], | |
72 'variables': { | |
73 'java_in_dir': [ | |
74 'web_restrictions/browser/javatest/' | |
75 ], | |
76 }, | |
77 'includes': [ '../build/java.gypi' ], | |
78 }, | |
79 { | |
80 'target_name': 'web_restrictions_test_support', | |
81 'type': 'static_library', | |
82 'dependencies': [ | |
83 '<(DEPTH)/base/base.gyp:base', | |
84 'web_restrictions_test_support_jni_headers', | |
85 ], | |
86 'sources': [ | |
87 'web_restrictions/browser/mock_web_restrictions_client.cc', | |
88 'web_restrictions/browser/mock_web_restrictions_client.h', | |
89 ], | |
90 }, | |
91 { | |
92 'target_name': 'components_web_restrictions_junit_tests', | |
93 'type': 'none', | |
94 'dependencies': [ | |
95 '../testing/android/junit/junit_test.gyp:junit_test_support', | |
96 ], | |
97 'variables': { | |
98 'main_class': 'org.chromium.testing.local.JunitTestMain', | |
99 'src_paths': [ | |
100 '../testing/android/junit/DummyTest.java', | |
101 ], | |
102 'wrapper_script_name': 'helper/<(_target_name)', | |
103 }, | |
104 'includes': [ '../build/host_jar.gypi' ], | |
105 }, | |
106 { | |
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 ]] | |
119 } | |
OLD | NEW |