Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / BUILD.gn
blob6ed045c2ec436be10205fa5d9f436d4d5c71f641
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     "//apps",
20     "//ash",
21     "//cc",
22     "//cc/blink",
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/browser",
41     "//extensions/common",
42     "//extensions/common/api",
43     "//extensions/renderer",
44     "//gin",
45     "//gpu",
46     "//google_apis",
47     "//google_apis/gcm",
48     "//ipc",
49     "//ipc/mojo",
50     "//jingle:notifier",
51     "//media",
52     "//media/cast",
53     "//mojo",
54     "//net",
55     "//pdf",
56     "//ppapi:ppapi_c",
57     "//printing",
58     "//remoting/client/plugin",
59     "//sandbox",
60     "//sdch",
61     "//skia",
62     "//sql",
63     "//sync",
64     "//third_party/WebKit/public:all_blink",
65     "//third_party/angle:translator",
66     "//third_party/brotli",
67     "//third_party/cacheinvalidation",
68     "//third_party/cld",
69     "//third_party/cld_2",
70     "//third_party/ffmpeg",
71     "//third_party/flac",
72     "//third_party/harfbuzz-ng",
73     "//third_party/hunspell",
74     "//third_party/iccjpeg",
75     "//third_party/icu",
76     "//third_party/leveldatabase",
77     "//third_party/libaddressinput",
78     "//third_party/libphonenumber",
79     "//third_party/libjingle",
80     "//third_party/libpng",
81     "//third_party/libsrtp",
82     "//third_party/libusb",
83     "//third_party/libwebm",
84     "//third_party/libwebp",
85     "//third_party/libxslt",
86     "//third_party/libyuv",
87     "//third_party/lzma_sdk",
88     "//third_party/mesa",
89     "//third_party/opus",
90     "//third_party/ots",
91     "//third_party/protobuf:protobuf_lite",
92     "//third_party/qcms",
93     "//third_party/re2",
94     "//third_party/smhasher:cityhash",
95     "//third_party/smhasher:murmurhash3",
96     "//third_party/smhasher:pmurhash",
97     "//third_party/snappy",
98     "//third_party/speex",
99     "//third_party/widevine/cdm:version_h",
100     "//third_party/webrtc",
101     "//third_party/zlib",
102     "//third_party:jpeg",
103     "//tools/gn",
104     "//tools/imagediff($host_toolchain)",
105     "//ui:ui_unittests",
106     "//ui/app_list",
107     "//ui/aura",
108     "//ui/accessibility",
109     "//ui/base",
110     "//ui/display",
111     "//ui/events",
112     "//ui/gfx",
113     "//ui/gl",
114     "//ui/keyboard",
115     "//ui/native_theme",
116     "//ui/resources",
117     "//ui/snapshot",
118     "//ui/strings",
119     "//ui/surface",
120     "//ui/views",
121     "//ui/views/controls/webview",
122     "//ui/web_dialogs",
123     "//ui/wm",
124     "//url",
125     "//v8:v8",
126     "//webkit/browser:storage",
127     "//webkit/child",
128   ]
130   if (!is_win) {
131     deps += [ "//breakpad:symupload" ]
132   }
134   if (is_linux) {
135     deps += [
136       "//dbus",
137       "//third_party/fontconfig",
138       "//third_party/freetype2",
139     ]
140   }
142   if (use_x11) {
143     deps += [ "//tools/xdisplaycheck" ]
144   }
146   if (is_win) {
147     deps += [
148       "//ui/metro_viewer",
149     ]
150   }
152   if (is_win || is_mac || is_chromeos) {
153     # RLZ works on these platforms.
154     deps += [
155       "//rlz:rlz_lib",
156     ]
157   }
159   if (cpu_arch == "x86" || cpu_arch == "x64") {
160     # YASM is x86/x64 only.
161     deps += [ "//third_party/yasm($host_toolchain)" ]
162   }
164   if (is_android) {
165     deps += [
166       "//ui/android:ui_java",
167       "//third_party/guava:guava_javalib",
168       "//third_party/android_tools:android_gcm_java",
169       "//third_party/android_tools:uiautomator_java",
170       "//third_party/android_tools:android_support_v13_java",
171       "//third_party/android_tools:android_support_v7_appcompat_java",
172       "//third_party/android_tools:android_support_v7_mediarouter_java",
173     ]
175     deps -= [
176       "//apps",  # Needs testing.
177       "//cc/blink", # Blocked on blink
178       "//chrome/browser",  # Blocked on content.
179       "//chrome/browser/devtools",  # Blocked on content.
180       "//chrome/browser/ui",  # Blocked on content.
181       "//chrome/browser/ui/views",  # Blocked on content.
182       "//chrome/common",  # Blocked on content.
183       "//chrome/plugin",  # Blocked on content.
184       "//chrome/renderer",  # Blocked on content.
185       "//chrome/service",  # Blocked on content.
186       "//chrome/utility",  # Blocked on content.
187       "//content",
188       "//content/shell:content_shell",  # Blocked on content.
189       "//content/test:test_support",  # Blocked on content.
190       "//extensions/browser",
191       "//extensions/common",
192       "//extensions/common/api",
193       "//extensions/renderer",
194       "//pdf",  # Not compiled on Android in GYP yet, either.
195       "//ppapi:ppapi_c",
196       "//sandbox",
197       "//third_party/libusb",
198       "//ui/keyboard",  # Blocked on content.
200       # Blocked on neon stuff in vp8
201       "//third_party/WebKit/public:all_blink",
203       # Seems to not be compiled on Android. Otherwise it will need a config.h.
204       "//third_party/libxslt",
206       # Not relevant to Android.
207       "//ash",
208       "//tools/gn",
209       "//ui/aura",
210       "//ui/display",
211       "//ui/views",
212       "//ui/views/controls/webview",
214       # Fails on Android for unknown reasons.
215       "//third_party/flac",
216       "//breakpad:symupload",
218       # Not tested on Android yet:
219       "//google_apis/gcm",
220       "//remoting/client/plugin",
221       "//third_party/cld_2",
222       "//third_party/libaddressinput",
223       "//third_party/ffmpeg",
224       "//ui:ui_unittests",
225       "//ui/app_list",
226       "//ui/web_dialogs",
227       "//ui/wm",
228       "//webkit/browser:storage",
229       "//webkit/child",
230     ]
231   }
233   if (use_ozone) {
234     deps += [
235       "//ui/ozone",
236       "//ui/ozone/demo",
237     ]
238   }