Fix updating network lists after removal of policy from a network.
[chromium-blink-merge.git] / components / navigation_interception.gypi
blobf973004411389fdc319c1edfa93ed94ccc285658
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   'conditions': [
8     ['OS != "ios"', {
9       'targets': [
10         {
11           'target_name': 'navigation_interception',
12           'type': 'static_library',
13           'defines!': ['CONTENT_IMPLEMENTATION'],
14           'dependencies': [
15             '../base/base.gyp:base',
16             '../content/content.gyp:content_browser',
17             '../content/content.gyp:content_common',
18             '../net/net.gyp:net',
19           ],
20           'include_dirs': [
21             '..',
22             '../skia/config',
23           ],
24           'sources': [
25             'navigation_interception/intercept_navigation_resource_throttle.cc',
26             'navigation_interception/intercept_navigation_resource_throttle.h',
27             'navigation_interception/navigation_params.h',
28             'navigation_interception/navigation_params.cc',
29           ],
30           'conditions': [
31             ['OS=="android"', {
32               'dependencies': [
33                   'navigation_interception_jni_headers',
34               ],
35               'sources': [
36                 'navigation_interception/component_jni_registrar.cc',
37                 'navigation_interception/component_jni_registrar.h',
38                 'navigation_interception/intercept_navigation_delegate.cc',
39                 'navigation_interception/intercept_navigation_delegate.h',
40                 'navigation_interception/navigation_params_android.h',
41                 'navigation_interception/navigation_params_android.cc',
42               ],
43             }],
44           ],
45         },
46       ],
47       'conditions': [
48         ['OS=="android"', {
49           'targets': [
50             {
51               'target_name': 'navigation_interception_java',
52               'type': 'none',
53               'dependencies': [
54                 '../base/base.gyp:base',
55               ],
56               'variables': {
57                 'java_in_dir': 'navigation_interception/android/java',
58               },
59               'includes': [ '../build/java.gypi' ],
60             },
61             {
62               'target_name': 'navigation_interception_jni_headers',
63               'type': 'none',
64               'sources': [
65                 'navigation_interception/android/java/src/org/chromium/components/navigation_interception/InterceptNavigationDelegate.java',
66                 'navigation_interception/android/java/src/org/chromium/components/navigation_interception/NavigationParams.java',
67               ],
68               'variables': {
69                 'jni_gen_package': 'navigation_interception',
70                 'jni_generator_ptr_type': 'long',
71               },
72               'includes': [ '../build/jni_generator.gypi' ],
73             },
74           ],
75         }],
76       ],
77     }],
78   ],