summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/BUILD.gn
blob: 1b8f7d0efbe3a9fcfe5666193b1d1c2249e3aef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2014 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.

import("//build/config/features.gni")
import("//extensions/extensions.gni")

assert(enable_extensions)

# GYP version: extensions/extensions.gyp:extensions_renderer
source_set("renderer") {
  sources = rebase_path(extensions_gypi_values.extensions_renderer_sources,
                        ".",
                        "//extensions")

  configs += [
    "//build/config:precompiled_headers",

    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
    "//build/config/compiler:no_size_t_to_int_warning",
  ]

  deps = [
    "//chrome:resources",
    "//components/guest_view/renderer",
    "//content:resources",
    "//extensions:extensions_resources",
    "//gin",
    "//mojo/edk/js",
    "//mojo/public/js",
    "//skia",
    "//third_party/WebKit/public:blink",
  ]

  if (enable_wifi_display) {
    wifi_display_sources = rebase_path(
            extensions_gypi_values.extensions_renderer_sources_wifi_display,
            ".",
            "//extensions")
    sources += wifi_display_sources

    deps += [ "//third_party/wds:libwds" ]
  }
}