Random fixes for scoped_refptr operator T* removal.
[chromium-blink-merge.git] / BUILD.gn
blob59c3d3a8d8b73563b8374b49908ef6b10fa17f80
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   # This should not be linked into production and depends on test targets.
16   testonly = true
18   # Note that some dependencies are commented out. These are things that are
19   # currently written but not hooked up to the build yet. They may need to be
20   # completed or possibly just tested and then re-enabled.
21   deps = [
22     "//apps",
23     "//ash",
24     "//cc",
25     "//cc/blink",
26     "//chrome/browser",
27     "//chrome/browser/devtools",
28     "//chrome/browser/ui",
29     "//chrome/browser/ui/views",
30     "//chrome/common",
31     "//chrome/plugin",
32     "//chrome/renderer",
33     "//chrome/service",
34     "//chrome/utility",
35     "//components:all_components",
36     "//content",
37     "//content/shell:content_shell",
38     "//content/test:test_support",
39     "//crypto",
40     "//device/bluetooth",
41     "//device/nfc",
42     "//extensions/browser",
43     "//extensions/common",
44     "//extensions/common/api",
45     "//extensions/renderer",
46     "//gin",
47     "//gpu",
48     "//google_apis",
49     "//google_apis/gcm",
50     "//ipc",
51     "//ipc/mojo",
52     "//jingle:notifier",
53     "//media",
54     "//media/cast",
55     "//mojo",
56     "//net",
57     "//pdf",
58     "//ppapi:ppapi_c",
59     "//printing",
60     "//remoting/client/plugin",
61     "//sandbox",
62     "//sdch",
63     "//skia",
64     "//sql",
65     "//sync",
66     "//third_party/WebKit/public:all_blink",
67     "//third_party/angle:translator",
68     "//third_party/brotli",
69     "//third_party/cacheinvalidation",
70     "//third_party/cld",
71     "//third_party/cld_2",
72     "//third_party/ffmpeg",
73     "//third_party/flac",
74     "//third_party/harfbuzz-ng",
75     "//third_party/hunspell",
76     "//third_party/iccjpeg",
77     "//third_party/icu",
78     "//third_party/leveldatabase",
79     "//third_party/libaddressinput",
80     "//third_party/libphonenumber",
81     "//third_party/libjingle",
82     "//third_party/libpng",
83     "//third_party/libsrtp",
84     "//third_party/libusb",
85     "//third_party/libwebm",
86     "//third_party/libwebp",
87     "//third_party/libxslt",
88     "//third_party/libyuv",
89     "//third_party/lzma_sdk",
90     "//third_party/mesa",
91     "//third_party/opus",
92     "//third_party/ots",
93     "//third_party/protobuf:protobuf_lite",
94     "//third_party/qcms",
95     "//third_party/re2",
96     "//third_party/smhasher:cityhash",
97     "//third_party/smhasher:murmurhash3",
98     "//third_party/smhasher:pmurhash",
99     "//third_party/snappy",
100     "//third_party/speex",
101     "//third_party/usrsctp",
102     "//third_party/widevine/cdm:version_h",
103     "//third_party/webrtc",
104     "//third_party/zlib",
105     "//third_party:jpeg",
106     "//tools/gn",
107     "//tools/imagediff($host_toolchain)",
108     "//ui:ui_unittests",
109     "//ui/app_list",
110     "//ui/aura",
111     "//ui/accessibility",
112     "//ui/base",
113     "//ui/display",
114     "//ui/events",
115     "//ui/gfx",
116     "//ui/gl",
117     "//ui/keyboard",
118     "//ui/native_theme",
119     "//ui/resources",
120     "//ui/snapshot",
121     "//ui/strings",
122     "//ui/surface",
123     "//ui/views",
124     "//ui/views/controls/webview",
125     "//ui/web_dialogs",
126     "//ui/wm",
127     "//url",
128     "//v8:v8",
129     "//webkit/browser:storage",
130     "//webkit/child",
131   ]
133   if (!is_win) {
134     deps += [ "//breakpad:symupload" ]
135   }
137   if (is_linux) {
138     deps += [
139       "//dbus",
140       "//third_party/fontconfig",
141       "//third_party/freetype2",
142     ]
143   }
145   if (use_x11) {
146     deps += [ "//tools/xdisplaycheck" ]
147   }
149   if (is_win) {
150     deps += [
151       "//ui/metro_viewer",
152     ]
153   }
155   if (is_win || is_mac || is_chromeos) {
156     # RLZ works on these platforms.
157     deps += [
158       "//rlz:rlz_lib",
159     ]
160   }
162   if (cpu_arch == "x86" || cpu_arch == "x64") {
163     # YASM is x86/x64 only.
164     deps += [ "//third_party/yasm($host_toolchain)" ]
165   }
167   if (is_android) {
168     deps += [
169       "//ui/android:ui_java",
170       "//third_party/guava:guava_javalib",
171       "//third_party/android_tools:android_gcm_java",
172       "//third_party/android_tools:uiautomator_java",
173       "//third_party/android_tools:android_support_v13_java",
174       "//third_party/android_tools:android_support_v7_appcompat_java",
175       "//third_party/android_tools:android_support_v7_mediarouter_java",
176       "//third_party/eyesfree:eyesfree_java",
177     ]
179     deps -= [
180       "//apps",  # Needs testing.
181       "//cc/blink", # Blocked on blink
182       "//chrome/browser",  # Blocked on content.
183       "//chrome/browser/devtools",  # Blocked on content.
184       "//chrome/browser/ui",  # Blocked on content.
185       "//chrome/browser/ui/views",  # Blocked on content.
186       "//chrome/common",  # Blocked on content.
187       "//chrome/plugin",  # Blocked on content.
188       "//chrome/renderer",  # Blocked on content.
189       "//chrome/service",  # Blocked on content.
190       "//chrome/utility",  # Blocked on content.
191       "//content",
192       "//content/shell:content_shell",  # Blocked on content.
193       "//content/test:test_support",  # Blocked on content.
194       "//extensions/browser",
195       "//extensions/common",
196       "//extensions/common/api",
197       "//extensions/renderer",
198       "//pdf",  # Not compiled on Android in GYP yet, either.
199       "//ppapi:ppapi_c",
200       "//sandbox",
201       "//third_party/libusb",
202       "//ui/keyboard",  # Blocked on content.
204       # Blocked on neon stuff in vp8
205       "//third_party/WebKit/public:all_blink",
207       # Seems to not be compiled on Android. Otherwise it will need a config.h.
208       "//third_party/libxslt",
210       # Not relevant to Android.
211       "//ash",
212       "//tools/gn",
213       "//ui/aura",
214       "//ui/display",
215       "//ui/views",
216       "//ui/views/controls/webview",
218       # Fails on Android for unknown reasons.
219       "//third_party/flac",
220       "//breakpad:symupload",
222       # Not tested on Android yet:
223       "//google_apis/gcm",
224       "//remoting/client/plugin",
225       "//third_party/cld_2",
226       "//third_party/libaddressinput",
227       "//third_party/ffmpeg",
228       "//ui:ui_unittests",
229       "//ui/app_list",
230       "//ui/web_dialogs",
231       "//ui/wm",
232       "//webkit/browser:storage",
233       "//webkit/child",
234     ]
235   }
237   if (use_ozone) {
238     deps += [
239       "//ui/ozone",
240       "//ui/ozone/demo",
241     ]
242   }
244   # Non-mobile builds.
245   if (!is_android && !is_ios) {
246     deps += [
247       "//device/usb",
248     ]
249   }