[Sync] Add auto-generated ModelType in Java.
[chromium-blink-merge.git] / components / navigation_interception.gypi
blob35112010a033caa663f23f8288ad2b92a3a6b7b3
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
7   'targets': [
8     {
9       # GN version: //components/navigation_interception
10       'target_name': 'navigation_interception',
11       'type': 'static_library',
12       'defines!': ['CONTENT_IMPLEMENTATION'],
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../content/content.gyp:content_browser',
16         '../content/content.gyp:content_common',
17         '../net/net.gyp:net',
18         '../ui/base/ui_base.gyp:ui_base',
19       ],
20       'include_dirs': [
21         '..',
22         '../skia/config',
23       ],
24       'sources': [
25         # Note: sources list duplicated in GN build.
26         'navigation_interception/intercept_navigation_resource_throttle.cc',
27         'navigation_interception/intercept_navigation_resource_throttle.h',
28         'navigation_interception/navigation_params.cc',
29         'navigation_interception/navigation_params.h',
30       ],
31       'conditions': [
32         ['OS=="android"', {
33           'dependencies': [
34             'navigation_interception_jni_headers',
35           ],
36           'sources': [
37             # Note: sources list duplicated in GN build.
38             'navigation_interception/component_jni_registrar.cc',
39             'navigation_interception/component_jni_registrar.h',
40             'navigation_interception/intercept_navigation_delegate.cc',
41             'navigation_interception/intercept_navigation_delegate.h',
42             'navigation_interception/navigation_params_android.cc',
43             'navigation_interception/navigation_params_android.h',
44           ],
45         }],
46       ],
47     },
48   ],
49   'conditions': [
50     ['OS=="android"', {
51       'targets': [
52         {
53           # GN version: //components/navigation_intercaption/android:navigation_interception_java
54           'target_name': 'navigation_interception_java',
55           'type': 'none',
56           'dependencies': [
57             '../base/base.gyp:base',
58           ],
59           'variables': {
60             'java_in_dir': 'navigation_interception/android/java',
61           },
62           'includes': [ '../build/java.gypi' ],
63         },
64         {
65           # GN version: //components/navigation_intercaption:jni_headers
66           'target_name': 'navigation_interception_jni_headers',
67           'type': 'none',
68           'sources': [
69             # Note: sources list duplicated in GN build.
70             'navigation_interception/android/java/src/org/chromium/components/navigation_interception/InterceptNavigationDelegate.java',
71             'navigation_interception/android/java/src/org/chromium/components/navigation_interception/NavigationParams.java',
72           ],
73           'variables': {
74             'jni_gen_package': 'navigation_interception',
75           },
76           'includes': [ '../build/jni_generator.gypi' ],
77         },
78       ],
79     }],
80   ],