Make AppSyncUIStateFactory depends on ExtensionRegistryFactory
[chromium-blink-merge.git] / BUILD.gn
bloba29ef80a2d8c66af9e0955589a242542f0e975f6
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 import("//build/config/ui.gni")
13 # In GN, a "group" is a dummy target that just lists other targets.
14 group("root") {
15   # Note that some dependencies are commented out. These are things that are
16   # currently written but not hooked up to the build yet. They may need to be
17   # completed or possibly just tested and then re-enabled.
18   deps = [
19     # This is a temporary test of the not-yet-complete NaCl cross-compilation.
20     #"//base(//build/toolchain/nacl:x86_newlib)",
21     "//ash",
22     "//cc",
23     "//chrome/browser",
24     "//chrome/browser/devtools",
25     "//chrome/browser/ui",
26     "//chrome/browser/ui/views",
27     "//chrome/common",
28     "//chrome/plugin",
29     "//chrome/renderer",
30     "//chrome/service",
31     "//chrome/utility",
32     "//components:all_components",
33     "//content",
34     "//content/shell:content_shell",
35     "//content/test:test_support",
36     "//crypto",
37     "//device/bluetooth",
38     "//device/nfc",
39     "//device/usb",
40     "//extensions/common",
41     "//extensions/common/api",
42     "//gin",
43     "//gpu",
44     "//google_apis",
45     "//google_apis/gcm",
46     "//ipc",
47     "//media",
48     "//mojo",
49     "//mojo/common",
50     "//mojo/environment:chromium",
51     "//mojo/service_manager",
52     "//mojo/system",
53     "//net",
54     "//pdf",
55     "//ppapi:ppapi_c",
56     "//printing",
57     "//sandbox",
58     "//sdch",
59     "//skia",
60     "//sql",
61     "//third_party/WebKit/public:all_blink",
62     "//third_party/angle:translator",
63     "//third_party/brotli",
64     "//third_party/cacheinvalidation",
65     "//third_party/cld",
66     "//third_party/cld_2",
67     "//third_party/ffmpeg",
68     "//third_party/flac",
69     "//third_party/harfbuzz-ng",
70     "//third_party/hunspell",
71     "//third_party/iccjpeg",
72     "//third_party/icu",
73     "//third_party/leveldatabase",
74     "//third_party/libaddressinput",
75     "//third_party/libphonenumber",
76     "//third_party/libpng",
77     "//third_party/libsrtp",
78     "//third_party/libusb",
79     "//third_party/libwebm",
80     "//third_party/libwebp",
81     "//third_party/libxslt",
82     "//third_party/libyuv",
83     "//third_party/lzma_sdk",
84     "//third_party/mesa",
85     "//third_party/opus",
86     "//third_party/ots",
87     "//third_party/protobuf:protobuf_lite",
88     "//third_party/qcms",
89     "//third_party/re2",
90     "//third_party/smhasher:cityhash",
91     "//third_party/smhasher:murmurhash3",
92     "//third_party/smhasher:pmurhash",
93     "//third_party/snappy",
94     "//third_party/speex",
95     "//third_party/widevine/cdm:version_h",
96     "//third_party/zlib",
97     "//third_party:jpeg",
98     "//tools/gn",
99     "//tools/imagediff($host_toolchain)",
100     "//ui/app_list",
101     "//ui/aura",
102     "//ui/accessibility",
103     "//ui/base",
104     "//ui/display",
105     "//ui/events",
106     "//ui/gfx",
107     "//ui/gl",
108     "//ui/keyboard",
109     "//ui/native_theme",
110     "//ui/resources",
111     "//ui/snapshot",
112     "//ui/strings",
113     "//ui/surface",
114     "//ui/views",
115     "//ui/views/controls/webview",
116     "//ui/web_dialogs",
117     "//ui/wm",
118     "//url",
119     "//v8:v8",
120     "//webkit/browser:storage",
121     "//webkit/child",
122   ]
124   if (!is_win) {
125     deps += [ "//breakpad:symupload" ]
126   }
128   if (is_linux) {
129     deps += [
130       "//dbus",
131       "//third_party/fontconfig",
132       "//third_party/freetype2",
133     ]
134   }
136   if (use_x11) {
137     deps += [ "//tools/xdisplaycheck" ]
138   }
140   if (is_win) {
141     deps += [
142       "//ui/metro_viewer",
143     ]
144   }
146   if (is_win || is_mac || is_chromeos) {
147     # RLZ works on these platforms.
148     deps += [
149       "//rlz:rlz_lib",
150     ]
151   }
153   if (cpu_arch == "x86" || cpu_arch == "x64") {
154     # YASM is x86/x64 only.
155     deps += [ "//third_party/yasm($host_toolchain)" ]
156   }
158   if (is_android) {
159     deps += [
160       "//ui/android:ui_java"
161     ]
163     deps -= [
164       "//cc",
165       "//chrome/browser",  # Blocked on content.
166       "//chrome/browser/devtools",  # Blocked on content.
167       "//chrome/browser/ui",  # Blocked on content.
168       "//chrome/browser/ui/views",  # Blocked on content.
169       "//chrome/common",  # Blocked on content.
170       "//chrome/plugin",  # Blocked on content.
171       "//chrome/renderer",  # Blocked on content.
172       "//chrome/service",  # Blocked on content.
173       "//chrome/utility",  # Blocked on content.
174       "//content",
175       "//content/shell:content_shell",  # Blocked on content.
176       "//content/test:test_support",  # Blocked on content.
177       "//extensions/common",
178       "//extensions/common/api",
179       "//pdf",  # Not compiled on Android in GYP yet, either.
180       "//ppapi:ppapi_c",
181       "//sandbox",
182       "//third_party/libusb",
183       "//ui/keyboard",  # Blocked on content.
185       # Seems to not be compiled on Android. Otherwise it will need a config.h.
186       "//third_party/libxslt",
188       # Not relevant to Android.
189       "//ash",
190       "//tools/gn",
191       "//ui/aura",
192       "//ui/display",
193       "//ui/views",
194       "//ui/views/controls/webview",
196       # Fails on Android for unknown reasons.
197       "//third_party/flac",
198       "//breakpad:symupload",
200       # TODO(brettw) make Blink work on Android.
201       "//third_party/WebKit/public:all_blink",
203       # Not tested on Android yet:
204       "//google_apis/gcm",
205       "//third_party/cld_2",
206       "//third_party/libaddressinput",
207       "//third_party/ffmpeg",
208       "//ui/app_list",
209       "//ui/web_dialogs",
210       "//ui/wm",
211       "//webkit/browser:storage",
212       "//webkit/child",
213     ]
214   }
216   if (use_ozone) {
217     deps += [
218       "//ui/events/ozone:events_ozone",
219       "//ui/events/ozone:events_ozone_evdev",
220     ]
221   }