summaryrefslogtreecommitdiffstats
path: root/components/navigation_interception.gypi
blob: 993a916a02b17a184b508a9f5227d1158e14d92c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'conditions': [
    ['OS != "ios"', {
      'targets': [
        {
          'target_name': 'navigation_interception',
          'type': 'static_library',
          'defines!': ['CONTENT_IMPLEMENTATION'],
          'dependencies': [
            '../base/base.gyp:base',
            '../content/content.gyp:content_browser',
            '../content/content.gyp:content_common',
            '../net/net.gyp:net',
          ],
          'include_dirs': [
            '..',
            '../skia/config',
            '<(SHARED_INTERMEDIATE_DIR)/navigation_interception',

          ],
          'sources': [
            'navigation_interception/intercept_navigation_resource_throttle.cc',
            'navigation_interception/intercept_navigation_resource_throttle.h',
            'navigation_interception/navigation_params.h',
            'navigation_interception/navigation_params.cc',
          ],
          'conditions': [
            ['OS=="android"', {
              'dependencies': [
                  'navigation_interception_jni_headers',
              ],
              'sources': [
                'navigation_interception/component_jni_registrar.cc',
                'navigation_interception/component_jni_registrar.h',
                'navigation_interception/intercept_navigation_delegate.cc',
                'navigation_interception/intercept_navigation_delegate.h',
                'navigation_interception/navigation_params_android.h',
                'navigation_interception/navigation_params_android.cc',
              ],
            }],
          ],
        },
      ],
      'conditions': [
        ['OS=="android"', {
          'targets': [
            {
              'target_name': 'navigation_interception_java',
              'type': 'none',
              'dependencies': [
                '../base/base.gyp:base',
              ],
              'variables': {
                'java_in_dir': 'navigation_interception/android/java',
              },
              'includes': [ '../build/java.gypi' ],
            },
            {
              'target_name': 'navigation_interception_jni_headers',
              'type': 'none',
              'sources': [
                'navigation_interception/android/java/src/org/chromium/components/navigation_interception/InterceptNavigationDelegate.java',
                'navigation_interception/android/java/src/org/chromium/components/navigation_interception/NavigationParams.java',
              ],
              'variables': {
                'jni_gen_package': 'navigation_interception',
              },
              'includes': [ '../build/jni_generator.gypi' ],
            },
          ],
        }],
      ],
    }],
  ],
}