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",
53 "//extensions/browser",
54 "//extensions/common",
55 "//extensions/common/api",
56 "//extensions/renderer",
73 "//remoting/client/plugin",
80 "//third_party/WebKit/public:all_blink",
81 "//third_party/angle:translator",
82 "//third_party/brotli",
83 "//third_party/cacheinvalidation",
85 "//third_party/cld_2",
86 "//third_party/ffmpeg",
88 "//third_party/harfbuzz-ng",
89 "//third_party/hunspell",
90 "//third_party/iccjpeg",
92 "//third_party/leveldatabase",
93 "//third_party/libphonenumber",
94 "//third_party/libjingle",
95 "//third_party/libpng",
96 "//third_party/libsrtp",
97 "//third_party/libusb",
98 "//third_party/libwebm",
99 "//third_party/libwebp",
100 "//third_party/libxslt",
101 "//third_party/libvpx",
102 "//third_party/libyuv",
103 "//third_party/lzma_sdk",
104 "//third_party/mesa",
105 "//third_party/opus",
107 "//third_party/protobuf:protobuf_lite",
108 "//third_party/qcms",
110 "//third_party/smhasher:cityhash",
111 "//third_party/smhasher:murmurhash3",
112 "//third_party/smhasher:pmurhash",
113 "//third_party/snappy",
114 "//third_party/speex",
115 "//third_party/usrsctp",
116 "//third_party/widevine/cdm:version_h",
117 "//third_party/webrtc",
118 "//third_party/zlib",
119 "//third_party:jpeg",
121 "//tools/imagediff($host_toolchain)",
122 "//ui/accessibility",
136 "//ui/touch_selection",
138 "//ui/views/controls/webview",
143 deps += root_extra_deps
146 deps += [ "//breakpad:symupload" ]
152 "//third_party/fontconfig",
153 "//third_party/freetype2",
158 deps += [ "//tools/xdisplaycheck" ]
162 deps += [ "//ui/wm" ]
166 deps += [ "//ui/metro_viewer" ]
169 if (is_win || is_mac || is_chromeos) {
170 # RLZ works on these platforms.
171 deps += [ "//rlz:rlz_lib" ]
174 if (cpu_arch == "x86" || cpu_arch == "x64") {
175 # YASM is x86/x64 only.
176 deps += [ "//third_party/yasm($host_toolchain)" ]
181 "//base/android/linker:chromium_android_linker",
182 "//build/android/gyp/test:hello_world",
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:test_support_unit",
188 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
189 "//ui/android:ui_java",
190 "//third_party/android_tools:android_gcm_java",
191 "//third_party/android_tools:uiautomator_java",
192 "//third_party/android_tools:android_support_v13_java",
193 "//third_party/android_tools:android_support_v7_appcompat_java",
194 "//third_party/android_tools:android_support_v7_mediarouter_java",
195 "//third_party/mockito:mockito_java",
198 if (has_chrome_android_internal) {
199 deps += [ "//clank" ]
202 # TODO(GYP): Move the targets in the rest of this block that still
203 # need to be made to work in the GN build to the bottom of the file
204 # so that all the remaining work is located in one place in the file.
205 # This block should contain only the targets that aren't actually
209 "//apps", # Needs testing.
211 "//chrome/browser/devtools",
218 "//content/shell:content_shell",
219 "//extensions/browser",
220 "//extensions/common",
221 "//extensions/common/api",
222 "//extensions/renderer",
223 "//pdf", # Not compiled on Android in GYP yet, either.
225 "//third_party/libusb",
226 "//ui/keyboard", # Blocked on content.
228 # Seems to not be compiled on Android. Otherwise it will need a config.h.
229 "//third_party/libxslt",
231 # Not relevant to Android.
237 "//ui/views/controls/webview",
239 # Fails on Android for unknown reasons.
240 "//third_party/flac",
241 "//breakpad:symupload",
243 # Not tested on Android yet:
245 "//remoting/client/plugin",
247 "//third_party/cld_2",
248 "//third_party/ffmpeg",
262 if (!is_android && !is_ios) {
265 "//third_party/pdfium/samples",
270 # TODO(GYP): Make everything below this work in the GN build.
274 # TODO(dpranke): These are as-yet untriaged but need at least the above.
279 "//chrome/browser/devtools",
285 "//components:all_components",
286 "//content/shell:content_shell",
287 "//extensions/browser",
288 "//extensions/common",
289 "//extensions/common/api",
290 "//extensions/renderer",
291 "//remoting/client/plugin",
292 "//third_party/usrsctp",
297 "//ui/views/controls/webview",
302 if (is_mac || is_ios) {
304 "//ui/touch_selection",
313 "//chrome/browser/devtools",
319 "//components:all_components",
323 "//content/shell:content_shell",
324 "//content/test:test_support",
325 "//device/bluetooth",
326 "//extensions/browser",
327 "//extensions/common",
328 "//extensions/common/api",
329 "//extensions/renderer",
342 "//remoting/client/plugin",
345 "//third_party/WebKit/public:all_blink",
346 "//third_party/angle:translator",
347 "//third_party/ffmpeg",
348 "//third_party/leveldatabase",
349 "//third_party/libjingle",
350 "//third_party/usrsctp",
351 "//third_party/webrtc",
352 "//ui/accessibility",
360 "//ui/touch_selection",
362 "//ui/views/controls/webview",