Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / components / navigation_interception / BUILD.gn
blobf268510b5b909b633f3234224bf12a4ebaa73252
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 if (is_android) {
6   import("//build/config/android/rules.gni")
9 source_set("navigation_interception") {
10   sources = [
11     "intercept_navigation_throttle.cc",
12     "intercept_navigation_throttle.h",
13     "navigation_params.cc",
14     "navigation_params.h",
15   ]
17   deps = [
18     "//base",
19     "//content/public/browser",
20     "//content/public/common",
21     "//net",
22     "//ui/base",
23   ]
25   if (is_android) {
26     sources += [
27       "component_jni_registrar.cc",
28       "component_jni_registrar.h",
29       "intercept_navigation_delegate.cc",
30       "intercept_navigation_delegate.h",
31       "navigation_params_android.cc",
32       "navigation_params_android.h",
33     ]
34     deps += [ ":jni_headers" ]
35   }
38 if (is_android) {
39   # GYP: //components/navigation_interception.gypi:navigation_interception_jni_headers
40   generate_jni("jni_headers") {
41     sources = [
42       "android/java/src/org/chromium/components/navigation_interception/InterceptNavigationDelegate.java",
43       "android/java/src/org/chromium/components/navigation_interception/NavigationParams.java",
44     ]
45     jni_package = "navigation_interception"
46   }
49 source_set("unit_tests") {
50   testonly = true
51   sources = [
52     "intercept_navigation_throttle_unittest.cc",
53   ]
54   deps = [
55     ":navigation_interception",
56     "//content/public/browser",
57     "//testing/gmock",
58     "//testing/gtest",
59   ]