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 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
7 import("//extensions/extensions.gni")
9 # GYP version: extensions/extensions.gyp:extensions_browser
10 source_set("browser") {
14 "//components/keyed_service/content",
15 "//components/keyed_service/core",
16 "//components/pref_registry",
17 "//components/sessions:sessions_content",
18 "//components/ui/zoom:ui_zoom",
19 "//components/web_cache/browser",
20 "//components/web_modal",
21 "//content/public/browser",
23 "//extensions/common",
24 "//extensions/common/api",
25 "//extensions/common/api:api_registration",
26 "//extensions/strings",
29 "//third_party/leveldatabase",
33 if (enable_extensions) {
34 # Includes all API implementations and the ExtensionsApiClient
35 # interface. Moving an API from src/chrome to src/extensions implies
36 # it can be cleanly disabled with enable_extensions=false.
37 # TODO: Eventually the entire extensions module should not be built
38 # when enable_extensions=false.
39 sources = rebase_path(extensions_gypi_values.extensions_browser_sources,
45 "//components/storage_monitor",
46 "//components/update_client",
53 "//extensions/common/api/cast_channel:cast_channel_proto",
57 deps += [ "//chromeos" ]
61 chromeos_sources = rebase_path(
62 extensions_gypi_values.extensions_browser_sources_chromeos,
65 sources += chromeos_sources
67 nonchromeos_sources = rebase_path(
68 extensions_gypi_values.extensions_browser_sources_nonchromeos,
71 sources += nonchromeos_sources
74 configs += [ "//build/config/linux:dbus" ]
76 linux_sources = rebase_path(
77 extensions_gypi_values.extensions_browser_sources_linux_nonchromeos,
80 sources += linux_sources
82 nonlinux_sources = rebase_path(
83 extensions_gypi_values.extensions_browser_sources_nonlinux,
86 sources += nonlinux_sources
88 if (is_win || is_mac) {
89 deps += [ "//components/wifi" ]
91 win_or_mac_sources = rebase_path(
92 extensions_gypi_values.extensions_browser_sources_win_or_mac,
95 sources += win_or_mac_sources
102 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.