Update implementations of webrtc::SetSessionDescriptionObserver to use the new OnComp...
[chromium-blink-merge.git] / BUILD.gn
blob2c3a90848d9ea921df33b65d03fd737bc6992805
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     "//sandbox",
70     "//sdch",
71     "//skia",
72     "//sql",
73     "//sync",
74     "//third_party/WebKit/public:all_blink",
75     "//third_party/angle:translator",
76     "//third_party/brotli",
77     "//third_party/cacheinvalidation",
78     "//third_party/cld",
79     "//third_party/cld_2",
80     "//third_party/ffmpeg",
81     "//third_party/flac",
82     "//third_party/harfbuzz-ng",
83     "//third_party/hunspell",
84     "//third_party/iccjpeg",
85     "//third_party/icu",
86     "//third_party/leveldatabase",
87     "//third_party/libaddressinput",
88     "//third_party/libphonenumber",
89     "//third_party/libjingle",
90     "//third_party/libpng",
91     "//third_party/libsrtp",
92     "//third_party/libusb",
93     "//third_party/libwebm",
94     "//third_party/libwebp",
95     "//third_party/libxslt",
96     "//third_party/libyuv",
97     "//third_party/lzma_sdk",
98     "//third_party/mesa",
99     "//third_party/opus",
100     "//third_party/ots",
101     "//third_party/protobuf:protobuf_lite",
102     "//third_party/qcms",
103     "//third_party/re2",
104     "//third_party/smhasher:cityhash",
105     "//third_party/smhasher:murmurhash3",
106     "//third_party/smhasher:pmurhash",
107     "//third_party/snappy",
108     "//third_party/speex",
109     "//third_party/widevine/cdm:version_h",
110     "//third_party/zlib",
111     "//third_party:jpeg",
112     "//tools/gn",
113     "//tools/imagediff($host_toolchain)",
114     "//ui:ui_unittests",
115     "//ui/app_list",
116     "//ui/aura",
117     "//ui/accessibility",
118     "//ui/base",
119     "//ui/display",
120     "//ui/events",
121     "//ui/gfx",
122     "//ui/gl",
123     "//ui/keyboard",
124     "//ui/native_theme",
125     "//ui/resources",
126     "//ui/snapshot",
127     "//ui/strings",
128     "//ui/surface",
129     "//ui/views",
130     "//ui/views/controls/webview",
131     "//ui/web_dialogs",
132     "//ui/wm",
133     "//url",
134     "//v8:v8",
135     "//webkit/browser:storage",
136     "//webkit/child",
137   ]
139   if (!is_win) {
140     deps += [ "//breakpad:symupload" ]
141   }
143   if (is_linux) {
144     deps += [
145       "//dbus",
146       "//third_party/fontconfig",
147       "//third_party/freetype2",
148     ]
149   }
151   if (use_x11) {
152     deps += [ "//tools/xdisplaycheck" ]
153   }
155   if (is_win) {
156     deps += [
157       "//ui/metro_viewer",
158     ]
159   }
161   if (is_win || is_mac || is_chromeos) {
162     # RLZ works on these platforms.
163     deps += [
164       "//rlz:rlz_lib",
165     ]
166   }
168   if (cpu_arch == "x86" || cpu_arch == "x64") {
169     # YASM is x86/x64 only.
170     deps += [ "//third_party/yasm($host_toolchain)" ]
171   }
173   if (is_android) {
174     deps += [
175       "//ui/android:ui_java",
176       "//third_party/guava:guava_javalib",
177       "//third_party/android_tools:android_gcm_java",
178       "//third_party/android_tools:uiautomator_java",
179       "//third_party/android_tools:android_support_v13_java",
180       "//third_party/android_tools:android_support_v7_appcompat_java",
181       "//third_party/android_tools:android_support_v7_mediarouter_java",
182     ]
184     deps -= [
185       "//apps",  # Needs testing.
186       "//cc/blink", # Blocked on blink
187       "//chrome/browser",  # Blocked on content.
188       "//chrome/browser/devtools",  # Blocked on content.
189       "//chrome/browser/ui",  # Blocked on content.
190       "//chrome/browser/ui/views",  # Blocked on content.
191       "//chrome/common",  # Blocked on content.
192       "//chrome/plugin",  # Blocked on content.
193       "//chrome/renderer",  # Blocked on content.
194       "//chrome/service",  # Blocked on content.
195       "//chrome/utility",  # Blocked on content.
196       "//content",
197       "//content/shell:content_shell",  # Blocked on content.
198       "//content/test:test_support",  # Blocked on content.
199       "//extensions/browser",
200       "//extensions/common",
201       "//extensions/common/api",
202       "//extensions/renderer",
203       "//pdf",  # Not compiled on Android in GYP yet, either.
204       "//ppapi:ppapi_c",
205       "//sandbox",
206       "//third_party/libusb",
207       "//ui/keyboard",  # Blocked on content.
209       # Blocked on neon stuff in vp8
210       "//third_party/WebKit/public:all_blink",
212       # Seems to not be compiled on Android. Otherwise it will need a config.h.
213       "//third_party/libxslt",
215       # Not relevant to Android.
216       "//ash",
217       "//tools/gn",
218       "//ui/aura",
219       "//ui/display",
220       "//ui/views",
221       "//ui/views/controls/webview",
223       # Fails on Android for unknown reasons.
224       "//third_party/flac",
225       "//breakpad:symupload",
227       # Not tested on Android yet:
228       "//google_apis/gcm",
229       "//third_party/cld_2",
230       "//third_party/libaddressinput",
231       "//third_party/ffmpeg",
232       "//ui:ui_unittests",
233       "//ui/app_list",
234       "//ui/web_dialogs",
235       "//ui/wm",
236       "//webkit/browser:storage",
237       "//webkit/child",
238     ]
239   }
241   if (use_ozone) {
242     deps += [
243       "//ui/ozone",
244       "//ui/ozone/demo",
245     ]
246   }