blob: 54a1602c80c376f3536d3d24d026664347de0fec [file] [log] [blame]
# 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.
{
'targets': [
{
'target_name': 'navigation_interception',
'type': 'static_library',
'defines!': ['CONTENT_IMPLEMENTATION'],
'dependencies': [
'../base/base.gyp:base',
'../net/net.gyp:net',
'content_browser',
'content_common',
],
'include_dirs': [
'..',
'../skia/config',
'<(SHARED_INTERMEDIATE_DIR)/navigation_interception',
],
'sources': [
'components/navigation_interception/intercept_navigation_resource_throttle.cc',
'components/navigation_interception/intercept_navigation_resource_throttle.h',
],
'conditions': [
['OS=="android"', {
'dependencies': [
'navigation_interception_jni_headers',
],
'sources': [
'components/navigation_interception/component_jni_registrar.cc',
'components/navigation_interception/component_jni_registrar.h',
'components/navigation_interception/intercept_navigation_delegate.cc',
'components/navigation_interception/intercept_navigation_delegate.h',
],
}],
],
},
],
'conditions': [
['OS=="android"', {
'targets': [
{
'target_name': 'navigation_interception_java',
'type': 'none',
'dependencies': [
'../base/base.gyp:base',
],
'variables': {
'package_name': 'navigation_interception',
'java_in_dir': 'components/navigation_interception/java',
# TODO(jknotten): Remove once external dependencies have been
# updated to use the interface in its new package.
'additional_src_dirs' : ['../chrome/browser/component/navigation_interception/java']
},
'includes': [ '../build/java.gypi' ],
},
{
'target_name': 'navigation_interception_jni_headers',
'type': 'none',
'sources': [
'components/navigation_interception/java/src/org/chromium/content/components/navigation_interception/InterceptNavigationDelegate.java',
],
'variables': {
'jni_gen_dir': 'navigation_interception',
},
'includes': [ '../build/jni_generator.gypi' ],
},
],
}],
],
}