Include chrome_elf pdb in chrome-win32-syms.zip
[chromium-blink-merge.git] / BUILD.gn
blob50580d5ccdc05cf64e7e2dc59d56c48095218061
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")
12 if (is_android) {
13   import("//build/config/android/config.gni")
16 declare_args() {
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-
19   # in files.
20   root_extra_deps = []
23 # In GN, a "group" is a dummy target that just lists other targets.
24 group("root") {
25   # This should not be linked into production and depends on test targets.
26   testonly = true
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.
31   deps = [
32     "//apps",
33     "//ash",
34     "//cc",
35     "//cc/blink",
36     "//chrome/browser",
37     "//chrome/browser/devtools",
38     "//chrome/common",
39     "//chrome/plugin",
40     "//chrome/renderer",
41     "//chrome/test",
42     "//chrome/tools",
43     "//chrome/utility",
44     "//components:all_components",
45     "//content",
46     "//content/shell:content_shell",
47     "//content/test:test_support",
48     "//crypto",
49     "//device/battery",
50     "//device/bluetooth",
51     "//device/nfc",
52     "//device/vibration",
53     "//extensions/browser",
54     "//extensions/common",
55     "//extensions/common/api",
56     "//extensions/renderer",
57     "//gin",
58     "//gpu",
59     "//google_apis",
60     "//google_apis/gcm",
61     "//ipc",
62     "//ipc/mojo",
63     "//jingle:notifier",
64     "//media",
65     "//media/blink",
66     "//media/cast",
67     "//media/mojo",
68     "//mojo",
69     "//net",
70     "//pdf",
71     "//ppapi:ppapi_c",
72     "//printing",
73     "//remoting/client/plugin",
74     "//sandbox",
75     "//sdch",
76     "//skia",
77     "//storage/browser",
78     "//sql",
79     "//sync",
80     "//third_party/WebKit/public:all_blink",
81     "//third_party/angle:translator",
82     "//third_party/brotli",
83     "//third_party/cacheinvalidation",
84     "//third_party/cld",
85     "//third_party/cld_2",
86     "//third_party/ffmpeg",
87     "//third_party/flac",
88     "//third_party/harfbuzz-ng",
89     "//third_party/hunspell",
90     "//third_party/iccjpeg",
91     "//third_party/icu",
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",
106     "//third_party/ots",
107     "//third_party/protobuf:protobuf_lite",
108     "//third_party/qcms",
109     "//third_party/re2",
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",
120     "//tools/gn",
121     "//tools/imagediff($host_toolchain)",
122     "//ui/accessibility",
123     "//ui/app_list",
124     "//ui/aura",
125     "//ui/base",
126     "//ui/display",
127     "//ui/events",
128     "//ui/gfx",
129     "//ui/gl",
130     "//ui/keyboard",
131     "//ui/native_theme",
132     "//ui/resources",
133     "//ui/snapshot",
134     "//ui/strings",
135     "//ui/surface",
136     "//ui/views",
137     "//ui/views/controls/webview",
138     "//ui/web_dialogs",
139     "//url",
140     "//v8:v8",
141   ]
142   deps += root_extra_deps
144   if (!is_win) {
145     deps += [ "//breakpad:symupload" ]
146   }
148   if (is_linux) {
149     deps += [
150       "//dbus",
151       "//third_party/fontconfig",
152       "//third_party/freetype2",
153     ]
154   }
156   if (use_x11) {
157     deps += [ "//tools/xdisplaycheck" ]
158   }
160   if (use_aura) {
161     deps += [ "//ui/wm" ]
162   }
164   if (is_win) {
165     deps += [ "//ui/metro_viewer" ]
166   }
168   if (is_win || is_mac || is_chromeos) {
169     # RLZ works on these platforms.
170     deps += [ "//rlz:rlz_lib" ]
171   }
173   if (cpu_arch == "x86" || cpu_arch == "x64") {
174     # YASM is x86/x64 only.
175     deps += [ "//third_party/yasm($host_toolchain)" ]
176   }
178   if (is_android) {
179     deps += [
180       "//base/android/linker:chromium_android_linker",
181       "//build/android/gyp/test:hello_world",
182       "//build/android/rezip",
183       "//third_party/openmax_dl/dl",
184       "//content/shell/android:content_shell_apk",
185       "//chrome/android:chrome_shell_apk",
186       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
187       "//ui/android:ui_java",
188       "//third_party/android_tools:android_gcm_java",
189       "//third_party/android_tools:uiautomator_java",
190       "//third_party/android_tools:android_support_v13_java",
191       "//third_party/android_tools:android_support_v7_appcompat_java",
192       "//third_party/android_tools:android_support_v7_mediarouter_java",
193     ]
195     if (has_chrome_android_internal) {
196       deps += [ "//clank" ]
197     }
199     # TODO(GYP): Move the targets in the rest of this block that still
200     # need to be made to work in the GN build to the bottom of the file
201     # so that all the remaining work is located in one place in the file.
202     # This block should contain only the targets that aren't actually
203     # needed on Android.
205     deps -= [
206       "//apps",  # Needs testing.
207       "//chrome/browser",
208       "//chrome/browser/devtools",
209       "//chrome/common",
210       "//chrome/plugin",
211       "//chrome/renderer",
212       "//chrome/test",
213       "//chrome/tools",
214       "//chrome/utility",
215       "//content/shell:content_shell",
216       "//extensions/browser",
217       "//extensions/common",
218       "//extensions/common/api",
219       "//extensions/renderer",
220       "//pdf",  # Not compiled on Android in GYP yet, either.
221       "//ppapi:ppapi_c",
222       "//third_party/libusb",
223       "//ui/keyboard",  # Blocked on content.
225       # Seems to not be compiled on Android. Otherwise it will need a config.h.
226       "//third_party/libxslt",
228       # Not relevant to Android.
229       "//ash",
230       "//tools/gn",
231       "//ui/aura",
232       "//ui/display",
233       "//ui/views",
234       "//ui/views/controls/webview",
236       # Fails on Android for unknown reasons.
237       "//third_party/flac",
238       "//breakpad:symupload",
240       # Not tested on Android yet:
241       "//google_apis/gcm",
242       "//remoting/client/plugin",
243       "//storage/browser",
244       "//third_party/cld_2",
245       "//third_party/ffmpeg",
246       "//ui/app_list",
247       "//ui/web_dialogs",
248     ]
249   }
251   if (use_ozone) {
252     deps += [
253       "//ui/ozone",
254       "//ui/ozone/demo",
255     ]
256   }
258   # Non-mobile builds.
259   if (!is_android && !is_ios) {
260     deps += [
261       "//device/usb",
262       "//third_party/pdfium/samples",
263     ]
264   }
266   #
267   # TODO(GYP): Make everything below this work in the GN build.
268   #
270   if (is_mac) {
271     # TODO(dpranke): These are as-yet untriaged but need at least the above.
272     deps -= [
273       "//apps",
274       "//ash",
275       "//chrome/browser",
276       "//chrome/browser/devtools",
277       "//chrome/common",
278       "//chrome/plugin",
279       "//chrome/renderer",
280       "//chrome/test",
281       "//chrome/utility",
282       "//components:all_components",
283       "//content/shell:content_shell",
284       "//extensions/browser",
285       "//extensions/common",
286       "//extensions/common/api",
287       "//extensions/renderer",
288       "//remoting/client/plugin",
289       "//third_party/usrsctp",
290       "//ui/app_list",
291       "//ui/aura",
292       "//ui/keyboard",
293       "//ui/views",
294       "//ui/views/controls/webview",
295       "//ui/web_dialogs",
296     ]
297   }
299   if (is_win) {
300     deps -= [
301       "//apps",
302       "//ash",
303       "//chrome/browser",
304       "//chrome/browser/devtools",
305       "//chrome/common",
306       "//chrome/plugin",
307       "//chrome/renderer",
308       "//chrome/test",
309       "//chrome/utility",
310       "//components:all_components",
311       "//cc",
312       "//cc/blink",
313       "//content",
314       "//content/shell:content_shell",
315       "//content/test:test_support",
316       "//device/bluetooth",
317       "//extensions/browser",
318       "//extensions/common",
319       "//extensions/common/api",
320       "//extensions/renderer",
321       "//gpu",
322       "//google_apis",
323       "//google_apis/gcm",
324       "//jingle:notifier",
325       "//media",
326       "//media/blink",
327       "//media/cast",
328       "//media/mojo",
329       "//mojo",
330       "//pdf",
331       "//ppapi:ppapi_c",
332       "//printing",
333       "//remoting/client/plugin",
334       "//sandbox",
335       "//storage/browser",
336       "//sync",
337       "//third_party/WebKit/public:all_blink",
338       "//third_party/angle:translator",
339       "//third_party/ffmpeg",
340       "//third_party/leveldatabase",
341       "//third_party/libjingle",
342       "//third_party/usrsctp",
343       "//third_party/webrtc",
344       "//ui/accessibility",
345       "//ui/app_list",
346       "//ui/aura",
347       "//ui/base",
348       "//ui/display",
349       "//ui/events",
350       "//ui/gfx",
351       "//ui/gl",
352       "//ui/keyboard",
353       "//ui/native_theme",
354       "//ui/snapshot",
355       "//ui/surface",
356       "//ui/views",
357       "//ui/views/controls/webview",
358       "//ui/web_dialogs",
359       "//ui/wm",
360     ]
361   }