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