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.
4
5import("//build/config/jumbo.gni")
6import("//build/config/ui.gni")
7import("//ui/ozone/ozone.gni")
8
9# Reset sources_assignment_filter for the BUILD.gn file to prevent
10# regression during the migration of Chromium away from the feature.
11# See docs/no_sources_assignment_filter.md for more information.
12# TODO(crbug.com/1018739): remove this when migration is done.
13set_sources_assignment_filter([])
14
15jumbo_component("views_content_client") {
16  testonly = true
17  sources = [
18    "views_content_browser_client.cc",
19    "views_content_browser_client.h",
20    "views_content_client.cc",
21    "views_content_client.h",
22    "views_content_client_export.h",
23    "views_content_client_main_parts.cc",
24    "views_content_client_main_parts.h",
25    "views_content_main_delegate.cc",
26    "views_content_main_delegate.h",
27  ]
28
29  if (is_chromeos) {
30    sources += [ "views_content_client_main_parts_chromeos.cc" ]
31  }
32
33  if (is_mac) {
34    sources += [ "views_content_client_main_parts_mac.mm" ]
35  }
36
37  defines = [ "VIEWS_CONTENT_CLIENT_IMPLEMENTATION" ]
38
39  deps = [
40    "//base",
41    "//base:i18n",
42    "//content",
43    "//content/shell:content_shell_lib",
44    "//third_party/icu",
45    "//ui/base",
46    "//ui/base/ime/init",
47    "//ui/display",
48    "//ui/events",
49    "//ui/gfx",
50    "//ui/gfx/geometry",
51    "//ui/resources",
52    "//ui/resources:ui_test_pak",
53    "//ui/resources:ui_test_pak_data_200_percent",
54    "//ui/views",
55    "//ui/views:test_support",
56  ]
57
58  if (use_aura) {
59    sources += [
60      "views_content_client_main_parts_aura.cc",
61      "views_content_client_main_parts_aura.h",
62    ]
63
64    if (!is_chromeos) {
65      sources += [ "views_content_client_main_parts_desktop_aura.cc" ]
66    }
67
68    deps += [
69      "//ui/aura",
70      "//ui/wm",
71    ]
72  }
73
74  if (is_chromeos) {
75    deps += [
76      "//ui/aura:test_support",
77      "//ui/wm:test_support",
78    ]
79  }
80
81  if (use_x11 || ozone_platform_x11) {
82    configs += [ "//build/config/linux:x11" ]
83  }
84}
85