Don't swap out the old RenderFrameHost until the new one commits.
[chromium-blink-merge.git] / BUILD.gn
blob196962aa9bf78d9634a3c317b656db83bdadc515
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     "//cc/blink",
24     "//chrome/browser",
25     "//chrome/browser/devtools",
26     "//chrome/browser/ui",
27     "//chrome/browser/ui/views",
28     "//chrome/common",
29     "//chrome/plugin",
30     "//chrome/renderer",
31     "//chrome/service",
32     "//chrome/utility",
33     "//components:all_components",
34     "//content",
35     "//content/shell:content_shell",
36     "//content/test:test_support",
37     "//crypto",
38     "//device/bluetooth",
39     "//device/nfc",
40     "//device/usb",
41     "//extensions/browser",
42     "//extensions/common",
43     "//extensions/common/api",
44     "//extensions/renderer",
45     "//gin",
46     "//gpu",
47     "//google_apis",
48     "//google_apis/gcm",
49     "//ipc",
50     "//ipc/mojo",
51     "//media",
52     "//media/cast",
53     "//mojo",
54     "//net",
55     "//pdf",
56     "//ppapi:ppapi_c",
57     "//printing",
58     "//sandbox",
59     "//sdch",
60     "//skia",
61     "//sql",
62     "//sync",
63     "//third_party/WebKit/public:all_blink",
64     "//third_party/angle:translator",
65     "//third_party/brotli",
66     "//third_party/cacheinvalidation",
67     "//third_party/cld",
68     "//third_party/cld_2",
69     "//third_party/ffmpeg",
70     "//third_party/flac",
71     "//third_party/harfbuzz-ng",
72     "//third_party/hunspell",
73     "//third_party/iccjpeg",
74     "//third_party/icu",
75     "//third_party/leveldatabase",
76     "//third_party/libaddressinput",
77     "//third_party/libphonenumber",
78     "//third_party/libpng",
79     "//third_party/libsrtp",
80     "//third_party/libusb",
81     "//third_party/libwebm",
82     "//third_party/libwebp",
83     "//third_party/libxslt",
84     "//third_party/libyuv",
85     "//third_party/lzma_sdk",
86     "//third_party/mesa",
87     "//third_party/opus",
88     "//third_party/ots",
89     "//third_party/protobuf:protobuf_lite",
90     "//third_party/qcms",
91     "//third_party/re2",
92     "//third_party/smhasher:cityhash",
93     "//third_party/smhasher:murmurhash3",
94     "//third_party/smhasher:pmurhash",
95     "//third_party/snappy",
96     "//third_party/speex",
97     "//third_party/widevine/cdm:version_h",
98     "//third_party/zlib",
99     "//third_party:jpeg",
100     "//tools/gn",
101     "//tools/imagediff($host_toolchain)",
102     "//ui/app_list",
103     "//ui/aura",
104     "//ui/accessibility",
105     "//ui/base",
106     "//ui/display",
107     "//ui/events",
108     "//ui/gfx",
109     "//ui/gl",
110     "//ui/keyboard",
111     "//ui/native_theme",
112     "//ui/resources",
113     "//ui/snapshot",
114     "//ui/strings",
115     "//ui/surface",
116     "//ui/views",
117     "//ui/views/controls/webview",
118     "//ui/web_dialogs",
119     "//ui/wm",
120     "//url",
121     "//v8:v8",
122     "//webkit/browser:storage",
123     "//webkit/child",
124   ]
126   if (!is_win) {
127     deps += [ "//breakpad:symupload" ]
128   }
130   if (is_linux) {
131     deps += [
132       "//dbus",
133       "//third_party/fontconfig",
134       "//third_party/freetype2",
135     ]
136   }
138   if (use_x11) {
139     deps += [ "//tools/xdisplaycheck" ]
140   }
142   if (is_win) {
143     deps += [
144       "//ui/metro_viewer",
145     ]
146   }
148   if (is_win || is_mac || is_chromeos) {
149     # RLZ works on these platforms.
150     deps += [
151       "//rlz:rlz_lib",
152     ]
153   }
155   if (cpu_arch == "x86" || cpu_arch == "x64") {
156     # YASM is x86/x64 only.
157     deps += [ "//third_party/yasm($host_toolchain)" ]
158   }
160   if (is_android) {
161     deps += [
162       "//ui/android:ui_java"
163     ]
165     deps -= [
166       "//cc/blink", # Blocked on blink
167       "//chrome/browser",  # Blocked on content.
168       "//chrome/browser/devtools",  # Blocked on content.
169       "//chrome/browser/ui",  # Blocked on content.
170       "//chrome/browser/ui/views",  # Blocked on content.
171       "//chrome/common",  # Blocked on content.
172       "//chrome/plugin",  # Blocked on content.
173       "//chrome/renderer",  # Blocked on content.
174       "//chrome/service",  # Blocked on content.
175       "//chrome/utility",  # Blocked on content.
176       "//content",
177       "//content/shell:content_shell",  # Blocked on content.
178       "//content/test:test_support",  # Blocked on content.
179       "//extensions/browser",
180       "//extensions/common",
181       "//extensions/common/api",
182       "//extensions/renderer",
183       "//pdf",  # Not compiled on Android in GYP yet, either.
184       "//ppapi:ppapi_c",
185       "//sandbox",
186       "//third_party/libusb",
187       "//ui/keyboard",  # Blocked on content.
189       # Blocked on neon stuff in vp8
190       "//third_party/WebKit/public:all_blink",
192       # Seems to not be compiled on Android. Otherwise it will need a config.h.
193       "//third_party/libxslt",
195       # Not relevant to Android.
196       "//ash",
197       "//tools/gn",
198       "//ui/aura",
199       "//ui/display",
200       "//ui/views",
201       "//ui/views/controls/webview",
203       # Fails on Android for unknown reasons.
204       "//third_party/flac",
205       "//breakpad:symupload",
207       # Not tested on Android yet:
208       "//google_apis/gcm",
209       "//third_party/cld_2",
210       "//third_party/libaddressinput",
211       "//third_party/ffmpeg",
212       "//ui/app_list",
213       "//ui/web_dialogs",
214       "//ui/wm",
215       "//webkit/browser:storage",
216       "//webkit/child",
217     ]
218   }
220   if (use_ozone) {
221     deps += [
222       "//ui/ozone",
223       "//ui/ozone/demo",
224     ]
225   }