Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / public / common / BUILD.gn
blob3ae9297e8481af22697c270c736a9a580080cbd0
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/features.gni")
6 import("//content/common/common.gni")
7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 # See //content/BUILD.gn for how this works.
10 group("common") {
11   if (is_component_build) {
12     public_deps = [
13       "//content",
14     ]
15   } else {
16     public_deps = [
17       ":common_sources",
18     ]
19   }
22 # This target allows other targets to depend on result_codes.h which is a
23 # header-only dependency, without bringing in all of content.
24 source_set("result_codes") {
25   sources = [
26     "result_codes.h",
27   ]
30 source_set("common_sources") {
31   visibility = [ "//content/*" ]
33   sources = rebase_path(content_common_gypi_values.public_common_sources,
34                         ".",
35                         "//content")
37   configs += [ "//content:content_implementation" ]
39   public_deps = [
40     "//content/common",
41     "//third_party/mojo/src/mojo/public/cpp/bindings",
42   ]
43   deps = [
44     "//net",
45     "//skia",
46     "//third_party/WebKit/public:blink_headers",
47     "//third_party/icu",
48     "//ui/base",
49     "//ui/gfx",
50   ]
52   if (!enable_plugins) {
53     sources -= [
54       "pepper_plugin_info.cc",
55       "pepper_plugin_info.h",
56     ]
57   }
60 mojom("mojo_bindings") {
61   sources = [
62     "background_sync.mojom",
63     "mojo_geoposition.mojom",
64     "permission_status.mojom",
65     "service_worker_event_status.mojom",
66   ]