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 import("//build/config/android/config.gni")
17 # A list of extra dependencies to add to the root target. This allows a
18 # checkout to add additional targets without explicitly changing any checked-
23 # In GN, a "group" is a dummy target that just lists other targets.
25 # This should not be linked into production and depends on test targets.
28 # Note that some dependencies are commented out. These are things that are
29 # currently written but not hooked up to the build yet. They may need to be
30 # completed or possibly just tested and then re-enabled.
37 "//chrome/browser/devtools",
44 "//components:all_components",
46 "//content/shell:content_shell",
47 "//content/test:test_support",
52 "//extensions/browser",
53 "//extensions/common",
54 "//extensions/common/api",
55 "//extensions/renderer",
72 "//remoting/client/plugin",
79 "//third_party/WebKit/public:all_blink",
80 "//third_party/angle:translator",
81 "//third_party/brotli",
82 "//third_party/cacheinvalidation",
84 "//third_party/cld_2",
85 "//third_party/ffmpeg",
87 "//third_party/harfbuzz-ng",
88 "//third_party/hunspell",
89 "//third_party/iccjpeg",
91 "//third_party/leveldatabase",
92 "//third_party/libphonenumber",
93 "//third_party/libjingle",
94 "//third_party/libpng",
95 "//third_party/libsrtp",
96 "//third_party/libusb",
97 "//third_party/libwebm",
98 "//third_party/libwebp",
99 "//third_party/libxslt",
100 "//third_party/libvpx",
101 "//third_party/libyuv",
102 "//third_party/lzma_sdk",
103 "//third_party/mesa",
104 "//third_party/opus",
106 "//third_party/protobuf:protobuf_lite",
107 "//third_party/qcms",
109 "//third_party/smhasher:cityhash",
110 "//third_party/smhasher:murmurhash3",
111 "//third_party/smhasher:pmurhash",
112 "//third_party/snappy",
113 "//third_party/speex",
114 "//third_party/usrsctp",
115 "//third_party/widevine/cdm:version_h",
116 "//third_party/webrtc",
117 "//third_party/zlib",
118 "//third_party:jpeg",
120 "//tools/imagediff($host_toolchain)",
121 "//ui/accessibility",
136 "//ui/views/controls/webview",
143 deps += [ "//breakpad:symupload" ]
149 "//third_party/fontconfig",
150 "//third_party/freetype2",
155 deps += [ "//tools/xdisplaycheck" ]
159 deps += [ "//ui/wm" ]
168 if (is_win || is_mac || is_chromeos) {
169 # RLZ works on these platforms.
175 if (cpu_arch == "x86" || cpu_arch == "x64") {
176 # YASM is x86/x64 only.
177 deps += [ "//third_party/yasm($host_toolchain)" ]
182 "//base/android/linker:chromium_android_linker",
183 "//build/android/rezip",
184 "//third_party/openmax_dl/dl",
185 "//content/shell/android:content_shell_apk",
186 "//chrome/android:chrome_shell_apk",
187 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
188 "//ui/android:ui_java",
189 "//third_party/android_tools:android_gcm_java",
190 "//third_party/android_tools:uiautomator_java",
191 "//third_party/android_tools:android_support_v13_java",
192 "//third_party/android_tools:android_support_v7_appcompat_java",
193 "//third_party/android_tools:android_support_v7_mediarouter_java",
194 "//third_party/eyesfree:eyesfree_java",
197 if (has_chrome_android_internal) {
203 # TODO(GYP): Move the targets in the rest of this block that still
204 # need to be made to work in the GN build to the bottom of the file
205 # so that all the remaining work is located in one place in the file.
206 # This block should contain only the targets that aren't actually
210 "//apps", # Needs testing.
212 "//chrome/browser/devtools",
219 "//content/shell:content_shell",
220 "//extensions/browser",
221 "//extensions/common",
222 "//extensions/common/api",
223 "//extensions/renderer",
224 "//pdf", # Not compiled on Android in GYP yet, either.
226 "//third_party/libusb",
227 "//ui/keyboard", # Blocked on content.
229 # Seems to not be compiled on Android. Otherwise it will need a config.h.
230 "//third_party/libxslt",
232 # Not relevant to Android.
238 "//ui/views/controls/webview",
240 # Fails on Android for unknown reasons.
241 "//third_party/flac",
242 "//breakpad:symupload",
244 # Not tested on Android yet:
246 "//remoting/client/plugin",
248 "//third_party/cld_2",
249 "//third_party/ffmpeg",
263 if (!is_android && !is_ios) {
266 "//third_party/pdfium/samples",
271 # TODO(GYP): Make everything below this work in the GN build.
275 # TODO(dpranke): Need to fix the unused function errors in breakpad.
277 "//breakpad:symupload"
280 # TODO(dpranke): These need a webrtc fix in order to build.
283 "//third_party/libjingle",
284 "//third_party/webrtc",
287 # TODO(dpranke): These depend on Blink and need Blink fixes to build.
291 "//content/test:test_support",
295 "//third_party/WebKit/public:all_blink",
299 # TODO(dpranke): These are as-yet untriaged but need at least the above.
304 "//chrome/browser/devtools",
310 "//components:all_components",
311 "//content/shell:content_shell",
312 "//extensions/browser",
313 "//extensions/common",
314 "//extensions/common/api",
315 "//extensions/renderer",
316 "//remoting/client/plugin",
317 "//third_party/usrsctp",
321 "//ui/views/controls/webview",
331 "//chrome/browser/devtools",
337 "//components:all_components",
341 "//content/shell:content_shell",
342 "//content/test:test_support",
343 "//device/bluetooth",
344 "//extensions/browser",
345 "//extensions/common",
346 "//extensions/common/api",
347 "//extensions/renderer",
360 "//remoting/client/plugin",
364 "//third_party/WebKit/public:all_blink",
365 "//third_party/angle:translator",
366 "//third_party/leveldatabase",
367 "//third_party/libjingle",
368 "//third_party/usrsctp",
369 "//third_party/webrtc",
370 "//ui/accessibility",
383 "//ui/views/controls/webview",