| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 { | 6 { |
| 7 'targets': [ | 7 'targets': [ |
| 8 { | 8 { |
| 9 'target_name': 'navigation_interception', | 9 'target_name': 'navigation_interception', |
| 10 'type': 'static_library', | 10 'type': 'static_library', |
| 11 'dependencies': [ | 11 'dependencies': [ |
| 12 '../../../base/base.gyp:base', | 12 '../../base/base.gyp:base', |
| 13 '../../../content/content.gyp:content_browser', | 13 '../../net/net.gyp:net', |
| 14 '../../../content/content.gyp:content_common', | 14 '../content.gyp:content_browser', |
| 15 '../../../net/net.gyp:net', | 15 '../content.gyp:content_common', |
| 16 ], | 16 ], |
| 17 'include_dirs': [ | 17 'include_dirs': [ |
| 18 '../../../..', | 18 '../../..', |
| 19 '../../../../skia/config', | 19 '../../../skia/config', |
| 20 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_component', | 20 '<(SHARED_INTERMEDIATE_DIR)/navigation_interception', |
| 21 | 21 |
| 22 ], | 22 ], |
| 23 'sources': [ | 23 'sources': [ |
| 24 'intercept_navigation_resource_throttle.cc', | 24 'intercept_navigation_resource_throttle.cc', |
| 25 'intercept_navigation_resource_throttle.h', | 25 'intercept_navigation_resource_throttle.h', |
| 26 ], | 26 ], |
| 27 'conditions': [ | 27 'conditions': [ |
| 28 ['OS=="android"', { | 28 ['OS=="android"', { |
| 29 'dependencies': [ | 29 'dependencies': [ |
| 30 'browser_component_jni_headers', | 30 'navigation_interception_jni_headers', |
| 31 ], | 31 ], |
| 32 'sources': [ | 32 'sources': [ |
| 33 'component_jni_registrar.cc', | 33 'component_jni_registrar.cc', |
| 34 'component_jni_registrar.h', | 34 'component_jni_registrar.h', |
| 35 'intercept_navigation_delegate.cc', | 35 'intercept_navigation_delegate.cc', |
| 36 'intercept_navigation_delegate.h', | 36 'intercept_navigation_delegate.h', |
| 37 ], | 37 ], |
| 38 }], | 38 }], |
| 39 ], | 39 ], |
| 40 }, | 40 }, |
| 41 ], | 41 ], |
| 42 'conditions': [ | 42 'conditions': [ |
| 43 ['OS=="android"', { | 43 ['OS=="android"', { |
| 44 'targets': [ | 44 'targets': [ |
| 45 { | 45 { |
| 46 'target_name': 'navigation_interception_java', | 46 'target_name': 'navigation_interception_java', |
| 47 'type': 'none', | 47 'type': 'none', |
| 48 'dependencies': [ | 48 'dependencies': [ |
| 49 '../../../base/base.gyp:base', | 49 '../../base/base.gyp:base', |
| 50 ], | 50 ], |
| 51 'variables': { | 51 'variables': { |
| 52 'package_name': 'navigation_interception', | 52 'package_name': 'navigation_interception', |
| 53 'java_in_dir': 'java', | 53 'java_in_dir': 'java', |
| 54 }, | 54 }, |
| 55 'includes': [ '../../../../build/java.gypi' ], | 55 'includes': [ '../../../build/java.gypi' ], |
| 56 }, |
| 57 { |
| 58 'target_name': 'navigation_interception_jni_headers', |
| 59 'type': 'none', |
| 60 'sources': [ |
| 61 'java/src/org/chromium/chrome/browser/component/navigation_intercept
ion/InterceptNavigationDelegate.java', |
| 62 ], |
| 63 'variables': { |
| 64 # We need ../ due to path name relativization of jni_gen_dir. |
| 65 'jni_gen_dir': '../navigation_interception', |
| 66 }, |
| 67 'includes': [ '../../../build/jni_generator.gypi' ], |
| 56 }, | 68 }, |
| 57 ], | 69 ], |
| 58 }], | 70 }], |
| 59 ], | 71 ], |
| 60 } | 72 } |
| OLD | NEW |