Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / content / content_components_navigation_interception.gypi
blob54a1602c80c376f3536d3d24d026664347de0fec
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       'target_name': 'navigation_interception',
10       'type': 'static_library',
11       'defines!': ['CONTENT_IMPLEMENTATION'],
12       'dependencies': [
13         '../base/base.gyp:base',
14         '../net/net.gyp:net',
15         'content_browser',
16         'content_common',
17       ],
18       'include_dirs': [
19         '..',
20         '../skia/config',
21         '<(SHARED_INTERMEDIATE_DIR)/navigation_interception',
23       ],
24       'sources': [
25         'components/navigation_interception/intercept_navigation_resource_throttle.cc',
26         'components/navigation_interception/intercept_navigation_resource_throttle.h',
27       ],
28       'conditions': [
29         ['OS=="android"', {
30           'dependencies': [
31               'navigation_interception_jni_headers',
32           ],
33           'sources': [
34             'components/navigation_interception/component_jni_registrar.cc',
35             'components/navigation_interception/component_jni_registrar.h',
36             'components/navigation_interception/intercept_navigation_delegate.cc',
37             'components/navigation_interception/intercept_navigation_delegate.h',
38           ],
39         }],
40       ],
41     },
42   ],
43   'conditions': [
44     ['OS=="android"', {
45       'targets': [
46         {
47           'target_name': 'navigation_interception_java',
48           'type': 'none',
49           'dependencies': [
50             '../base/base.gyp:base',
51           ],
52           'variables': {
53             'package_name': 'navigation_interception',
54             'java_in_dir': 'components/navigation_interception/java',
55             # TODO(jknotten): Remove once external dependencies have been 
56             # updated to use the interface in its new package.
57             'additional_src_dirs' : ['../chrome/browser/component/navigation_interception/java']
58           },
59           'includes': [ '../build/java.gypi' ],
60         },
61         {
62           'target_name': 'navigation_interception_jni_headers',
63           'type': 'none',
64           'sources': [
65             'components/navigation_interception/java/src/org/chromium/content/components/navigation_interception/InterceptNavigationDelegate.java',
66           ],
67           'variables': {
68             'jni_gen_dir': 'navigation_interception',
69           },
70           'includes': [ '../build/jni_generator.gypi' ],
71         },
72       ],
73     }],
74   ],