cc: Ensure to return pending now before active eventually tiles.
[chromium-blink-merge.git] / BUILD.gn
blob40d9d28beb0574dc5a7c5fe64e82d880f7252e51
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 declare_args() {
14   # A list of extra dependencies to add to the root target. This allows a
15   # checkout to add additional targets without explicitly changing any checked-
16   # in files.
17   root_extra_deps = []
20 # In GN, a "group" is a dummy target that just lists other targets.
21 group("root") {
22   # This should not be linked into production and depends on test targets.
23   testonly = true
25   # Note that some dependencies are commented out. These are things that are
26   # currently written but not hooked up to the build yet. They may need to be
27   # completed or possibly just tested and then re-enabled.
28   deps = [
29     "//apps",
30     "//ash",
31     "//cc",
32     "//cc/blink",
33     "//chrome/browser",
34     "//chrome/browser/devtools",
35     "//chrome/common",
36     "//chrome/plugin",
37     "//chrome/renderer",
38     "//chrome/utility",
39     "//components:all_components",
40     "//content",
41     "//content/shell:content_shell",
42     "//content/test:test_support",
43     "//crypto",
44     "//device/bluetooth",
45     "//device/nfc",
46     "//extensions/browser",
47     "//extensions/common",
48     "//extensions/common/api",
49     "//extensions/renderer",
50     "//gin",
51     "//gpu",
52     "//google_apis",
53     "//google_apis/gcm",
54     "//ipc",
55     "//ipc/mojo",
56     "//jingle:notifier",
57     "//media",
58     "//media/blink",
59     "//media/cast",
60     "//media/mojo",
61     "//mojo",
62     "//net",
63     "//pdf",
64     "//ppapi:ppapi_c",
65     "//printing",
66     "//remoting/client/plugin",
67     "//sandbox",
68     "//sdch",
69     "//skia",
70     "//storage/browser",
71     "//sql",
72     "//sync",
73     "//third_party/WebKit/public:all_blink",
74     "//third_party/angle:translator",
75     "//third_party/brotli",
76     "//third_party/cacheinvalidation",
77     "//third_party/cld",
78     "//third_party/cld_2",
79     "//third_party/ffmpeg",
80     "//third_party/flac",
81     "//third_party/harfbuzz-ng",
82     "//third_party/hunspell",
83     "//third_party/iccjpeg",
84     "//third_party/icu",
85     "//third_party/leveldatabase",
86     "//third_party/libphonenumber",
87     "//third_party/libjingle",
88     "//third_party/libpng",
89     "//third_party/libsrtp",
90     "//third_party/libusb",
91     "//third_party/libwebm",
92     "//third_party/libwebp",
93     "//third_party/libxslt",
94     "//third_party/libvpx",
95     "//third_party/libyuv",
96     "//third_party/lzma_sdk",
97     "//third_party/mesa",
98     "//third_party/opus",
99     "//third_party/ots",
100     "//third_party/protobuf:protobuf_lite",
101     "//third_party/qcms",
102     "//third_party/re2",
103     "//third_party/smhasher:cityhash",
104     "//third_party/smhasher:murmurhash3",
105     "//third_party/smhasher:pmurhash",
106     "//third_party/snappy",
107     "//third_party/speex",
108     "//third_party/usrsctp",
109     "//third_party/widevine/cdm:version_h",
110     "//third_party/webrtc",
111     "//third_party/zlib",
112     "//third_party:jpeg",
113     "//tools/gn",
114     "//tools/imagediff($host_toolchain)",
115     "//ui/accessibility",
116     "//ui/app_list",
117     "//ui/aura",
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     "//url",
133     "//v8:v8",
134   ] + root_extra_deps
136   if (!is_win) {
137     deps += [ "//breakpad:symupload" ]
138   }
140   if (is_linux) {
141     deps += [
142       "//dbus",
143       "//third_party/fontconfig",
144       "//third_party/freetype2",
145     ]
146   }
148   if (use_x11) {
149     deps += [ "//tools/xdisplaycheck" ]
150   }
152   if (use_aura) {
153     deps += [ "//ui/wm" ]
154   }
156   if (is_win) {
157     deps += [
158       "//ui/metro_viewer",
159     ]
160   }
162   if (is_win || is_mac || is_chromeos) {
163     # RLZ works on these platforms.
164     deps += [
165       "//rlz:rlz_lib",
166     ]
167   }
169   if (cpu_arch == "x86" || cpu_arch == "x64") {
170     # YASM is x86/x64 only.
171     deps += [ "//third_party/yasm($host_toolchain)" ]
172   }
174   if (is_android) {
175     deps += [
176       "//base/android/linker:chromium_android_linker",
177       "//build/android/rezip",
178       "//third_party/openmax_dl/dl",
179       "//content/shell/android:content_shell_apk",
180       "//chrome/android:chrome_shell_apk",
181       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
182       "//ui/android:ui_java",
183       "//third_party/android_tools:android_gcm_java",
184       "//third_party/android_tools:uiautomator_java",
185       "//third_party/android_tools:android_support_v13_java",
186       "//third_party/android_tools:android_support_v7_appcompat_java",
187       "//third_party/android_tools:android_support_v7_mediarouter_java",
188       "//third_party/eyesfree:eyesfree_java",
189     ]
191     deps -= [
192       "//apps",  # Needs testing.
193       "//chrome/browser",
194       "//chrome/browser/devtools",
195       "//chrome/common",
196       "//chrome/plugin",
197       "//chrome/renderer",
198       "//chrome/utility",
199       "//content/shell:content_shell",
200       "//extensions/browser",
201       "//extensions/common",
202       "//extensions/common/api",
203       "//extensions/renderer",
204       "//pdf",  # Not compiled on Android in GYP yet, either.
205       "//ppapi:ppapi_c",
206       "//third_party/libusb",
207       "//ui/keyboard",  # Blocked on content.
209       # Seems to not be compiled on Android. Otherwise it will need a config.h.
210       "//third_party/libxslt",
212       # Not relevant to Android.
213       "//ash",
214       "//tools/gn",
215       "//ui/aura",
216       "//ui/display",
217       "//ui/views",
218       "//ui/views/controls/webview",
220       # Fails on Android for unknown reasons.
221       "//third_party/flac",
222       "//breakpad:symupload",
224       # Not tested on Android yet:
225       "//google_apis/gcm",
226       "//remoting/client/plugin",
227       "//storage/browser",
228       "//third_party/cld_2",
229       "//third_party/ffmpeg",
230       "//ui/app_list",
231       "//ui/web_dialogs",
232     ]
233   }
235   if (use_ozone) {
236     deps += [
237       "//ui/ozone",
238       "//ui/ozone/demo",
239     ]
240   }
242   # Non-mobile builds.
243   if (!is_android && !is_ios) {
244     deps += [
245       "//device/usb",
246     ]
247   }