[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | { |
| 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 | '<(SHARED_INTERMEDIATE_DIR)/navigation_interception', |
| 24 | |
| 25 | ], |
| 26 | 'sources': [ |
| 27 | 'navigation_interception/intercept_navigation_resource_throttle.cc', |
| 28 | 'navigation_interception/intercept_navigation_resource_throttle.h', |
[email protected] | c0d243a | 2013-01-31 21:20:16 | [diff] [blame] | 29 | 'navigation_interception/navigation_params.h', |
| 30 | 'navigation_interception/navigation_params.cc', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 31 | ], |
| 32 | 'conditions': [ |
| 33 | ['OS=="android"', { |
| 34 | 'dependencies': [ |
| 35 | 'navigation_interception_jni_headers', |
| 36 | ], |
| 37 | 'sources': [ |
| 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', |
[email protected] | c0d243a | 2013-01-31 21:20:16 | [diff] [blame] | 42 | 'navigation_interception/navigation_params_android.h', |
| 43 | 'navigation_interception/navigation_params_android.cc', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 44 | ], |
| 45 | }], |
| 46 | ], |
| 47 | }, |
| 48 | ], |
| 49 | 'conditions': [ |
| 50 | ['OS=="android"', { |
| 51 | 'targets': [ |
| 52 | { |
| 53 | 'target_name': 'navigation_interception_java', |
| 54 | 'type': 'none', |
| 55 | 'dependencies': [ |
| 56 | '../base/base.gyp:base', |
| 57 | ], |
| 58 | 'variables': { |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 59 | 'java_in_dir': 'navigation_interception/android/java', |
| 60 | }, |
| 61 | 'includes': [ '../build/java.gypi' ], |
| 62 | }, |
| 63 | { |
| 64 | 'target_name': 'navigation_interception_jni_headers', |
| 65 | 'type': 'none', |
| 66 | 'sources': [ |
[email protected] | 4e40592 | 2013-02-05 22:41:57 | [diff] [blame] | 67 | 'navigation_interception/android/java/src/org/chromium/components/navigation_interception/InterceptNavigationDelegate.java', |
| 68 | 'navigation_interception/android/java/src/org/chromium/components/navigation_interception/NavigationParams.java', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 69 | ], |
| 70 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 71 | 'jni_gen_package': 'navigation_interception', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 72 | }, |
| 73 | 'includes': [ '../build/jni_generator.gypi' ], |
| 74 | }, |
| 75 | ], |
| 76 | }], |
| 77 | ], |
| 78 | }], |
| 79 | ], |
| 80 | } |