Revert of Use ExtensionRegistryObserver instead of deprecated extension notification...
[chromium-blink-merge.git] / BUILD.gn
blob38648cd5be69f04f2c96ffbf769184c23ec9b695
1 # Copyright (c) 2013 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 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it.
11 # In GN, a "group" is a dummy target that just lists other targets.
12 group("root") {
13   # Note that some dependencies are commented out. These are things that are
14   # currently written but not hooked up to the build yet. They may need to be
15   # completed or possibly just tested and then re-enabled.
16   deps = [
17     # This is a temporary test of the not-yet-complete NaCl cross-compilation.
18     #"//base(//build/toolchain/nacl:x86_newlib)",
20     "//apps/common/api:apps_api",
21     #"//chrome",
22     "//components/language_usage_metrics",
23     "//components/metrics",
24     "//components/navigation_metrics",
25     "//components/onc",
26     "//components/os_crypt",
27     "//components/startup_metric_utils",
28     "//components/resources:components_resources",
29     "//components/translate:translate_core_browser",
30     "//components/translate:translate_core_common",
31     "//components/url_matcher",
32     "//crypto",
33     "//device/usb",
34     #"//extensions/common/api:extensions_api",
35     "//ipc",
36     "//mojo",
37     "//net",
38     #"//sdch",
39     "//skia",
40     #"//third_party/WebKit/Source/platform",
41     "//third_party/brotli",
42     "//third_party/iccjpeg",
43     "//third_party/icu",
44     "//third_party/leveldatabase",
45     "//third_party/libpng",
46     "//third_party/libusb",
47     "//third_party/libwebp",
48     "//third_party/ots",
49     "//third_party/qcms",
50     "//third_party/re2",
51     "//third_party/smhasher:cityhash",
52     "//third_party/smhasher:murmurhash3",
53     "//third_party/smhasher:pmurhash",
54     "//third_party/WebKit/Source/wtf",
55     "//third_party/zlib",
56     "//third_party:jpeg",
57     "//tools/gn",
58     "//ui/base:ui_base",
59     "//ui/base/strings",
60     "//ui/events",
61     "//ui/gfx",
62     "//ui/resources",
63     "//url",
64   ]
66   if (is_linux) {
67     deps += [
68       "//third_party/freetype2",
69     ]
70   }
72   if (is_android) {
73     deps -= [
74       "//components/os_crypt",
75       "//crypto",
76       "//net",
77       "//skia",
78       "//third_party/libusb",
79       "//third_party/WebKit/Source/wtf",  # TODO(brettw) re-enable for Android.
80       "//tools/gn",
81       "//ui/base:ui_base",
82       "//ui/events",
83       "//ui/gfx",
84     ]
85   }